public class AssessmentRunNotification
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Used as one of the elements of the AssessmentRun data type.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
dateValue
The date of the notification.
|
private java.lang.Boolean |
error
The Boolean value that specifies whether the notification represents an
error.
|
private java.lang.String |
event
The event for which a notification is sent.
|
private java.lang.String |
message |
private java.lang.String |
snsPublishStatusCode
The status code of the SNS notification.
|
private java.lang.String |
snsTopicArn
The SNS topic to which the SNS notification is sent.
|
Constructor and Description |
---|
AssessmentRunNotification() |
Modifier and Type | Method and Description |
---|---|
AssessmentRunNotification |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getDate()
The date of the notification.
|
java.lang.Boolean |
getError()
The Boolean value that specifies whether the notification represents an
error.
|
java.lang.String |
getEvent()
The event for which a notification is sent.
|
java.lang.String |
getMessage() |
java.lang.String |
getSnsPublishStatusCode()
The status code of the SNS notification.
|
java.lang.String |
getSnsTopicArn()
The SNS topic to which the SNS notification is sent.
|
int |
hashCode() |
java.lang.Boolean |
isError()
The Boolean value that specifies whether the notification represents an
error.
|
void |
setDate(java.util.Date dateValue)
The date of the notification.
|
void |
setError(java.lang.Boolean error)
The Boolean value that specifies whether the notification represents an
error.
|
void |
setEvent(InspectorEvent event)
The event for which a notification is sent.
|
void |
setEvent(java.lang.String event)
The event for which a notification is sent.
|
void |
setMessage(java.lang.String message) |
void |
setSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode snsPublishStatusCode)
The status code of the SNS notification.
|
void |
setSnsPublishStatusCode(java.lang.String snsPublishStatusCode)
The status code of the SNS notification.
|
void |
setSnsTopicArn(java.lang.String snsTopicArn)
The SNS topic to which the SNS notification is sent.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AssessmentRunNotification |
withDate(java.util.Date dateValue)
The date of the notification.
|
AssessmentRunNotification |
withError(java.lang.Boolean error)
The Boolean value that specifies whether the notification represents an
error.
|
AssessmentRunNotification |
withEvent(InspectorEvent event)
The event for which a notification is sent.
|
AssessmentRunNotification |
withEvent(java.lang.String event)
The event for which a notification is sent.
|
AssessmentRunNotification |
withMessage(java.lang.String message) |
AssessmentRunNotification |
withSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode snsPublishStatusCode)
The status code of the SNS notification.
|
AssessmentRunNotification |
withSnsPublishStatusCode(java.lang.String snsPublishStatusCode)
The status code of the SNS notification.
|
AssessmentRunNotification |
withSnsTopicArn(java.lang.String snsTopicArn)
The SNS topic to which the SNS notification is sent.
|
private java.util.Date dateValue
The date of the notification.
private java.lang.String event
The event for which a notification is sent.
private java.lang.String message
private java.lang.Boolean error
The Boolean value that specifies whether the notification represents an error.
private java.lang.String snsTopicArn
The SNS topic to which the SNS notification is sent.
private java.lang.String snsPublishStatusCode
The status code of the SNS notification.
public void setDate(java.util.Date dateValue)
The date of the notification.
dateValue
- The date of the notification.public java.util.Date getDate()
The date of the notification.
public AssessmentRunNotification withDate(java.util.Date dateValue)
The date of the notification.
dateValue
- The date of the notification.public void setEvent(java.lang.String event)
The event for which a notification is sent.
event
- The event for which a notification is sent.InspectorEvent
public java.lang.String getEvent()
The event for which a notification is sent.
InspectorEvent
public AssessmentRunNotification withEvent(java.lang.String event)
The event for which a notification is sent.
event
- The event for which a notification is sent.InspectorEvent
public void setEvent(InspectorEvent event)
The event for which a notification is sent.
event
- The event for which a notification is sent.InspectorEvent
public AssessmentRunNotification withEvent(InspectorEvent event)
The event for which a notification is sent.
event
- The event for which a notification is sent.InspectorEvent
public void setMessage(java.lang.String message)
message
- public java.lang.String getMessage()
public AssessmentRunNotification withMessage(java.lang.String message)
message
- public void setError(java.lang.Boolean error)
The Boolean value that specifies whether the notification represents an error.
error
- The Boolean value that specifies whether the notification
represents an error.public java.lang.Boolean getError()
The Boolean value that specifies whether the notification represents an error.
public AssessmentRunNotification withError(java.lang.Boolean error)
The Boolean value that specifies whether the notification represents an error.
error
- The Boolean value that specifies whether the notification
represents an error.public java.lang.Boolean isError()
The Boolean value that specifies whether the notification represents an error.
public void setSnsTopicArn(java.lang.String snsTopicArn)
The SNS topic to which the SNS notification is sent.
snsTopicArn
- The SNS topic to which the SNS notification is sent.public java.lang.String getSnsTopicArn()
The SNS topic to which the SNS notification is sent.
public AssessmentRunNotification withSnsTopicArn(java.lang.String snsTopicArn)
The SNS topic to which the SNS notification is sent.
snsTopicArn
- The SNS topic to which the SNS notification is sent.public void setSnsPublishStatusCode(java.lang.String snsPublishStatusCode)
The status code of the SNS notification.
snsPublishStatusCode
- The status code of the SNS notification.AssessmentRunNotificationSnsStatusCode
public java.lang.String getSnsPublishStatusCode()
The status code of the SNS notification.
AssessmentRunNotificationSnsStatusCode
public AssessmentRunNotification withSnsPublishStatusCode(java.lang.String snsPublishStatusCode)
The status code of the SNS notification.
snsPublishStatusCode
- The status code of the SNS notification.AssessmentRunNotificationSnsStatusCode
public void setSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode snsPublishStatusCode)
The status code of the SNS notification.
snsPublishStatusCode
- The status code of the SNS notification.AssessmentRunNotificationSnsStatusCode
public AssessmentRunNotification withSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode snsPublishStatusCode)
The status code of the SNS notification.
snsPublishStatusCode
- The status code of the SNS notification.AssessmentRunNotificationSnsStatusCode
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AssessmentRunNotification clone()
clone
in class java.lang.Object