Class CfnTrustAnchorPropsMixin.NotificationSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.rolesanywhere.CfnTrustAnchorPropsMixin.NotificationSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrustAnchorPropsMixin.NotificationSettingProperty>
- Enclosing interface:
CfnTrustAnchorPropsMixin.NotificationSettingProperty
@Stability(Stable)
public static final class CfnTrustAnchorPropsMixin.NotificationSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrustAnchorPropsMixin.NotificationSettingProperty>
A builder for
CfnTrustAnchorPropsMixin.NotificationSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTrustAnchorPropsMixin.NotificationSettingProperty.getChannel()Sets the value ofCfnTrustAnchorPropsMixin.NotificationSettingProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnTrustAnchorPropsMixin.NotificationSettingProperty.getEnabled()Sets the value ofCfnTrustAnchorPropsMixin.NotificationSettingProperty.getEvent()Sets the value ofCfnTrustAnchorPropsMixin.NotificationSettingProperty.getThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channel
@Stability(Stable) public CfnTrustAnchorPropsMixin.NotificationSettingProperty.Builder channel(String channel) Sets the value ofCfnTrustAnchorPropsMixin.NotificationSettingProperty.getChannel()- Parameters:
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.
- Returns:
this
-
enabled
@Stability(Stable) public CfnTrustAnchorPropsMixin.NotificationSettingProperty.Builder enabled(Boolean enabled) Sets the value ofCfnTrustAnchorPropsMixin.NotificationSettingProperty.getEnabled()- Parameters:
enabled- Indicates whether the notification setting is enabled.- Returns:
this
-
enabled
@Stability(Stable) public CfnTrustAnchorPropsMixin.NotificationSettingProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnTrustAnchorPropsMixin.NotificationSettingProperty.getEnabled()- Parameters:
enabled- Indicates whether the notification setting is enabled.- Returns:
this
-
event
@Stability(Stable) public CfnTrustAnchorPropsMixin.NotificationSettingProperty.Builder event(String event) Sets the value ofCfnTrustAnchorPropsMixin.NotificationSettingProperty.getEvent()- Parameters:
event- The event to which this notification setting is applied.- Returns:
this
-
threshold
@Stability(Stable) public CfnTrustAnchorPropsMixin.NotificationSettingProperty.Builder threshold(Number threshold) Sets the value ofCfnTrustAnchorPropsMixin.NotificationSettingProperty.getThreshold()- Parameters:
threshold- The number of days before a notification event. This value is required for a notification setting that is enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrustAnchorPropsMixin.NotificationSettingProperty>- Returns:
- a new instance of
CfnTrustAnchorPropsMixin.NotificationSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-