Class EventSubscription
- java.lang.Object
-
- software.amazon.awssdk.services.resiliencehub.model.EventSubscription
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EventSubscription.Builder,EventSubscription>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEventSubscription.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventSubscription.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)EventTypeeventType()The type of event you would like to subscribe and get notification for.StringeventTypeAsString()The type of event you would like to subscribe and get notification for.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()Unique name to identify an event subscription.List<SdkField<?>>sdkFields()static Class<? extends EventSubscription.Builder>serializableBuilderClass()StringsnsTopicArn()Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic.EventSubscription.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
eventType
public 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,
eventTypewill returnEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventTypeAsString().- Returns:
- 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. - See Also:
EventType
-
eventTypeAsString
public 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,
eventTypewill returnEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventTypeAsString().- Returns:
- 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. - See Also:
EventType
-
name
public final String name()
Unique name to identify an event subscription.
- Returns:
- Unique name to identify an event subscription.
-
snsTopicArn
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.- Returns:
- 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.
-
toBuilder
public EventSubscription.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EventSubscription.Builder,EventSubscription>
-
builder
public static EventSubscription.Builder builder()
-
serializableBuilderClass
public static Class<? extends EventSubscription.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-