Interface ComputeAttributes.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ComputeAttributes.Builder,
,ComputeAttributes> SdkBuilder<ComputeAttributes.Builder,
,ComputeAttributes> SdkPojo
- Enclosing class:
ComputeAttributes
-
Method Summary
Modifier and TypeMethodDescriptionThe host ID of the Dedicated Host on the asset.instanceFamilies
(String... instanceFamilies) A list of the names of instance families that are currently associated with a given asset.instanceFamilies
(Collection<String> instanceFamilies) A list of the names of instance families that are currently associated with a given asset.instanceTypeCapacities
(Collection<AssetInstanceTypeCapacity> instanceTypeCapacities) The instance type capacities configured for this asset.instanceTypeCapacities
(Consumer<AssetInstanceTypeCapacity.Builder>... instanceTypeCapacities) The instance type capacities configured for this asset.instanceTypeCapacities
(AssetInstanceTypeCapacity... instanceTypeCapacities) The instance type capacities configured for this asset.The maximum number of vCPUs possible for the specified asset.The state.state
(ComputeAssetState state) The state.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, sdkFieldNameToField, sdkFields
-
Method Details
-
hostId
The host ID of the Dedicated Host on the asset.
- Parameters:
hostId
- The host ID of the Dedicated Host on the asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state.
-
ACTIVE - The asset is available and can provide capacity for new compute resources.
-
ISOLATED - The asset is undergoing maintenance and can't provide capacity for new compute resources. Existing compute resources on the asset are not affected.
-
RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before the asset can be replaced.
- Parameters:
state
- The state.-
ACTIVE - The asset is available and can provide capacity for new compute resources.
-
ISOLATED - The asset is undergoing maintenance and can't provide capacity for new compute resources. Existing compute resources on the asset are not affected.
-
RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before the asset can be replaced.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
state
The state.
-
ACTIVE - The asset is available and can provide capacity for new compute resources.
-
ISOLATED - The asset is undergoing maintenance and can't provide capacity for new compute resources. Existing compute resources on the asset are not affected.
-
RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before the asset can be replaced.
- Parameters:
state
- The state.-
ACTIVE - The asset is available and can provide capacity for new compute resources.
-
ISOLATED - The asset is undergoing maintenance and can't provide capacity for new compute resources. Existing compute resources on the asset are not affected.
-
RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before the asset can be replaced.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
instanceFamilies
A list of the names of instance families that are currently associated with a given asset.
- Parameters:
instanceFamilies
- A list of the names of instance families that are currently associated with a given asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFamilies
A list of the names of instance families that are currently associated with a given asset.
- Parameters:
instanceFamilies
- A list of the names of instance families that are currently associated with a given asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypeCapacities
ComputeAttributes.Builder instanceTypeCapacities(Collection<AssetInstanceTypeCapacity> instanceTypeCapacities) The instance type capacities configured for this asset. This can be changed through a capacity task.
- Parameters:
instanceTypeCapacities
- The instance type capacities configured for this asset. This can be changed through a capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypeCapacities
ComputeAttributes.Builder instanceTypeCapacities(AssetInstanceTypeCapacity... instanceTypeCapacities) The instance type capacities configured for this asset. This can be changed through a capacity task.
- Parameters:
instanceTypeCapacities
- The instance type capacities configured for this asset. This can be changed through a capacity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypeCapacities
ComputeAttributes.Builder instanceTypeCapacities(Consumer<AssetInstanceTypeCapacity.Builder>... instanceTypeCapacities) The instance type capacities configured for this asset. This can be changed through a capacity task.
This is a convenience method that creates an instance of theAssetInstanceTypeCapacity.Builder
avoiding the need to create one manually viaAssetInstanceTypeCapacity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceTypeCapacities(List<AssetInstanceTypeCapacity>)
.- Parameters:
instanceTypeCapacities
- a consumer that will call methods onAssetInstanceTypeCapacity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxVcpus
The maximum number of vCPUs possible for the specified asset.
- Parameters:
maxVcpus
- The maximum number of vCPUs possible for the specified asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-