Class CfnTrustAnchorProps.Builder
java.lang.Object
software.amazon.awscdk.services.rolesanywhere.CfnTrustAnchorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrustAnchorProps>
- Enclosing interface:
CfnTrustAnchorProps
@Stability(Stable)
public static final class CfnTrustAnchorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrustAnchorProps>
A builder for
CfnTrustAnchorProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTrustAnchorProps.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnTrustAnchorProps.getEnabled()
Sets the value ofCfnTrustAnchorProps.getName()
notificationSettings
(List<? extends Object> notificationSettings) Sets the value ofCfnTrustAnchorProps.getNotificationSettings()
notificationSettings
(IResolvable notificationSettings) Sets the value ofCfnTrustAnchorProps.getNotificationSettings()
source
(IResolvable source) Sets the value ofCfnTrustAnchorProps.getSource()
source
(CfnTrustAnchor.SourceProperty source) Sets the value ofCfnTrustAnchorProps.getSource()
Sets the value ofCfnTrustAnchorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnTrustAnchorProps.getName()
- Parameters:
name
- The name of the trust anchor. This parameter is required.- Returns:
this
-
source
Sets the value ofCfnTrustAnchorProps.getSource()
- Parameters:
source
- The trust anchor type and its related certificate data. This parameter is required.- Returns:
this
-
source
Sets the value ofCfnTrustAnchorProps.getSource()
- Parameters:
source
- The trust anchor type and its related certificate data. This parameter is required.- Returns:
this
-
enabled
Sets the value ofCfnTrustAnchorProps.getEnabled()
- Parameters:
enabled
- Indicates whether the trust anchor is enabled.- Returns:
this
-
enabled
Sets the value ofCfnTrustAnchorProps.getEnabled()
- Parameters:
enabled
- Indicates whether the trust anchor is enabled.- Returns:
this
-
notificationSettings
@Stability(Stable) public CfnTrustAnchorProps.Builder notificationSettings(IResolvable notificationSettings) Sets the value ofCfnTrustAnchorProps.getNotificationSettings()
- Parameters:
notificationSettings
- A list of notification settings to be associated to the trust anchor.- Returns:
this
-
notificationSettings
@Stability(Stable) public CfnTrustAnchorProps.Builder notificationSettings(List<? extends Object> notificationSettings) Sets the value ofCfnTrustAnchorProps.getNotificationSettings()
- Parameters:
notificationSettings
- A list of notification settings to be associated to the trust anchor.- Returns:
this
-
tags
Sets the value ofCfnTrustAnchorProps.getTags()
- Parameters:
tags
- The tags to attach to the trust anchor.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTrustAnchorProps>
- Returns:
- a new instance of
CfnTrustAnchorProps
- Throws:
NullPointerException
- if any required attribute was not provided
-