Class CfnEntity.ComponentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iottwinmaker.CfnEntity.ComponentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEntity.ComponentProperty>
- Enclosing interface:
CfnEntity.ComponentProperty
@Stability(Stable)
public static final class CfnEntity.ComponentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEntity.ComponentProperty>
A builder for
CfnEntity.ComponentProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.componentName
(String componentName) Sets the value ofCfnEntity.ComponentProperty.getComponentName()
componentTypeId
(String componentTypeId) Sets the value ofCfnEntity.ComponentProperty.getComponentTypeId()
Sets the value ofCfnEntity.ComponentProperty.getDefinedIn()
description
(String description) Sets the value ofCfnEntity.ComponentProperty.getDescription()
properties
(Map<String, ? extends Object> properties) Sets the value ofCfnEntity.ComponentProperty.getProperties()
properties
(IResolvable properties) Sets the value ofCfnEntity.ComponentProperty.getProperties()
propertyGroups
(Map<String, ? extends Object> propertyGroups) Sets the value ofCfnEntity.ComponentProperty.getPropertyGroups()
propertyGroups
(IResolvable propertyGroups) Sets the value ofCfnEntity.ComponentProperty.getPropertyGroups()
status
(IResolvable status) Sets the value ofCfnEntity.ComponentProperty.getStatus()
status
(CfnEntity.StatusProperty status) Sets the value ofCfnEntity.ComponentProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
componentName
Sets the value ofCfnEntity.ComponentProperty.getComponentName()
- Parameters:
componentName
- The name of the component.- Returns:
this
-
componentTypeId
@Stability(Stable) public CfnEntity.ComponentProperty.Builder componentTypeId(String componentTypeId) Sets the value ofCfnEntity.ComponentProperty.getComponentTypeId()
- Parameters:
componentTypeId
- The ID of the component type.- Returns:
this
-
definedIn
Sets the value ofCfnEntity.ComponentProperty.getDefinedIn()
- Parameters:
definedIn
- The name of the property definition set in the request.- Returns:
this
-
description
Sets the value ofCfnEntity.ComponentProperty.getDescription()
- Parameters:
description
- The description of the component.- Returns:
this
-
properties
Sets the value ofCfnEntity.ComponentProperty.getProperties()
- Parameters:
properties
- An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.- Returns:
this
-
properties
@Stability(Stable) public CfnEntity.ComponentProperty.Builder properties(Map<String, ? extends Object> properties) Sets the value ofCfnEntity.ComponentProperty.getProperties()
- Parameters:
properties
- An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.- Returns:
this
-
propertyGroups
@Stability(Stable) public CfnEntity.ComponentProperty.Builder propertyGroups(IResolvable propertyGroups) Sets the value ofCfnEntity.ComponentProperty.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 CfnEntity.ComponentProperty.Builder propertyGroups(Map<String, ? extends Object> propertyGroups) Sets the value ofCfnEntity.ComponentProperty.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
-
status
Sets the value ofCfnEntity.ComponentProperty.getStatus()
- Parameters:
status
- The status of the component.- Returns:
this
-
status
@Stability(Stable) public CfnEntity.ComponentProperty.Builder status(CfnEntity.StatusProperty status) Sets the value ofCfnEntity.ComponentProperty.getStatus()
- Parameters:
status
- The status of the component.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEntity.ComponentProperty>
- Returns:
- a new instance of
CfnEntity.ComponentProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-