Class NotificationSettingDetail
- java.lang.Object
-
- software.amazon.awssdk.services.rolesanywhere.model.NotificationSettingDetail
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<NotificationSettingDetail.Builder,NotificationSettingDetail>
@Generated("software.amazon.awssdk:codegen") public final class NotificationSettingDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NotificationSettingDetail.Builder,NotificationSettingDetail>
The state of a notification setting.
A notification setting includes information such as event name, threshold, status of the notification setting, and the channel to notify.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NotificationSettingDetail.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotificationSettingDetail.Builder
builder()
NotificationChannel
channel()
The specified channel of notification.String
channelAsString()
The specified channel of notification.String
configuredBy()
The principal that configured the notification setting.Boolean
enabled()
Indicates whether the notification setting is enabled.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
NotificationEvent
event()
The event to which this notification setting is applied.String
eventAsString()
The event to which this notification setting is applied.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends NotificationSettingDetail.Builder>
serializableBuilderClass()
Integer
threshold()
The number of days before a notification event.NotificationSettingDetail.Builder
toBuilder()
String
toString()
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,
channel
will 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,
channel
will 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
-
configuredBy
public final String configuredBy()
The principal that configured the notification setting. For default settings configured by IAM Roles Anywhere, the value is
rolesanywhere.amazonaws.com
, and for customized notifications settings, it is the respective account ID.- Returns:
- The principal that configured the notification setting. For default settings configured by IAM Roles
Anywhere, the value is
rolesanywhere.amazonaws.com
, and for customized notifications settings, it is the respective account ID.
-
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,
event
will 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,
event
will 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.
- Returns:
- The number of days before a notification event.
-
toBuilder
public NotificationSettingDetail.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<NotificationSettingDetail.Builder,NotificationSettingDetail>
-
builder
public static NotificationSettingDetail.Builder builder()
-
serializableBuilderClass
public static Class<? extends NotificationSettingDetail.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-