Class CfnEntityProps.Builder
java.lang.Object
software.amazon.awscdk.services.iottwinmaker.CfnEntityProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEntityProps>
- Enclosing interface:
CfnEntityProps
@Stability(Stable)
public static final class CfnEntityProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEntityProps>
A builder for
CfnEntityProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.components
(Map<String, ? extends Object> components) Sets the value ofCfnEntityProps.getComponents()
components
(IResolvable components) Sets the value ofCfnEntityProps.getComponents()
compositeComponents
(Map<String, ? extends Object> compositeComponents) Sets the value ofCfnEntityProps.getCompositeComponents()
compositeComponents
(IResolvable compositeComponents) Sets the value ofCfnEntityProps.getCompositeComponents()
description
(String description) Sets the value ofCfnEntityProps.getDescription()
Sets the value ofCfnEntityProps.getEntityId()
entityName
(String entityName) Sets the value ofCfnEntityProps.getEntityName()
parentEntityId
(String parentEntityId) Sets the value ofCfnEntityProps.getParentEntityId()
Sets the value ofCfnEntityProps.getTags()
workspaceId
(String workspaceId) Sets the value ofCfnEntityProps.getWorkspaceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
entityName
Sets the value ofCfnEntityProps.getEntityName()
- Parameters:
entityName
- The entity name. This parameter is required.- Returns:
this
-
workspaceId
Sets the value ofCfnEntityProps.getWorkspaceId()
- Parameters:
workspaceId
- The ID of the workspace that contains the entity. This parameter is required.- Returns:
this
-
components
Sets the value ofCfnEntityProps.getComponents()
- Parameters:
components
- An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.For information on the component object see the component API reference.
- Returns:
this
-
components
@Stability(Stable) public CfnEntityProps.Builder components(Map<String, ? extends Object> components) Sets the value ofCfnEntityProps.getComponents()
- Parameters:
components
- An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.For information on the component object see the component API reference.
- Returns:
this
-
compositeComponents
@Stability(Stable) public CfnEntityProps.Builder compositeComponents(IResolvable compositeComponents) Sets the value ofCfnEntityProps.getCompositeComponents()
- Parameters:
compositeComponents
- Maps string tocompositeComponent
updates in the request. Each key of the map represents thecomponentPath
of thecompositeComponent
.- Returns:
this
-
compositeComponents
@Stability(Stable) public CfnEntityProps.Builder compositeComponents(Map<String, ? extends Object> compositeComponents) Sets the value ofCfnEntityProps.getCompositeComponents()
- Parameters:
compositeComponents
- Maps string tocompositeComponent
updates in the request. Each key of the map represents thecomponentPath
of thecompositeComponent
.- Returns:
this
-
description
Sets the value ofCfnEntityProps.getDescription()
- Parameters:
description
- The description of the entity.- Returns:
this
-
entityId
Sets the value ofCfnEntityProps.getEntityId()
- Parameters:
entityId
- The ID of the entity.- Returns:
this
-
parentEntityId
Sets the value ofCfnEntityProps.getParentEntityId()
- Parameters:
parentEntityId
- The ID of the parent entity.- Returns:
this
-
tags
Sets the value ofCfnEntityProps.getTags()
- Parameters:
tags
- Metadata that you can use to manage the entity.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEntityProps>
- Returns:
- a new instance of
CfnEntityProps
- Throws:
NullPointerException
- if any required attribute was not provided
-