Class CfnAssetProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAssetProps.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnAssetProps>
- Enclosing interface:
- CfnAssetProps
@Stability(Stable)
public static final class CfnAssetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetProps>
A builder for 
CfnAssetProps- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionassetDescription(String assetDescription) Sets the value ofCfnAssetProps.getAssetDescription()assetHierarchies(List<? extends Object> assetHierarchies) Sets the value ofCfnAssetProps.getAssetHierarchies()assetHierarchies(IResolvable assetHierarchies) Sets the value ofCfnAssetProps.getAssetHierarchies()assetModelId(String assetModelId) Sets the value ofCfnAssetProps.getAssetModelId()Sets the value ofCfnAssetProps.getAssetName()assetProperties(List<? extends Object> assetProperties) Sets the value ofCfnAssetProps.getAssetProperties()assetProperties(IResolvable assetProperties) Sets the value ofCfnAssetProps.getAssetProperties()build()Builds the configured instance.Sets the value ofCfnAssetProps.getTags()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
assetModelIdSets the value ofCfnAssetProps.getAssetModelId()- Parameters:
- assetModelId- The ID of the asset model from which to create the asset. This parameter is required.
- Returns:
- this
 
- 
assetNameSets the value ofCfnAssetProps.getAssetName()- Parameters:
- assetName- A unique, friendly name for the asset. This parameter is required. The maximum length is 256 characters with the pattern- [^\ u0000-\ u001F\ u007F]+.
- Returns:
- this
 
- 
assetDescriptionSets the value ofCfnAssetProps.getAssetDescription()- Parameters:
- assetDescription- A description for the asset.
- Returns:
- this
 
- 
assetHierarchiesSets the value ofCfnAssetProps.getAssetHierarchies()- Parameters:
- assetHierarchies- A list of asset hierarchies that each contain a- hierarchyLogicalId. A hierarchy specifies allowed parent/child asset relationships.
- Returns:
- this
 
- 
assetHierarchies@Stability(Stable) public CfnAssetProps.Builder assetHierarchies(List<? extends Object> assetHierarchies) Sets the value ofCfnAssetProps.getAssetHierarchies()- Parameters:
- assetHierarchies- A list of asset hierarchies that each contain a- hierarchyLogicalId. A hierarchy specifies allowed parent/child asset relationships.
- Returns:
- this
 
- 
assetPropertiesSets the value ofCfnAssetProps.getAssetProperties()- Parameters:
- assetProperties- The list of asset properties for the asset. This object doesn't include properties that you define in composite models. You can find composite model properties in the- assetCompositeModelsobject.
- Returns:
- this
 
- 
assetProperties@Stability(Stable) public CfnAssetProps.Builder assetProperties(List<? extends Object> assetProperties) Sets the value ofCfnAssetProps.getAssetProperties()- Parameters:
- assetProperties- The list of asset properties for the asset. This object doesn't include properties that you define in composite models. You can find composite model properties in the- assetCompositeModelsobject.
- Returns:
- this
 
- 
tagsSets the value ofCfnAssetProps.getTags()- Parameters:
- tags- A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide .
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnAssetProps>
- Returns:
- a new instance of CfnAssetProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-