Class AssessmentRunNotification
- java.lang.Object
-
- com.amazonaws.services.inspector.model.AssessmentRunNotification
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AssessmentRunNotification extends Object implements Serializable, Cloneable
Used as one of the elements of the AssessmentRun data type.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssessmentRunNotification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
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
setDate(Date dateValue)
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)
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 dateValue)
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)
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.
-
-
-
Method Detail
-
setDate
public void setDate(Date dateValue)
The date of the notification.
- Parameters:
dateValue
- The date of the notification.
-
getDate
public Date getDate()
The date of the notification.
- Returns:
- The date of the notification.
-
withDate
public AssessmentRunNotification withDate(Date dateValue)
The date of the notification.
- Parameters:
dateValue
- The date of the notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEvent
public void setEvent(String event)
The event for which a notification is sent.
- Parameters:
event
- The event for which a notification is sent.- See Also:
InspectorEvent
-
getEvent
public String getEvent()
The event for which a notification is sent.
- Returns:
- The event for which a notification is sent.
- See Also:
InspectorEvent
-
withEvent
public AssessmentRunNotification withEvent(String event)
The event for which a notification is sent.
- Parameters:
event
- The event for which a notification is sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InspectorEvent
-
setEvent
public void setEvent(InspectorEvent event)
The event for which a notification is sent.
- Parameters:
event
- The event for which a notification is sent.- See Also:
InspectorEvent
-
withEvent
public AssessmentRunNotification withEvent(InspectorEvent event)
The event for which a notification is sent.
- Parameters:
event
- The event for which a notification is sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InspectorEvent
-
setMessage
public void setMessage(String message)
- Parameters:
message
-
-
getMessage
public String getMessage()
- Returns:
-
withMessage
public AssessmentRunNotification withMessage(String message)
- Parameters:
message
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setError
public void setError(Boolean error)
The Boolean value that specifies whether the notification represents an error.
- Parameters:
error
- The Boolean value that specifies whether the notification represents an error.
-
getError
public Boolean getError()
The Boolean value that specifies whether the notification represents an error.
- Returns:
- The Boolean value that specifies whether the notification represents an error.
-
withError
public AssessmentRunNotification withError(Boolean error)
The Boolean value that specifies whether the notification represents an error.
- Parameters:
error
- The Boolean value that specifies whether the notification represents an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isError
public Boolean isError()
The Boolean value that specifies whether the notification represents an error.
- Returns:
- The Boolean value that specifies whether the notification represents an error.
-
setSnsTopicArn
public void setSnsTopicArn(String snsTopicArn)
The SNS topic to which the SNS notification is sent.
- Parameters:
snsTopicArn
- The SNS topic to which the SNS notification is sent.
-
getSnsTopicArn
public String getSnsTopicArn()
The SNS topic to which the SNS notification is sent.
- Returns:
- The SNS topic to which the SNS notification is sent.
-
withSnsTopicArn
public AssessmentRunNotification withSnsTopicArn(String snsTopicArn)
The SNS topic to which the SNS notification is sent.
- Parameters:
snsTopicArn
- The SNS topic to which the SNS notification is sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSnsPublishStatusCode
public void setSnsPublishStatusCode(String snsPublishStatusCode)
The status code of the SNS notification.
- Parameters:
snsPublishStatusCode
- The status code of the SNS notification.- See Also:
AssessmentRunNotificationSnsStatusCode
-
getSnsPublishStatusCode
public String getSnsPublishStatusCode()
The status code of the SNS notification.
- Returns:
- The status code of the SNS notification.
- See Also:
AssessmentRunNotificationSnsStatusCode
-
withSnsPublishStatusCode
public AssessmentRunNotification withSnsPublishStatusCode(String snsPublishStatusCode)
The status code of the SNS notification.
- Parameters:
snsPublishStatusCode
- The status code of the SNS notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AssessmentRunNotificationSnsStatusCode
-
setSnsPublishStatusCode
public void setSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode snsPublishStatusCode)
The status code of the SNS notification.
- Parameters:
snsPublishStatusCode
- The status code of the SNS notification.- See Also:
AssessmentRunNotificationSnsStatusCode
-
withSnsPublishStatusCode
public AssessmentRunNotification withSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode snsPublishStatusCode)
The status code of the SNS notification.
- Parameters:
snsPublishStatusCode
- The status code of the SNS notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AssessmentRunNotificationSnsStatusCode
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AssessmentRunNotification clone()
-
-