Class CfnUserHierarchyStructure.LevelOneProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelOneProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserHierarchyStructure.LevelOneProperty>
- Enclosing interface:
CfnUserHierarchyStructure.LevelOneProperty
@Stability(Stable)
public static final class CfnUserHierarchyStructure.LevelOneProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserHierarchyStructure.LevelOneProperty>
A builder for
CfnUserHierarchyStructure.LevelOneProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.hierarchyLevelArn
(String hierarchyLevelArn) Sets the value ofCfnUserHierarchyStructure.LevelOneProperty.getHierarchyLevelArn()
hierarchyLevelId
(String hierarchyLevelId) Sets the value ofCfnUserHierarchyStructure.LevelOneProperty.getHierarchyLevelId()
Sets the value ofCfnUserHierarchyStructure.LevelOneProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnUserHierarchyStructure.LevelOneProperty.getName()
- Parameters:
name
- The name of the hierarchy level. This parameter is required.- Returns:
this
-
hierarchyLevelArn
@Stability(Stable) public CfnUserHierarchyStructure.LevelOneProperty.Builder hierarchyLevelArn(String hierarchyLevelArn) Sets the value ofCfnUserHierarchyStructure.LevelOneProperty.getHierarchyLevelArn()
- Parameters:
hierarchyLevelArn
- The Amazon Resource Name (ARN) of the hierarchy level.- Returns:
this
-
hierarchyLevelId
@Stability(Stable) public CfnUserHierarchyStructure.LevelOneProperty.Builder hierarchyLevelId(String hierarchyLevelId) Sets the value ofCfnUserHierarchyStructure.LevelOneProperty.getHierarchyLevelId()
- Parameters:
hierarchyLevelId
- The identifier of the hierarchy level.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserHierarchyStructure.LevelOneProperty>
- Returns:
- a new instance of
CfnUserHierarchyStructure.LevelOneProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-