@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
NotificationSetting.Builder |
| Modifier and Type | Method and Description |
|---|---|
static NotificationSetting.Builder |
builder() |
NotificationChannel |
channel()
The specified channel of notification.
|
String |
channelAsString()
The specified channel of notification.
|
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 NotificationSetting.Builder> |
serializableBuilderClass() |
Integer |
threshold()
The number of days before a notification event.
|
NotificationSetting.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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
return NotificationChannel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from channelAsString().
In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' channels.
NotificationChannelpublic 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
return NotificationChannel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from channelAsString().
In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' channels.
NotificationChannelpublic final Boolean enabled()
Indicates whether the notification setting is enabled.
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 return
NotificationEvent.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
eventAsString().
NotificationEventpublic 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 return
NotificationEvent.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
eventAsString().
NotificationEventpublic final Integer threshold()
The number of days before a notification event. This value is required for a notification setting that is enabled.
public NotificationSetting.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<NotificationSetting.Builder,NotificationSetting>public static NotificationSetting.Builder builder()
public static Class<? extends NotificationSetting.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.