Interface ComputeAttributes.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ComputeAttributes.Builder,ComputeAttributes>,SdkBuilder<ComputeAttributes.Builder,ComputeAttributes>,SdkPojo
- Enclosing class:
- ComputeAttributes
public static interface ComputeAttributes.Builder extends SdkPojo, CopyableBuilder<ComputeAttributes.Builder,ComputeAttributes>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComputeAttributes.BuilderhostId(String hostId)The host ID of the Dedicated Host on the asset.ComputeAttributes.BuilderinstanceFamilies(String... instanceFamilies)A list of the names of instance families that are currently associated with a given asset.ComputeAttributes.BuilderinstanceFamilies(Collection<String> instanceFamilies)A list of the names of instance families that are currently associated with a given asset.ComputeAttributes.BuilderinstanceTypeCapacities(Collection<AssetInstanceTypeCapacity> instanceTypeCapacities)The instance type capacities configured for this asset.ComputeAttributes.BuilderinstanceTypeCapacities(Consumer<AssetInstanceTypeCapacity.Builder>... instanceTypeCapacities)The instance type capacities configured for this asset.ComputeAttributes.BuilderinstanceTypeCapacities(AssetInstanceTypeCapacity... instanceTypeCapacities)The instance type capacities configured for this asset.ComputeAttributes.BuildermaxVcpus(Integer maxVcpus)The maximum number of vCPUs possible for the specified asset.ComputeAttributes.Builderstate(String state)The state.ComputeAttributes.Builderstate(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 Detail
-
hostId
ComputeAttributes.Builder hostId(String 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
ComputeAttributes.Builder state(String 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:
ComputeAssetState,ComputeAssetState
-
-
state
ComputeAttributes.Builder state(ComputeAssetState 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:
ComputeAssetState,ComputeAssetState
-
-
instanceFamilies
ComputeAttributes.Builder instanceFamilies(Collection<String> 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
ComputeAttributes.Builder instanceFamilies(String... 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.Builderavoiding the need to create one manually viaAssetInstanceTypeCapacity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#instanceTypeCapacities(List.) - 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:
#instanceTypeCapacities(java.util.Collection)
-
maxVcpus
ComputeAttributes.Builder maxVcpus(Integer 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.
-
-