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()
-
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.InstanceAliasis only required whenIdentityManagementTypeisCONNECT_MANAGEDorSAML.InstanceAliasis not required whenIdentityManagementTypeisEXISTING_DIRECTORY.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceProps>- Returns:
- a new instance of
CfnInstanceProps - Throws:
NullPointerException- if any required attribute was not provided
-