@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.
|
AllowsMultipleInstanceTypes |
allowsMultipleInstanceTypes()
Indicates whether the Dedicated Host supports multiple instance types of the same instance family.
|
String |
allowsMultipleInstanceTypesAsString()
Indicates whether the Dedicated Host supports multiple instance types of the same instance family.
|
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.
|
String |
availabilityZoneId()
The ID of the Availability Zone in which the Dedicated Host is allocated.
|
AvailableCapacity |
availableCapacity()
Information about the instances running on the Dedicated Host.
|
static Host.Builder |
builder() |
String |
clientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInstances()
For responses, this returns true if the service returned a value for the Instances property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
hostId()
The ID of the Dedicated Host.
|
HostProperties |
hostProperties()
The hardware specifications of the Dedicated Host.
|
HostRecovery |
hostRecovery()
Indicates whether host recovery is enabled or disabled for the Dedicated Host.
|
String |
hostRecoveryAsString()
Indicates whether host recovery is enabled or disabled for 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.
|
Boolean |
memberOfServiceLinkedResourceGroup()
Indicates whether the Dedicated Host is in a host resource group.
|
String |
outpostArn()
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.
|
String |
ownerId()
The ID of the Amazon Web Services account that owns 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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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().
AutoPlacementpublic final 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().
AutoPlacementpublic final String availabilityZone()
The Availability Zone of the Dedicated Host.
public final AvailableCapacity availableCapacity()
Information about the instances running on the Dedicated Host.
public final String clientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
public final String hostId()
The ID of the Dedicated Host.
public final HostProperties hostProperties()
The hardware specifications of the Dedicated Host.
public final 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 final boolean hasInstances()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInstances() method.
public final 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().
AllocationStatepublic final 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().
AllocationStatepublic final Instant allocationTime()
The time that the Dedicated Host was allocated.
public final Instant releaseTime()
The time that the Dedicated Host was released.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Tag> tags()
Any tags assigned to the Dedicated Host.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final HostRecovery hostRecovery()
Indicates whether host recovery is enabled or disabled for the Dedicated Host.
If the service returns an enum value that is not available in the current SDK version, hostRecovery will
return HostRecovery.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
hostRecoveryAsString().
HostRecoverypublic final String hostRecoveryAsString()
Indicates whether host recovery is enabled or disabled for the Dedicated Host.
If the service returns an enum value that is not available in the current SDK version, hostRecovery will
return HostRecovery.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
hostRecoveryAsString().
HostRecoverypublic final 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.
If the service returns an enum value that is not available in the current SDK version,
allowsMultipleInstanceTypes will return AllowsMultipleInstanceTypes.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from allowsMultipleInstanceTypesAsString().
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.AllowsMultipleInstanceTypespublic final String allowsMultipleInstanceTypesAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
allowsMultipleInstanceTypes will return AllowsMultipleInstanceTypes.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from allowsMultipleInstanceTypesAsString().
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.AllowsMultipleInstanceTypespublic final String ownerId()
The ID of the Amazon Web Services account that owns the Dedicated Host.
public final String availabilityZoneId()
The ID of the Availability Zone in which the Dedicated Host is allocated.
public final 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.
true, the host is in a host resource group;
otherwise, it is not.public final String outpostArn()
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.
public Host.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Host.Builder,Host>public static Host.Builder builder()
public static Class<? extends Host.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.