@Generated(value="software.amazon.awssdk:codegen") public final class EventSubscription extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EventSubscription.Builder,EventSubscription>
Indicates an event you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EventSubscription.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EventSubscription.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
EventType |
eventType()
The type of event you would like to subscribe and get notification for.
|
String |
eventTypeAsString()
The type of event you would like to subscribe and get notification for.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
Unique name to identify an event subscription.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EventSubscription.Builder> |
serializableBuilderClass() |
String |
snsTopicArn()
Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic.
|
EventSubscription.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final EventType eventType()
The type of event you would like to subscribe and get notification for. Currently, Resilience Hub supports
notifications only for Drift detected (DriftDetected) and Scheduled assessment failure
(ScheduledAssessmentFailure) events.
If the service returns an enum value that is not available in the current SDK version, eventType will
return EventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
eventTypeAsString().
DriftDetected) and Scheduled
assessment failure (ScheduledAssessmentFailure) events.EventTypepublic final String eventTypeAsString()
The type of event you would like to subscribe and get notification for. Currently, Resilience Hub supports
notifications only for Drift detected (DriftDetected) and Scheduled assessment failure
(ScheduledAssessmentFailure) events.
If the service returns an enum value that is not available in the current SDK version, eventType will
return EventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
eventTypeAsString().
DriftDetected) and Scheduled
assessment failure (ScheduledAssessmentFailure) events.EventTypepublic final String name()
Unique name to identify an event subscription.
public final String snsTopicArn()
Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic. The format for this ARN is:
arn:partition:sns:region:account:topic-name. For more information about ARNs, see Amazon Resource Names
(ARNs) in the Amazon Web Services General Reference guide.
arn:partition:sns:region:account:topic-name. For more information about ARNs, see Amazon Resource Names
(ARNs) in the Amazon Web Services General Reference guide.public EventSubscription.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EventSubscription.Builder,EventSubscription>public static EventSubscription.Builder builder()
public static Class<? extends EventSubscription.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.