Class CfnComponentType.RelationshipProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iottwinmaker.CfnComponentType.RelationshipProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponentType.RelationshipProperty>
- Enclosing interface:
CfnComponentType.RelationshipProperty
@Stability(Stable)
public static final class CfnComponentType.RelationshipProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentType.RelationshipProperty>
A builder for
CfnComponentType.RelationshipProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.relationshipType
(String relationshipType) Sets the value ofCfnComponentType.RelationshipProperty.getRelationshipType()
targetComponentTypeId
(String targetComponentTypeId) Sets the value ofCfnComponentType.RelationshipProperty.getTargetComponentTypeId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
relationshipType
@Stability(Stable) public CfnComponentType.RelationshipProperty.Builder relationshipType(String relationshipType) Sets the value ofCfnComponentType.RelationshipProperty.getRelationshipType()
- Parameters:
relationshipType
- The type of the relationship.- Returns:
this
-
targetComponentTypeId
@Stability(Stable) public CfnComponentType.RelationshipProperty.Builder targetComponentTypeId(String targetComponentTypeId) Sets the value ofCfnComponentType.RelationshipProperty.getTargetComponentTypeId()
- Parameters:
targetComponentTypeId
- The ID of the target component type associated with this relationship.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponentType.RelationshipProperty>
- Returns:
- a new instance of
CfnComponentType.RelationshipProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-