Interface Host.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Host.Builder,Host>, SdkBuilder<Host.Builder,Host>, SdkPojo
Enclosing class:
Host

public static interface Host.Builder extends SdkPojo, CopyableBuilder<Host.Builder,Host>
  • Method Details

    • autoPlacement

      Host.Builder autoPlacement(String autoPlacement)

      Whether auto-placement is on or off.

      Parameters:
      autoPlacement - Whether auto-placement is on or off.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • autoPlacement

      Host.Builder autoPlacement(AutoPlacement autoPlacement)

      Whether auto-placement is on or off.

      Parameters:
      autoPlacement - Whether auto-placement is on or off.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • availabilityZone

      Host.Builder availabilityZone(String availabilityZone)

      The Availability Zone of the Dedicated Host.

      Parameters:
      availabilityZone - The Availability Zone of the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availableCapacity

      Host.Builder availableCapacity(AvailableCapacity availableCapacity)

      Information about the instances running on the Dedicated Host.

      Parameters:
      availableCapacity - Information about the instances running on the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availableCapacity

      default Host.Builder availableCapacity(Consumer<AvailableCapacity.Builder> availableCapacity)

      Information about the instances running on the Dedicated Host.

      This is a convenience method that creates an instance of the AvailableCapacity.Builder avoiding the need to create one manually via AvailableCapacity.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to availableCapacity(AvailableCapacity).

      Parameters:
      availableCapacity - a consumer that will call methods on AvailableCapacity.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientToken

      Host.Builder clientToken(String clientToken)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

      Parameters:
      clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostId

      Host.Builder hostId(String hostId)

      The ID of the Dedicated Host.

      Parameters:
      hostId - The ID of the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostProperties

      Host.Builder hostProperties(HostProperties hostProperties)

      The hardware specifications of the Dedicated Host.

      Parameters:
      hostProperties - The hardware specifications of the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostProperties

      default Host.Builder hostProperties(Consumer<HostProperties.Builder> hostProperties)

      The hardware specifications of the Dedicated Host.

      This is a convenience method that creates an instance of the HostProperties.Builder avoiding the need to create one manually via HostProperties.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to hostProperties(HostProperties).

      Parameters:
      hostProperties - a consumer that will call methods on HostProperties.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • hostReservationId

      Host.Builder hostReservationId(String hostReservationId)

      The reservation ID of the Dedicated Host. This returns a null response if the Dedicated Host doesn't have an associated reservation.

      Parameters:
      hostReservationId - The reservation ID of the Dedicated Host. This returns a null response if the Dedicated Host doesn't have an associated reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      Host.Builder instances(Collection<HostInstance> instances)

      The IDs and instance type that are currently running on the Dedicated Host.

      Parameters:
      instances - The IDs and instance type that are currently running on the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      Host.Builder instances(HostInstance... instances)

      The IDs and instance type that are currently running on the Dedicated Host.

      Parameters:
      instances - The IDs and instance type that are currently running on the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      Host.Builder instances(Consumer<HostInstance.Builder>... instances)

      The IDs and instance type that are currently running on the Dedicated Host.

      This is a convenience method that creates an instance of the HostInstance.Builder avoiding the need to create one manually via HostInstance.builder().

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

      Parameters:
      instances - a consumer that will call methods on HostInstance.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      Host.Builder state(String state)

      The Dedicated Host's state.

      Parameters:
      state - The Dedicated Host's state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The Dedicated Host's state.

      Parameters:
      state - The Dedicated Host's state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • allocationTime

      Host.Builder allocationTime(Instant allocationTime)

      The time that the Dedicated Host was allocated.

      Parameters:
      allocationTime - The time that the Dedicated Host was allocated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • releaseTime

      Host.Builder releaseTime(Instant releaseTime)

      The time that the Dedicated Host was released.

      Parameters:
      releaseTime - The time that the Dedicated Host was released.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the Dedicated Host.

      Parameters:
      tags - Any tags assigned to the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Host.Builder tags(Tag... tags)

      Any tags assigned to the Dedicated Host.

      Parameters:
      tags - Any tags assigned to the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the Dedicated Host.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

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

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • hostRecovery

      Host.Builder hostRecovery(String hostRecovery)

      Indicates whether host recovery is enabled or disabled for the Dedicated Host.

      Parameters:
      hostRecovery - Indicates whether host recovery is enabled or disabled for the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • hostRecovery

      Host.Builder hostRecovery(HostRecovery hostRecovery)

      Indicates whether host recovery is enabled or disabled for the Dedicated Host.

      Parameters:
      hostRecovery - Indicates whether host recovery is enabled or disabled for the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • allowsMultipleInstanceTypes

      Host.Builder allowsMultipleInstanceTypes(String allowsMultipleInstanceTypes)

      Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the value is on, the Dedicated Host supports multiple instance types in the instance family. If the value is off, the Dedicated Host supports a single instance type only.

      Parameters:
      allowsMultipleInstanceTypes - Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the value is on, the Dedicated Host supports multiple instance types in the instance family. If the value is off, the Dedicated Host supports a single instance type only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • allowsMultipleInstanceTypes

      Host.Builder allowsMultipleInstanceTypes(AllowsMultipleInstanceTypes allowsMultipleInstanceTypes)

      Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the value is on, the Dedicated Host supports multiple instance types in the instance family. If the value is off, the Dedicated Host supports a single instance type only.

      Parameters:
      allowsMultipleInstanceTypes - Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the value is on, the Dedicated Host supports multiple instance types in the instance family. If the value is off, the Dedicated Host supports a single instance type only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ownerId

      Host.Builder ownerId(String ownerId)

      The ID of the Amazon Web Services account that owns the Dedicated Host.

      Parameters:
      ownerId - The ID of the Amazon Web Services account that owns the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZoneId

      Host.Builder availabilityZoneId(String availabilityZoneId)

      The ID of the Availability Zone in which the Dedicated Host is allocated.

      Parameters:
      availabilityZoneId - The ID of the Availability Zone in which the Dedicated Host is allocated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memberOfServiceLinkedResourceGroup

      Host.Builder memberOfServiceLinkedResourceGroup(Boolean memberOfServiceLinkedResourceGroup)

      Indicates whether the Dedicated Host is in a host resource group. If memberOfServiceLinkedResourceGroup is true, the host is in a host resource group; otherwise, it is not.

      Parameters:
      memberOfServiceLinkedResourceGroup - Indicates whether the Dedicated Host is in a host resource group. If memberOfServiceLinkedResourceGroup is true, the host is in a host resource group; otherwise, it is not.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outpostArn

      Host.Builder outpostArn(String outpostArn)

      The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.

      Parameters:
      outpostArn - The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostMaintenance

      Host.Builder hostMaintenance(String hostMaintenance)

      Indicates whether host maintenance is enabled or disabled for the Dedicated Host.

      Parameters:
      hostMaintenance - Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • hostMaintenance

      Host.Builder hostMaintenance(HostMaintenance hostMaintenance)

      Indicates whether host maintenance is enabled or disabled for the Dedicated Host.

      Parameters:
      hostMaintenance - Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • assetId

      Host.Builder assetId(String assetId)

      The ID of the Outpost hardware asset on which the Dedicated Host is allocated.

      Parameters:
      assetId - The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.