public class Host
extends java.lang.Object
implements java.io.Serializable
Describes the properties of the Dedicated host.
Constructor and Description |
---|
Host() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getHostId()
public void setHostId(java.lang.String hostId)
hostId
- The ID of the Dedicated host.public Host withHostId(java.lang.String hostId)
Returns a reference to this object so that method calls can be chained together.
hostId
- The ID of the Dedicated host.public java.lang.String getAutoPlacement()
Constraints:
Allowed Values: on, off
AutoPlacement
public void setAutoPlacement(java.lang.String autoPlacement)
Constraints:
Allowed Values: on, off
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
public Host withAutoPlacement(java.lang.String autoPlacement)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: on, off
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
public void setAutoPlacement(AutoPlacement autoPlacement)
Constraints:
Allowed Values: on, off
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
public Host withAutoPlacement(AutoPlacement autoPlacement)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: on, off
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
public java.lang.String getHostReservationId()
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 void setHostReservationId(java.lang.String hostReservationId)
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 Host withHostReservationId(java.lang.String hostReservationId)
null
response if the Dedicated host doesn't have an
associated reservation.
Returns a reference to this object so that method calls can be chained together.
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 getClientToken()
public void setClientToken(java.lang.String clientToken)
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 Host withClientToken(java.lang.String clientToken)
Returns a reference to this object so that method calls can be chained together.
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 HostProperties getHostProperties()
public void setHostProperties(HostProperties hostProperties)
hostProperties
- The hardware specifications of the Dedicated host.public Host withHostProperties(HostProperties hostProperties)
Returns a reference to this object so that method calls can be chained together.
hostProperties
- The hardware specifications of the Dedicated host.public java.lang.String getState()
Constraints:
Allowed Values: available, under-assessment, permanent-failure, released, released-permanent-failure
AllocationState
public void setState(java.lang.String state)
Constraints:
Allowed Values: available, under-assessment, permanent-failure, released, released-permanent-failure
state
- The Dedicated host's state.AllocationState
public Host withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: available, under-assessment, permanent-failure, released, released-permanent-failure
state
- The Dedicated host's state.AllocationState
public void setState(AllocationState state)
Constraints:
Allowed Values: available, under-assessment, permanent-failure, released, released-permanent-failure
state
- The Dedicated host's state.AllocationState
public Host withState(AllocationState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: available, under-assessment, permanent-failure, released, released-permanent-failure
state
- The Dedicated host's state.AllocationState
public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone of the Dedicated host.public Host withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone of the Dedicated host.public java.util.List<HostInstance> getInstances()
public void setInstances(java.util.Collection<HostInstance> instances)
instances
- The IDs and instance type that are currently running on the Dedicated
host.public Host withInstances(HostInstance... instances)
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.public Host withInstances(java.util.Collection<HostInstance> instances)
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.public AvailableCapacity getAvailableCapacity()
public void setAvailableCapacity(AvailableCapacity availableCapacity)
availableCapacity
- The number of new instances that can be launched onto the Dedicated
host.public Host withAvailableCapacity(AvailableCapacity availableCapacity)
Returns a reference to this object so that method calls can be chained together.
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.