public static interface Host.Builder extends CopyableBuilder<Host.Builder,Host>
Modifier and Type | Method and Description |
---|---|
Host.Builder |
autoPlacement(AutoPlacement autoPlacement)
Whether auto-placement is on or off.
|
Host.Builder |
autoPlacement(String autoPlacement)
Whether auto-placement is on or off.
|
Host.Builder |
availabilityZone(String availabilityZone)
The Availability Zone of the Dedicated Host.
|
Host.Builder |
availableCapacity(AvailableCapacity availableCapacity)
The number of new instances that can be launched onto the Dedicated Host.
|
default Host.Builder |
availableCapacity(Consumer<AvailableCapacity.Builder> availableCapacity)
The number of new instances that can be launched onto the Dedicated Host.
|
Host.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
Host.Builder |
hostId(String hostId)
The ID of the Dedicated Host.
|
default Host.Builder |
hostProperties(Consumer<HostProperties.Builder> hostProperties)
The hardware specifications of the Dedicated Host.
|
Host.Builder |
hostProperties(HostProperties hostProperties)
The hardware specifications of the Dedicated Host.
|
Host.Builder |
hostReservationId(String hostReservationId)
The reservation ID of the Dedicated Host.
|
Host.Builder |
instances(Collection<HostInstance> instances)
The IDs and instance type that are currently running on the Dedicated Host.
|
Host.Builder |
instances(Consumer<HostInstance.Builder>... instances)
The IDs and instance type that are currently running on the Dedicated Host.
|
Host.Builder |
instances(HostInstance... instances)
The IDs and instance type that are currently running on the Dedicated Host.
|
Host.Builder |
state(AllocationState state)
The Dedicated Host's state.
|
Host.Builder |
state(String state)
The Dedicated Host's state.
|
copy
applyMutation, build
Host.Builder autoPlacement(String autoPlacement)
Whether auto-placement is on or off.
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
,
AutoPlacement
Host.Builder autoPlacement(AutoPlacement autoPlacement)
Whether auto-placement is on or off.
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
,
AutoPlacement
Host.Builder availabilityZone(String availabilityZone)
The Availability Zone of the Dedicated Host.
availabilityZone
- The Availability Zone of the Dedicated Host.Host.Builder availableCapacity(AvailableCapacity availableCapacity)
The number of new instances that can be launched onto the Dedicated Host.
availableCapacity
- The number of new instances that can be launched onto the Dedicated Host.default Host.Builder availableCapacity(Consumer<AvailableCapacity.Builder> availableCapacity)
The number of new instances that can be launched onto the Dedicated Host.
This is a convenience that creates an instance of theAvailableCapacity.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)
.availableCapacity
- a consumer that will call methods on AvailableCapacity.Builder
availableCapacity(AvailableCapacity)
Host.Builder clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more
information, see How to Ensure
Idempotency in the Amazon Elastic Compute Cloud User Guide.Host.Builder hostId(String hostId)
The ID of the Dedicated Host.
hostId
- The ID of the Dedicated Host.Host.Builder hostProperties(HostProperties hostProperties)
The hardware specifications of the Dedicated Host.
hostProperties
- The hardware specifications of the Dedicated Host.default Host.Builder hostProperties(Consumer<HostProperties.Builder> hostProperties)
The hardware specifications of the Dedicated Host.
This is a convenience that creates an instance of theHostProperties.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)
.hostProperties
- a consumer that will call methods on HostProperties.Builder
hostProperties(HostProperties)
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.
hostReservationId
- The reservation ID of the Dedicated Host. This returns a null
response if the Dedicated
Host doesn't have an associated reservation.Host.Builder instances(Collection<HostInstance> instances)
The IDs and instance type that are currently running on the Dedicated Host.
instances
- The IDs and instance type that are currently running on the Dedicated Host.Host.Builder instances(HostInstance... instances)
The IDs and instance type that are currently running on the Dedicated Host.
instances
- The IDs and instance type that are currently running on the Dedicated Host.Host.Builder instances(Consumer<HostInstance.Builder>... instances)
The IDs and instance type that are currently running on the Dedicated Host.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #instances(List)
.instances
- a consumer that will call methods on List.Builder
#instances(List)
Host.Builder state(String state)
The Dedicated Host's state.
state
- The Dedicated Host's state.AllocationState
,
AllocationState
Host.Builder state(AllocationState state)
The Dedicated Host's state.
state
- The Dedicated Host's state.AllocationState
,
AllocationState
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.