Interface ComputeAttributes.Builder

  • 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

      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 the AssetInstanceTypeCapacity.Builder avoiding the need to create one manually via AssetInstanceTypeCapacity.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to instanceTypeCapacities(List<AssetInstanceTypeCapacity>).

      Parameters:
      instanceTypeCapacities - a consumer that will call methods on AssetInstanceTypeCapacity.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.