Interface AssetCompositeModel.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AssetCompositeModel.Builder,,AssetCompositeModel> SdkBuilder<AssetCompositeModel.Builder,,AssetCompositeModel> SdkPojo
- Enclosing class:
AssetCompositeModel
public static interface AssetCompositeModel.Builder
extends SdkPojo, CopyableBuilder<AssetCompositeModel.Builder,AssetCompositeModel>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) The description of the composite model.The ID of the asset composite model.The name of the composite model.properties(Collection<AssetProperty> properties) The asset properties that this composite model defines.properties(Consumer<AssetProperty.Builder>... properties) The asset properties that this composite model defines.properties(AssetProperty... properties) The asset properties that this composite model defines.The type of the composite model.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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 properties that this composite model defines.
- Parameters:
properties- The asset properties that this composite model defines.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
The asset properties that this composite model defines.
- Parameters:
properties- The asset properties that this composite model defines.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
The asset properties that this composite model defines.
This is a convenience method that creates an instance of theAssetProperty.Builderavoiding the need to create one manually viaAssetProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproperties(List<AssetProperty>).- Parameters:
properties- a consumer that will call methods onAssetProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
id
The ID of the asset composite model.
- Parameters:
id- The ID of the asset composite model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-