@Generated(value="software.amazon.awssdk:codegen") public final class Host extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Host.Builder,Host>
Describes the properties of the Dedicated Host.
Modifier and Type | Class and Description |
---|---|
static interface |
Host.Builder |
Modifier and Type | Method and Description |
---|---|
Instant |
allocationTime()
The time that the Dedicated Host was allocated.
|
AutoPlacement |
autoPlacement()
Whether auto-placement is on or off.
|
String |
autoPlacementAsString()
Whether auto-placement is on or off.
|
String |
availabilityZone()
The Availability Zone of the Dedicated Host.
|
AvailableCapacity |
availableCapacity()
The number of new instances that can be launched onto the Dedicated Host.
|
static Host.Builder |
builder() |
String |
clientToken()
Unique, case-sensitive identifier that you provide to ensure idempotency of the request.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
hostId()
The ID of the Dedicated Host.
|
HostProperties |
hostProperties()
The hardware specifications of the Dedicated Host.
|
String |
hostReservationId()
The reservation ID of the Dedicated Host.
|
List<HostInstance> |
instances()
The IDs and instance type that are currently running on the Dedicated Host.
|
Instant |
releaseTime()
The time that the Dedicated Host was released.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Host.Builder> |
serializableBuilderClass() |
AllocationState |
state()
The Dedicated Host's state.
|
String |
stateAsString()
The Dedicated Host's state.
|
List<Tag> |
tags()
Any tags assigned to the Dedicated Host.
|
Host.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public AutoPlacement autoPlacement()
Whether auto-placement is on or off.
If the service returns an enum value that is not available in the current SDK version, autoPlacement
will return AutoPlacement.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
autoPlacementAsString()
.
AutoPlacement
public String autoPlacementAsString()
Whether auto-placement is on or off.
If the service returns an enum value that is not available in the current SDK version, autoPlacement
will return AutoPlacement.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
autoPlacementAsString()
.
AutoPlacement
public String availabilityZone()
The Availability Zone of the Dedicated Host.
public AvailableCapacity availableCapacity()
The number of new instances that can be launched onto the Dedicated Host.
public String clientToken()
Unique, case-sensitive identifier that you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
public String hostId()
The ID of the Dedicated Host.
public HostProperties hostProperties()
The hardware specifications of the Dedicated Host.
public String hostReservationId()
The reservation ID of the Dedicated Host. This returns a null
response if the Dedicated Host doesn't
have an associated reservation.
null
response if the Dedicated Host
doesn't have an associated reservation.public List<HostInstance> instances()
The IDs and instance type that are currently running on the Dedicated Host.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public AllocationState state()
The Dedicated Host's state.
If the service returns an enum value that is not available in the current SDK version, state
will return
AllocationState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
AllocationState
public String stateAsString()
The Dedicated Host's state.
If the service returns an enum value that is not available in the current SDK version, state
will return
AllocationState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
AllocationState
public Instant allocationTime()
The time that the Dedicated Host was allocated.
public Instant releaseTime()
The time that the Dedicated Host was released.
public List<Tag> tags()
Any tags assigned to the Dedicated Host.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Host.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Host.Builder,Host>
public static Host.Builder builder()
public static Class<? extends Host.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.