Class CfnComponentTypeProps.Builder
java.lang.Object
software.amazon.awscdk.services.iottwinmaker.CfnComponentTypeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponentTypeProps>
- Enclosing interface:
CfnComponentTypeProps
@Stability(Stable)
public static final class CfnComponentTypeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentTypeProps>
A builder for
CfnComponentTypeProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.componentTypeId
(String componentTypeId) Sets the value ofCfnComponentTypeProps.getComponentTypeId()
compositeComponentTypes
(Map<String, ? extends Object> compositeComponentTypes) Sets the value ofCfnComponentTypeProps.getCompositeComponentTypes()
compositeComponentTypes
(IResolvable compositeComponentTypes) Sets the value ofCfnComponentTypeProps.getCompositeComponentTypes()
description
(String description) Sets the value ofCfnComponentTypeProps.getDescription()
extendsFrom
(List<String> extendsFrom) Sets the value ofCfnComponentTypeProps.getExtendsFrom()
Sets the value ofCfnComponentTypeProps.getFunctions()
functions
(IResolvable functions) Sets the value ofCfnComponentTypeProps.getFunctions()
isSingleton
(Boolean isSingleton) Sets the value ofCfnComponentTypeProps.getIsSingleton()
isSingleton
(IResolvable isSingleton) Sets the value ofCfnComponentTypeProps.getIsSingleton()
propertyDefinitions
(Map<String, ? extends Object> propertyDefinitions) Sets the value ofCfnComponentTypeProps.getPropertyDefinitions()
propertyDefinitions
(IResolvable propertyDefinitions) Sets the value ofCfnComponentTypeProps.getPropertyDefinitions()
propertyGroups
(Map<String, ? extends Object> propertyGroups) Sets the value ofCfnComponentTypeProps.getPropertyGroups()
propertyGroups
(IResolvable propertyGroups) Sets the value ofCfnComponentTypeProps.getPropertyGroups()
Sets the value ofCfnComponentTypeProps.getTags()
workspaceId
(String workspaceId) Sets the value ofCfnComponentTypeProps.getWorkspaceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
componentTypeId
Sets the value ofCfnComponentTypeProps.getComponentTypeId()
- Parameters:
componentTypeId
- The ID of the component type. This parameter is required.- Returns:
this
-
workspaceId
Sets the value ofCfnComponentTypeProps.getWorkspaceId()
- Parameters:
workspaceId
- The ID of the workspace that contains the component type. This parameter is required.- Returns:
this
-
compositeComponentTypes
@Stability(Stable) public CfnComponentTypeProps.Builder compositeComponentTypes(IResolvable compositeComponentTypes) Sets the value ofCfnComponentTypeProps.getCompositeComponentTypes()
- Parameters:
compositeComponentTypes
- Maps strings tocompositeComponentTypes
of thecomponentType
.CompositeComponentType
is referenced bycomponentTypeId
.- Returns:
this
-
compositeComponentTypes
@Stability(Stable) public CfnComponentTypeProps.Builder compositeComponentTypes(Map<String, ? extends Object> compositeComponentTypes) Sets the value ofCfnComponentTypeProps.getCompositeComponentTypes()
- Parameters:
compositeComponentTypes
- Maps strings tocompositeComponentTypes
of thecomponentType
.CompositeComponentType
is referenced bycomponentTypeId
.- Returns:
this
-
description
Sets the value ofCfnComponentTypeProps.getDescription()
- Parameters:
description
- The description of the component type.- Returns:
this
-
extendsFrom
Sets the value ofCfnComponentTypeProps.getExtendsFrom()
- Parameters:
extendsFrom
- The name of the parent component type that this component type extends.- Returns:
this
-
functions
Sets the value ofCfnComponentTypeProps.getFunctions()
- Parameters:
functions
- An object that maps strings to the functions in the component type. Each string in the mapping must be unique to this object.For information on the FunctionResponse object see the FunctionResponse API reference.
- Returns:
this
-
functions
@Stability(Stable) public CfnComponentTypeProps.Builder functions(Map<String, ? extends Object> functions) Sets the value ofCfnComponentTypeProps.getFunctions()
- Parameters:
functions
- An object that maps strings to the functions in the component type. Each string in the mapping must be unique to this object.For information on the FunctionResponse object see the FunctionResponse API reference.
- Returns:
this
-
isSingleton
Sets the value ofCfnComponentTypeProps.getIsSingleton()
- Parameters:
isSingleton
- A boolean value that specifies whether an entity can have more than one component of this type.- Returns:
this
-
isSingleton
Sets the value ofCfnComponentTypeProps.getIsSingleton()
- Parameters:
isSingleton
- A boolean value that specifies whether an entity can have more than one component of this type.- Returns:
this
-
propertyDefinitions
@Stability(Stable) public CfnComponentTypeProps.Builder propertyDefinitions(IResolvable propertyDefinitions) Sets the value ofCfnComponentTypeProps.getPropertyDefinitions()
- Parameters:
propertyDefinitions
- An object that maps strings to the property definitions in the component type. Each string in the mapping must be unique to this object.For information about the PropertyDefinitionResponse object, see the PropertyDefinitionResponse API reference.
- Returns:
this
-
propertyDefinitions
@Stability(Stable) public CfnComponentTypeProps.Builder propertyDefinitions(Map<String, ? extends Object> propertyDefinitions) Sets the value ofCfnComponentTypeProps.getPropertyDefinitions()
- Parameters:
propertyDefinitions
- An object that maps strings to the property definitions in the component type. Each string in the mapping must be unique to this object.For information about the PropertyDefinitionResponse object, see the PropertyDefinitionResponse API reference.
- Returns:
this
-
propertyGroups
Sets the value ofCfnComponentTypeProps.getPropertyGroups()
- Parameters:
propertyGroups
- An object that maps strings to the property groups in the component type. Each string in the mapping must be unique to this object.- Returns:
this
-
propertyGroups
@Stability(Stable) public CfnComponentTypeProps.Builder propertyGroups(Map<String, ? extends Object> propertyGroups) Sets the value ofCfnComponentTypeProps.getPropertyGroups()
- Parameters:
propertyGroups
- An object that maps strings to the property groups in the component type. Each string in the mapping must be unique to this object.- Returns:
this
-
tags
Sets the value ofCfnComponentTypeProps.getTags()
- Parameters:
tags
- The ComponentType tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponentTypeProps>
- Returns:
- a new instance of
CfnComponentTypeProps
- Throws:
NullPointerException
- if any required attribute was not provided
-