public static final class CfnAssetProps.Builder
extends java.lang.Object
CfnAssetProps
Constructor and Description |
---|
Builder() |
public CfnAssetProps.Builder assetModelId(java.lang.String assetModelId)
CfnAssetProps.getAssetModelId()
assetModelId
- The ID of the asset model from which to create the asset. This parameter is required.this
public CfnAssetProps.Builder assetName(java.lang.String assetName)
CfnAssetProps.getAssetName()
assetName
- A unique, friendly name for the asset. This parameter is required.
The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+
.this
public CfnAssetProps.Builder assetDescription(java.lang.String assetDescription)
CfnAssetProps.getAssetDescription()
assetDescription
- A description for the asset.this
public CfnAssetProps.Builder assetHierarchies(IResolvable assetHierarchies)
CfnAssetProps.getAssetHierarchies()
assetHierarchies
- A list of asset hierarchies that each contain a `hierarchyLogicalId` .
A hierarchy specifies allowed parent/child asset relationships.this
public CfnAssetProps.Builder assetHierarchies(java.util.List<? extends java.lang.Object> assetHierarchies)
CfnAssetProps.getAssetHierarchies()
assetHierarchies
- A list of asset hierarchies that each contain a `hierarchyLogicalId` .
A hierarchy specifies allowed parent/child asset relationships.this
public CfnAssetProps.Builder assetProperties(IResolvable assetProperties)
CfnAssetProps.getAssetProperties()
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 assetCompositeModels
object.this
public CfnAssetProps.Builder assetProperties(java.util.List<? extends java.lang.Object> assetProperties)
CfnAssetProps.getAssetProperties()
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 assetCompositeModels
object.this
public CfnAssetProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnAssetProps.getTags()
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 .this
public CfnAssetProps build()
CfnAssetProps
java.lang.NullPointerException
- if any required attribute was not provided