@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NotificationSetting extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
NotificationSetting() |
Modifier and Type | Method and Description |
---|---|
NotificationSetting |
clone() |
boolean |
equals(Object obj) |
String |
getChannel()
The specified channel of notification.
|
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 |
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.
|
NotificationSetting |
withChannel(NotificationChannel channel)
The specified channel of notification.
|
NotificationSetting |
withChannel(String channel)
The specified channel of notification.
|
NotificationSetting |
withEnabled(Boolean enabled)
Indicates whether the notification setting is enabled.
|
NotificationSetting |
withEvent(NotificationEvent event)
The event to which this notification setting is applied.
|
NotificationSetting |
withEvent(String event)
The event to which this notification setting is applied.
|
NotificationSetting |
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 NotificationSetting 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 NotificationSetting 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 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 NotificationSetting 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 NotificationSetting withEvent(String event)
The event to which this notification setting is applied.
event
- The event to which this notification setting is applied.NotificationEvent
public NotificationSetting 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. This value is required for a notification setting that is enabled.
threshold
- The number of days before a notification event. This value is required for a notification setting that is
enabled.public Integer getThreshold()
The number of days before a notification event. This value is required for a notification setting that is enabled.
public NotificationSetting withThreshold(Integer threshold)
The number of days before a notification event. This value is required for a notification setting that is enabled.
threshold
- The number of days before a notification event. This value is required for a notification setting that is
enabled.public String toString()
toString
in class Object
Object.toString()
public NotificationSetting clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.