Class CfnInstanceProps.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnInstanceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceProps>
- Enclosing interface:
CfnInstanceProps
@Stability(Stable)
public static final class CfnInstanceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceProps>
A builder for
CfnInstanceProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes
(IResolvable attributes) Sets the value ofCfnInstanceProps.getAttributes()
attributes
(CfnInstance.AttributesProperty attributes) Sets the value ofCfnInstanceProps.getAttributes()
build()
Builds the configured instance.directoryId
(String directoryId) Sets the value ofCfnInstanceProps.getDirectoryId()
identityManagementType
(String identityManagementType) Sets the value ofCfnInstanceProps.getIdentityManagementType()
instanceAlias
(String instanceAlias) Sets the value ofCfnInstanceProps.getInstanceAlias()
Sets the value ofCfnInstanceProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
Sets the value ofCfnInstanceProps.getAttributes()
- Parameters:
attributes
- A toggle for an individual feature at the instance level. This parameter is required.- Returns:
this
-
attributes
@Stability(Stable) public CfnInstanceProps.Builder attributes(CfnInstance.AttributesProperty attributes) Sets the value ofCfnInstanceProps.getAttributes()
- Parameters:
attributes
- A toggle for an individual feature at the instance level. This parameter is required.- Returns:
this
-
identityManagementType
@Stability(Stable) public CfnInstanceProps.Builder identityManagementType(String identityManagementType) Sets the value ofCfnInstanceProps.getIdentityManagementType()
- Parameters:
identityManagementType
- The identity management type. This parameter is required.- Returns:
this
-
directoryId
Sets the value ofCfnInstanceProps.getDirectoryId()
- Parameters:
directoryId
- The identifier for the directory.- Returns:
this
-
instanceAlias
Sets the value ofCfnInstanceProps.getInstanceAlias()
- Parameters:
instanceAlias
- The alias of instance.InstanceAlias
is only required whenIdentityManagementType
isCONNECT_MANAGED
orSAML
.InstanceAlias
is not required whenIdentityManagementType
isEXISTING_DIRECTORY
.- Returns:
this
-
tags
Sets the value ofCfnInstanceProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInstanceProps>
- Returns:
- a new instance of
CfnInstanceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-