@Generated(value="software.amazon.awssdk:codegen") public final class AssessmentRunNotification extends Object implements StructuredPojo, ToCopyableBuilder<AssessmentRunNotification.Builder,AssessmentRunNotification>
Used as one of the elements of the AssessmentRun data type.
Modifier and Type | Class and Description |
---|---|
static interface |
AssessmentRunNotification.Builder |
Modifier and Type | Method and Description |
---|---|
static AssessmentRunNotification.Builder |
builder() |
Instant |
date()
The date of the notification.
|
boolean |
equals(Object obj) |
Boolean |
error()
The Boolean value that specifies whether the notification represents an error.
|
InspectorEvent |
event()
The event for which a notification is sent.
|
String |
eventAsString()
The event for which a notification is sent.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
message()
The message included in the notification.
|
static Class<? extends AssessmentRunNotification.Builder> |
serializableBuilderClass() |
AssessmentRunNotificationSnsStatusCode |
snsPublishStatusCode()
The status code of the SNS notification.
|
String |
snsPublishStatusCodeAsString()
The status code of the SNS notification.
|
String |
snsTopicArn()
The SNS topic to which the SNS notification is sent.
|
AssessmentRunNotification.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Instant date()
The date of the notification.
public InspectorEvent event()
The event for which a notification is sent.
If the service returns an enum value that is not available in the current SDK version, event
will return
InspectorEvent.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
eventAsString()
.
InspectorEvent
public String eventAsString()
The event for which a notification is sent.
If the service returns an enum value that is not available in the current SDK version, event
will return
InspectorEvent.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
eventAsString()
.
InspectorEvent
public String message()
The message included in the notification.
public Boolean error()
The Boolean value that specifies whether the notification represents an error.
public String snsTopicArn()
The SNS topic to which the SNS notification is sent.
public AssessmentRunNotificationSnsStatusCode snsPublishStatusCode()
The status code of the SNS notification.
If the service returns an enum value that is not available in the current SDK version,
snsPublishStatusCode
will return AssessmentRunNotificationSnsStatusCode.UNKNOWN_TO_SDK_VERSION
.
The raw value returned by the service is available from snsPublishStatusCodeAsString()
.
AssessmentRunNotificationSnsStatusCode
public String snsPublishStatusCodeAsString()
The status code of the SNS notification.
If the service returns an enum value that is not available in the current SDK version,
snsPublishStatusCode
will return AssessmentRunNotificationSnsStatusCode.UNKNOWN_TO_SDK_VERSION
.
The raw value returned by the service is available from snsPublishStatusCodeAsString()
.
AssessmentRunNotificationSnsStatusCode
public AssessmentRunNotification.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AssessmentRunNotification.Builder,AssessmentRunNotification>
public static AssessmentRunNotification.Builder builder()
public static Class<? extends AssessmentRunNotification.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.