Class CfnSecurityProfile.PrimaryAttributeValueProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnSecurityProfile.PrimaryAttributeValueProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfile.PrimaryAttributeValueProperty>
- Enclosing interface:
CfnSecurityProfile.PrimaryAttributeValueProperty
@Stability(Stable)
public static final class CfnSecurityProfile.PrimaryAttributeValueProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfile.PrimaryAttributeValueProperty>
A builder for
CfnSecurityProfile.PrimaryAttributeValueProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessType(String accessType) Sets the value ofCfnSecurityProfile.PrimaryAttributeValueProperty.getAccessType()attributeName(String attributeName) Sets the value ofCfnSecurityProfile.PrimaryAttributeValueProperty.getAttributeName()build()Builds the configured instance.Sets the value ofCfnSecurityProfile.PrimaryAttributeValueProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessType
@Stability(Stable) public CfnSecurityProfile.PrimaryAttributeValueProperty.Builder accessType(String accessType) Sets the value ofCfnSecurityProfile.PrimaryAttributeValueProperty.getAccessType()- Parameters:
accessType- Specifies the type of access granted. This parameter is required. Currently, only "ALLOW" is supported- Returns:
this
-
attributeName
@Stability(Stable) public CfnSecurityProfile.PrimaryAttributeValueProperty.Builder attributeName(String attributeName) Sets the value ofCfnSecurityProfile.PrimaryAttributeValueProperty.getAttributeName()- Parameters:
attributeName- The name of the primary attribute. This parameter is required.- Returns:
this
-
values
@Stability(Stable) public CfnSecurityProfile.PrimaryAttributeValueProperty.Builder values(List<String> values) Sets the value ofCfnSecurityProfile.PrimaryAttributeValueProperty.getValues()- Parameters:
values- An array of allowed primary values for the specified primary attribute. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityProfile.PrimaryAttributeValueProperty>- Returns:
- a new instance of
CfnSecurityProfile.PrimaryAttributeValueProperty - Throws:
NullPointerException- if any required attribute was not provided
-