Interface AssetModelCompositeModel.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AssetModelCompositeModel.Builder,
,AssetModelCompositeModel> SdkBuilder<AssetModelCompositeModel.Builder,
,AssetModelCompositeModel> SdkPojo
- Enclosing class:
AssetModelCompositeModel
public static interface AssetModelCompositeModel.Builder
extends SdkPojo, CopyableBuilder<AssetModelCompositeModel.Builder,AssetModelCompositeModel>
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description of the composite model.externalId
(String externalId) The external ID of the asset model composite model.The ID of the asset model composite model.The name of the composite model.properties
(Collection<AssetModelProperty> properties) The asset property definitions for this composite model.properties
(Consumer<AssetModelProperty.Builder>... properties) The asset property definitions for this composite model.properties
(AssetModelProperty... properties) The asset property definitions for this composite model.The type of the composite model.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the composite model.
- Parameters:
name
- The name of the composite model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the composite model.
- Parameters:
description
- The description of the composite model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of the composite model. For alarm composite models, this type is
AWS/ALARM
.- Parameters:
type
- The type of the composite model. For alarm composite models, this type isAWS/ALARM
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
The asset property definitions for this composite model.
- Parameters:
properties
- The asset property definitions for this composite model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
The asset property definitions for this composite model.
- Parameters:
properties
- The asset property definitions for this composite model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
The asset property definitions for this composite model.
This is a convenience method that creates an instance of theAssetModelProperty.Builder
avoiding the need to create one manually viaAssetModelProperty.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toproperties(List<AssetModelProperty>)
.- Parameters:
properties
- a consumer that will call methods onAssetModelProperty.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
id
The ID of the asset model composite model.
- Parameters:
id
- The ID of the asset model composite model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalId
The external ID of the asset model composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.
- Parameters:
externalId
- The external ID of the asset model composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-