Interface Host.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Host.Builder,
,Host> SdkBuilder<Host.Builder,
,Host> SdkPojo
- Enclosing class:
Host
-
Method Summary
Modifier and TypeMethodDescriptionallocationTime
(Instant allocationTime) The time that the Dedicated Host was allocated.allowsMultipleInstanceTypes
(String allowsMultipleInstanceTypes) Indicates whether the Dedicated Host supports multiple instance types of the same instance family.allowsMultipleInstanceTypes
(AllowsMultipleInstanceTypes allowsMultipleInstanceTypes) Indicates whether the Dedicated Host supports multiple instance types of the same instance family.The ID of the Outpost hardware asset on which the Dedicated Host is allocated.autoPlacement
(String autoPlacement) Whether auto-placement is on or off.autoPlacement
(AutoPlacement autoPlacement) Whether auto-placement is on or off.availabilityZone
(String availabilityZone) The Availability Zone of the Dedicated Host.availabilityZoneId
(String availabilityZoneId) The ID of the Availability Zone in which the Dedicated Host is allocated.default Host.Builder
availableCapacity
(Consumer<AvailableCapacity.Builder> availableCapacity) Information about the instances running on the Dedicated Host.availableCapacity
(AvailableCapacity availableCapacity) Information about the instances running on the Dedicated Host.clientToken
(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.The ID of the Dedicated Host.hostMaintenance
(String hostMaintenance) Indicates whether host maintenance is enabled or disabled for the Dedicated Host.hostMaintenance
(HostMaintenance hostMaintenance) Indicates whether host maintenance is enabled or disabled for the Dedicated Host.default Host.Builder
hostProperties
(Consumer<HostProperties.Builder> hostProperties) The hardware specifications of the Dedicated Host.hostProperties
(HostProperties hostProperties) The hardware specifications of the Dedicated Host.hostRecovery
(String hostRecovery) Indicates whether host recovery is enabled or disabled for the Dedicated Host.hostRecovery
(HostRecovery hostRecovery) Indicates whether host recovery is enabled or disabled for the Dedicated Host.hostReservationId
(String hostReservationId) The reservation ID of the Dedicated Host.instances
(Collection<HostInstance> instances) The IDs and instance type that are currently running on the Dedicated Host.instances
(Consumer<HostInstance.Builder>... instances) The IDs and instance type that are currently running on the Dedicated Host.instances
(HostInstance... instances) The IDs and instance type that are currently running on the Dedicated Host.memberOfServiceLinkedResourceGroup
(Boolean memberOfServiceLinkedResourceGroup) Indicates whether the Dedicated Host is in a host resource group.outpostArn
(String outpostArn) The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.The ID of the Amazon Web Services account that owns the Dedicated Host.releaseTime
(Instant releaseTime) The time that the Dedicated Host was released.The Dedicated Host's state.state
(AllocationState state) The Dedicated Host's state.tags
(Collection<Tag> tags) Any tags assigned to the Dedicated Host.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the Dedicated Host.Any tags assigned to the Dedicated Host.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, sdkFields
-
Method Details
-
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
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
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
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
Information about the instances running on the Dedicated Host.
This is a convenience method that creates an instance of theAvailableCapacity.Builder
avoiding the need to create one manually viaAvailableCapacity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toavailableCapacity(AvailableCapacity)
.- Parameters:
availableCapacity
- a consumer that will call methods onAvailableCapacity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
The hardware specifications of the Dedicated Host.
This is a convenience method that creates an instance of theHostProperties.Builder
avoiding the need to create one manually viaHostProperties.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohostProperties(HostProperties)
.- Parameters:
hostProperties
- a consumer that will call methods onHostProperties.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 anull
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
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
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
The IDs and instance type that are currently running on the Dedicated Host.
This is a convenience method that creates an instance of theHostInstance.Builder
avoiding the need to create one manually viaHostInstance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstances(List<HostInstance>)
.- Parameters:
instances
- a consumer that will call methods onHostInstance.Builder
- 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:
-
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
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
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
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 theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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 isoff
, 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 ison
, the Dedicated Host supports multiple instance types in the instance family. If the value isoff
, 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
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 isoff
, 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 ison
, the Dedicated Host supports multiple instance types in the instance family. If the value isoff
, 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
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
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
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 istrue
, 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
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
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
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
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.
-