public class Host
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the properties of the Dedicated host.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
autoPlacement
Whether auto-placement is on or off.
|
private java.lang.String |
availabilityZone
The Availability Zone of the Dedicated host.
|
private AvailableCapacity |
availableCapacity
The number of new instances that can be launched onto the Dedicated host.
|
private java.lang.String |
clientToken
Unique, case-sensitive identifier you provide to ensure idempotency of
the request.
|
private java.lang.String |
hostId
The ID of the Dedicated host.
|
private HostProperties |
hostProperties
The hardware specifications of the Dedicated host.
|
private java.lang.String |
hostReservationId
The reservation ID of the Dedicated host.
|
private SdkInternalList<HostInstance> |
instances
The IDs and instance type that are currently running on the Dedicated
host.
|
private java.lang.String |
state
The Dedicated host's state.
|
Constructor and Description |
---|
Host() |
Modifier and Type | Method and Description |
---|---|
Host |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoPlacement()
Whether auto-placement is on or off.
|
java.lang.String |
getAvailabilityZone()
The Availability Zone of the Dedicated host.
|
AvailableCapacity |
getAvailableCapacity()
The number of new instances that can be launched onto the Dedicated host.
|
java.lang.String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of
the request.
|
java.lang.String |
getHostId()
The ID of the Dedicated host.
|
HostProperties |
getHostProperties()
The hardware specifications of the Dedicated host.
|
java.lang.String |
getHostReservationId()
The reservation ID of the Dedicated host.
|
java.util.List<HostInstance> |
getInstances()
The IDs and instance type that are currently running on the Dedicated
host.
|
java.lang.String |
getState()
The Dedicated host's state.
|
int |
hashCode() |
void |
setAutoPlacement(AutoPlacement autoPlacement)
Whether auto-placement is on or off.
|
void |
setAutoPlacement(java.lang.String autoPlacement)
Whether auto-placement is on or off.
|
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the Dedicated host.
|
void |
setAvailableCapacity(AvailableCapacity availableCapacity)
The number of new instances that can be launched onto the Dedicated host.
|
void |
setClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of
the request.
|
void |
setHostId(java.lang.String hostId)
The ID of the Dedicated host.
|
void |
setHostProperties(HostProperties hostProperties)
The hardware specifications of the Dedicated host.
|
void |
setHostReservationId(java.lang.String hostReservationId)
The reservation ID of the Dedicated host.
|
void |
setInstances(java.util.Collection<HostInstance> instances)
The IDs and instance type that are currently running on the Dedicated
host.
|
void |
setState(AllocationState state)
The Dedicated host's state.
|
void |
setState(java.lang.String state)
The Dedicated host's state.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Host |
withAutoPlacement(AutoPlacement autoPlacement)
Whether auto-placement is on or off.
|
Host |
withAutoPlacement(java.lang.String autoPlacement)
Whether auto-placement is on or off.
|
Host |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the Dedicated host.
|
Host |
withAvailableCapacity(AvailableCapacity availableCapacity)
The number of new instances that can be launched onto the Dedicated host.
|
Host |
withClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of
the request.
|
Host |
withHostId(java.lang.String hostId)
The ID of the Dedicated host.
|
Host |
withHostProperties(HostProperties hostProperties)
The hardware specifications of the Dedicated host.
|
Host |
withHostReservationId(java.lang.String hostReservationId)
The reservation ID of the Dedicated host.
|
Host |
withInstances(java.util.Collection<HostInstance> instances)
The IDs and instance type that are currently running on the Dedicated
host.
|
Host |
withInstances(HostInstance... instances)
The IDs and instance type that are currently running on the Dedicated
host.
|
Host |
withState(AllocationState state)
The Dedicated host's state.
|
Host |
withState(java.lang.String state)
The Dedicated host's state.
|
private java.lang.String hostId
The ID of the Dedicated host.
private java.lang.String autoPlacement
Whether auto-placement is on or off.
private java.lang.String hostReservationId
The reservation ID of the Dedicated host. This returns a
null
response if the Dedicated host doesn't have an
associated reservation.
private java.lang.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.
private HostProperties hostProperties
The hardware specifications of the Dedicated host.
private java.lang.String state
The Dedicated host's state.
private java.lang.String availabilityZone
The Availability Zone of the Dedicated host.
private SdkInternalList<HostInstance> instances
The IDs and instance type that are currently running on the Dedicated host.
private AvailableCapacity availableCapacity
The number of new instances that can be launched onto the Dedicated host.
public void setHostId(java.lang.String hostId)
The ID of the Dedicated host.
hostId
- The ID of the Dedicated host.public java.lang.String getHostId()
The ID of the Dedicated host.
public Host withHostId(java.lang.String hostId)
The ID of the Dedicated host.
hostId
- The ID of the Dedicated host.public void setAutoPlacement(java.lang.String autoPlacement)
Whether auto-placement is on or off.
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
public java.lang.String getAutoPlacement()
Whether auto-placement is on or off.
AutoPlacement
public Host withAutoPlacement(java.lang.String autoPlacement)
Whether auto-placement is on or off.
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
public void setAutoPlacement(AutoPlacement autoPlacement)
Whether auto-placement is on or off.
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
public Host withAutoPlacement(AutoPlacement autoPlacement)
Whether auto-placement is on or off.
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
public void setHostReservationId(java.lang.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.public java.lang.String getHostReservationId()
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 Host withHostReservationId(java.lang.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.public void setClientToken(java.lang.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.public java.lang.String getClientToken()
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.
public Host withClientToken(java.lang.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.public void setHostProperties(HostProperties hostProperties)
The hardware specifications of the Dedicated host.
hostProperties
- The hardware specifications of the Dedicated host.public HostProperties getHostProperties()
The hardware specifications of the Dedicated host.
public Host withHostProperties(HostProperties hostProperties)
The hardware specifications of the Dedicated host.
hostProperties
- The hardware specifications of the Dedicated host.public void setState(java.lang.String state)
The Dedicated host's state.
state
- The Dedicated host's state.AllocationState
public java.lang.String getState()
The Dedicated host's state.
AllocationState
public Host withState(java.lang.String state)
The Dedicated host's state.
state
- The Dedicated host's state.AllocationState
public void setState(AllocationState state)
The Dedicated host's state.
state
- The Dedicated host's state.AllocationState
public Host withState(AllocationState state)
The Dedicated host's state.
state
- The Dedicated host's state.AllocationState
public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the Dedicated host.
availabilityZone
- The Availability Zone of the Dedicated host.public java.lang.String getAvailabilityZone()
The Availability Zone of the Dedicated host.
public Host withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the Dedicated host.
availabilityZone
- The Availability Zone of the Dedicated host.public java.util.List<HostInstance> getInstances()
The IDs and instance type that are currently running on the Dedicated host.
public void setInstances(java.util.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.public Host withInstances(HostInstance... instances)
The IDs and instance type that are currently running on the Dedicated host.
NOTE: This method appends the values to the existing list (if
any). Use setInstances(java.util.Collection)
or
withInstances(java.util.Collection)
if you want to override the
existing values.
instances
- The IDs and instance type that are currently running on the
Dedicated host.public Host withInstances(java.util.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.public void setAvailableCapacity(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.public AvailableCapacity getAvailableCapacity()
The number of new instances that can be launched onto the Dedicated host.
public Host withAvailableCapacity(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.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Host clone()
clone
in class java.lang.Object