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