Class CfnPredefinedAttributeProps.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnPredefinedAttributeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPredefinedAttributeProps>
- Enclosing interface:
CfnPredefinedAttributeProps
@Stability(Stable)
public static final class CfnPredefinedAttributeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPredefinedAttributeProps>
A builder for
CfnPredefinedAttributeProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeConfiguration
(IResolvable attributeConfiguration) Sets the value ofCfnPredefinedAttributeProps.getAttributeConfiguration()
attributeConfiguration
(CfnPredefinedAttribute.AttributeConfigurationProperty attributeConfiguration) Sets the value ofCfnPredefinedAttributeProps.getAttributeConfiguration()
build()
Builds the configured instance.instanceArn
(String instanceArn) Sets the value ofCfnPredefinedAttributeProps.getInstanceArn()
Sets the value ofCfnPredefinedAttributeProps.getName()
Sets the value ofCfnPredefinedAttributeProps.getPurposes()
values
(IResolvable values) Sets the value ofCfnPredefinedAttributeProps.getValues()
Sets the value ofCfnPredefinedAttributeProps.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceArn
Sets the value ofCfnPredefinedAttributeProps.getInstanceArn()
- Parameters:
instanceArn
- The Amazon Resource Name (ARN) of the instance. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnPredefinedAttributeProps.getName()
- Parameters:
name
- The name of the predefined attribute. This parameter is required.- Returns:
this
-
attributeConfiguration
@Stability(Stable) public CfnPredefinedAttributeProps.Builder attributeConfiguration(IResolvable attributeConfiguration) Sets the value ofCfnPredefinedAttributeProps.getAttributeConfiguration()
- Parameters:
attributeConfiguration
- Custom metadata associated to a Predefined attribute that controls how the attribute behaves when used by upstream services.- Returns:
this
-
attributeConfiguration
@Stability(Stable) public CfnPredefinedAttributeProps.Builder attributeConfiguration(CfnPredefinedAttribute.AttributeConfigurationProperty attributeConfiguration) Sets the value ofCfnPredefinedAttributeProps.getAttributeConfiguration()
- Parameters:
attributeConfiguration
- Custom metadata associated to a Predefined attribute that controls how the attribute behaves when used by upstream services.- Returns:
this
-
purposes
Sets the value ofCfnPredefinedAttributeProps.getPurposes()
- Parameters:
purposes
- The assigned purposes of the predefined attribute.- Returns:
this
-
values
Sets the value ofCfnPredefinedAttributeProps.getValues()
- Parameters:
values
- The values of a predefined attribute.- Returns:
this
-
values
@Stability(Stable) public CfnPredefinedAttributeProps.Builder values(CfnPredefinedAttribute.ValuesProperty values) Sets the value ofCfnPredefinedAttributeProps.getValues()
- Parameters:
values
- The values of a predefined attribute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPredefinedAttributeProps>
- Returns:
- a new instance of
CfnPredefinedAttributeProps
- Throws:
NullPointerException
- if any required attribute was not provided
-