@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NotificationSettingDetail extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
NotificationSettingDetail() |
Modifier and Type | Method and Description |
---|---|
NotificationSettingDetail |
clone() |
boolean |
equals(Object obj) |
String |
getChannel()
The specified channel of notification.
|
String |
getConfiguredBy()
The principal that configured the notification setting.
|
Boolean |
getEnabled()
Indicates whether the notification setting is enabled.
|
String |
getEvent()
The event to which this notification setting is applied.
|
Integer |
getThreshold()
The number of days before a notification event.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether the notification setting is enabled.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setChannel(String channel)
The specified channel of notification.
|
void |
setConfiguredBy(String configuredBy)
The principal that configured the notification setting.
|
void |
setEnabled(Boolean enabled)
Indicates whether the notification setting is enabled.
|
void |
setEvent(String event)
The event to which this notification setting is applied.
|
void |
setThreshold(Integer threshold)
The number of days before a notification event.
|
String |
toString()
Returns a string representation of this object.
|
NotificationSettingDetail |
withChannel(NotificationChannel channel)
The specified channel of notification.
|
NotificationSettingDetail |
withChannel(String channel)
The specified channel of notification.
|
NotificationSettingDetail |
withConfiguredBy(String configuredBy)
The principal that configured the notification setting.
|
NotificationSettingDetail |
withEnabled(Boolean enabled)
Indicates whether the notification setting is enabled.
|
NotificationSettingDetail |
withEvent(NotificationEvent event)
The event to which this notification setting is applied.
|
NotificationSettingDetail |
withEvent(String event)
The event to which this notification setting is applied.
|
NotificationSettingDetail |
withThreshold(Integer threshold)
The number of days before a notification event.
|
public void setChannel(String 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.
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.
NotificationChannel
public String getChannel()
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.
In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' channels.
NotificationChannel
public NotificationSettingDetail withChannel(String 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.
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.
NotificationChannel
public NotificationSettingDetail withChannel(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.
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.
NotificationChannel
public void setConfiguredBy(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.
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.public String getConfiguredBy()
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.
rolesanywhere.amazonaws.com
, and for customized notifications
settings, it is the respective account ID.public NotificationSettingDetail withConfiguredBy(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.
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.public void setEnabled(Boolean enabled)
Indicates whether the notification setting is enabled.
enabled
- Indicates whether the notification setting is enabled.public Boolean getEnabled()
Indicates whether the notification setting is enabled.
public NotificationSettingDetail withEnabled(Boolean enabled)
Indicates whether the notification setting is enabled.
enabled
- Indicates whether the notification setting is enabled.public Boolean isEnabled()
Indicates whether the notification setting is enabled.
public void setEvent(String event)
The event to which this notification setting is applied.
event
- The event to which this notification setting is applied.NotificationEvent
public String getEvent()
The event to which this notification setting is applied.
NotificationEvent
public NotificationSettingDetail withEvent(String event)
The event to which this notification setting is applied.
event
- The event to which this notification setting is applied.NotificationEvent
public NotificationSettingDetail withEvent(NotificationEvent event)
The event to which this notification setting is applied.
event
- The event to which this notification setting is applied.NotificationEvent
public void setThreshold(Integer threshold)
The number of days before a notification event.
threshold
- The number of days before a notification event.public Integer getThreshold()
The number of days before a notification event.
public NotificationSettingDetail withThreshold(Integer threshold)
The number of days before a notification event.
threshold
- The number of days before a notification event.public String toString()
toString
in class Object
Object.toString()
public NotificationSettingDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.