@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssessmentRunNotification extends Object implements Serializable, Cloneable, StructuredPojo
Used as one of the elements of the AssessmentRun data type.
Constructor and Description |
---|
AssessmentRunNotification() |
Modifier and Type | Method and Description |
---|---|
AssessmentRunNotification |
clone() |
boolean |
equals(Object obj) |
Date |
getDate()
The date of the notification.
|
Boolean |
getError()
The Boolean value that specifies whether the notification represents an error.
|
String |
getEvent()
The event for which a notification is sent.
|
String |
getMessage()
The message included in the notification.
|
String |
getSnsPublishStatusCode()
The status code of the SNS notification.
|
String |
getSnsTopicArn()
The SNS topic to which the SNS notification is sent.
|
int |
hashCode() |
Boolean |
isError()
The Boolean value that specifies whether the notification represents an error.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDate(Date date)
The date of the notification.
|
void |
setError(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(String event)
The event for which a notification is sent.
|
void |
setMessage(String message)
The message included in the notification.
|
void |
setSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode snsPublishStatusCode)
The status code of the SNS notification.
|
void |
setSnsPublishStatusCode(String snsPublishStatusCode)
The status code of the SNS notification.
|
void |
setSnsTopicArn(String snsTopicArn)
The SNS topic to which the SNS notification is sent.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AssessmentRunNotification |
withDate(Date date)
The date of the notification.
|
AssessmentRunNotification |
withError(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(String event)
The event for which a notification is sent.
|
AssessmentRunNotification |
withMessage(String message)
The message included in the notification.
|
AssessmentRunNotification |
withSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode snsPublishStatusCode)
The status code of the SNS notification.
|
AssessmentRunNotification |
withSnsPublishStatusCode(String snsPublishStatusCode)
The status code of the SNS notification.
|
AssessmentRunNotification |
withSnsTopicArn(String snsTopicArn)
The SNS topic to which the SNS notification is sent.
|
public void setDate(Date date)
The date of the notification.
date
- The date of the notification.public Date getDate()
The date of the notification.
public AssessmentRunNotification withDate(Date date)
The date of the notification.
date
- The date of the notification.public void setEvent(String event)
The event for which a notification is sent.
event
- The event for which a notification is sent.InspectorEvent
public String getEvent()
The event for which a notification is sent.
InspectorEvent
public AssessmentRunNotification withEvent(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(String message)
The message included in the notification.
message
- The message included in the notification.public String getMessage()
The message included in the notification.
public AssessmentRunNotification withMessage(String message)
The message included in the notification.
message
- The message included in the notification.public void setError(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 Boolean getError()
The Boolean value that specifies whether the notification represents an error.
public AssessmentRunNotification withError(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 Boolean isError()
The Boolean value that specifies whether the notification represents an error.
public void setSnsTopicArn(String snsTopicArn)
The SNS topic to which the SNS notification is sent.
snsTopicArn
- The SNS topic to which the SNS notification is sent.public String getSnsTopicArn()
The SNS topic to which the SNS notification is sent.
public AssessmentRunNotification withSnsTopicArn(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(String snsPublishStatusCode)
The status code of the SNS notification.
snsPublishStatusCode
- The status code of the SNS notification.AssessmentRunNotificationSnsStatusCode
public String getSnsPublishStatusCode()
The status code of the SNS notification.
AssessmentRunNotificationSnsStatusCode
public AssessmentRunNotification withSnsPublishStatusCode(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 String toString()
toString
in class Object
Object.toString()
public AssessmentRunNotification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.