Class NotificationSetting
- java.lang.Object
-
- software.amazon.awssdk.services.rolesanywhere.model.NotificationSetting
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<NotificationSetting.Builder,NotificationSetting>
@Generated("software.amazon.awssdk:codegen") public final class NotificationSetting extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NotificationSetting.Builder,NotificationSetting>
Customizable notification settings that will be applied to notification events. IAM Roles Anywhere consumes these settings while notifying across multiple channels - CloudWatch metrics, EventBridge, and Health Dashboard.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNotificationSetting.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotificationSetting.Builderbuilder()NotificationChannelchannel()The specified channel of notification.StringchannelAsString()The specified channel of notification.Booleanenabled()Indicates whether the notification setting is enabled.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)NotificationEventevent()The event to which this notification setting is applied.StringeventAsString()The event to which this notification setting is applied.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends NotificationSetting.Builder>serializableBuilderClass()Integerthreshold()The number of days before a notification event.NotificationSetting.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
-
channel
public final NotificationChannel channel()
The specified channel of notification. IAM Roles Anywhere uses CloudWatch metrics, EventBridge, and Health Dashboard to notify for an event.
In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' channels.
If the service returns an enum value that is not available in the current SDK version,
channelwill returnNotificationChannel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromchannelAsString().- Returns:
- The specified channel of notification. IAM Roles Anywhere uses CloudWatch metrics, EventBridge, and
Health Dashboard to notify for an event.
In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' channels.
- See Also:
NotificationChannel
-
channelAsString
public final String channelAsString()
The specified channel of notification. IAM Roles Anywhere uses CloudWatch metrics, EventBridge, and Health Dashboard to notify for an event.
In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' channels.
If the service returns an enum value that is not available in the current SDK version,
channelwill returnNotificationChannel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromchannelAsString().- Returns:
- The specified channel of notification. IAM Roles Anywhere uses CloudWatch metrics, EventBridge, and
Health Dashboard to notify for an event.
In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' channels.
- See Also:
NotificationChannel
-
enabled
public final Boolean enabled()
Indicates whether the notification setting is enabled.
- Returns:
- Indicates whether the notification setting is enabled.
-
event
public final NotificationEvent event()
The event to which this notification setting is applied.
If the service returns an enum value that is not available in the current SDK version,
eventwill returnNotificationEvent.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventAsString().- Returns:
- The event to which this notification setting is applied.
- See Also:
NotificationEvent
-
eventAsString
public final String eventAsString()
The event to which this notification setting is applied.
If the service returns an enum value that is not available in the current SDK version,
eventwill returnNotificationEvent.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventAsString().- Returns:
- The event to which this notification setting is applied.
- See Also:
NotificationEvent
-
threshold
public final Integer threshold()
The number of days before a notification event. This value is required for a notification setting that is enabled.
- Returns:
- The number of days before a notification event. This value is required for a notification setting that is enabled.
-
toBuilder
public NotificationSetting.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<NotificationSetting.Builder,NotificationSetting>
-
builder
public static NotificationSetting.Builder builder()
-
serializableBuilderClass
public static Class<? extends NotificationSetting.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.
-
-