public class Host extends Object implements Serializable, Cloneable
Describes the properties of the Dedicated host.
Constructor and Description |
---|
Host() |
Modifier and Type | Method and Description |
---|---|
Host |
clone() |
boolean |
equals(Object obj) |
String |
getAutoPlacement()
Whether auto-placement is on or off.
|
String |
getAvailabilityZone()
The Availability Zone of the Dedicated host.
|
AvailableCapacity |
getAvailableCapacity()
The number of new instances that can be launched onto the Dedicated
host.
|
String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of
the request.
|
String |
getHostId()
The ID of the Dedicated host.
|
HostProperties |
getHostProperties()
The hardware specifications of the Dedicated host.
|
String |
getHostReservationId()
The reservation ID of the Dedicated host.
|
List<HostInstance> |
getInstances()
The IDs and instance type that are currently running on the Dedicated
host.
|
String |
getState()
The Dedicated host's state.
|
int |
hashCode() |
void |
setAutoPlacement(AutoPlacement autoPlacement)
Whether auto-placement is on or off.
|
void |
setAutoPlacement(String autoPlacement)
Whether auto-placement is on or off.
|
void |
setAvailabilityZone(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(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of
the request.
|
void |
setHostId(String hostId)
The ID of the Dedicated host.
|
void |
setHostProperties(HostProperties hostProperties)
The hardware specifications of the Dedicated host.
|
void |
setHostReservationId(String hostReservationId)
The reservation ID of the Dedicated host.
|
void |
setInstances(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(String state)
The Dedicated host's state.
|
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(String autoPlacement)
Whether auto-placement is on or off.
|
Host |
withAvailabilityZone(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(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of
the request.
|
Host |
withHostId(String hostId)
The ID of the Dedicated host.
|
Host |
withHostProperties(HostProperties hostProperties)
The hardware specifications of the Dedicated host.
|
Host |
withHostReservationId(String hostReservationId)
The reservation ID of the Dedicated host.
|
Host |
withInstances(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(String state)
The Dedicated host's state.
|
public String getHostId()
public void setHostId(String hostId)
hostId
- The ID of the Dedicated host.public Host withHostId(String hostId)
Returns a reference to this object so that method calls can be chained together.
hostId
- The ID of the Dedicated host.public String getAutoPlacement()
Constraints:
Allowed Values: on, off
AutoPlacement
public void setAutoPlacement(String autoPlacement)
Constraints:
Allowed Values: on, off
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
public Host withAutoPlacement(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 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(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(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 String getClientToken()
public void setClientToken(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(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 String getState()
Constraints:
Allowed Values: available, under-assessment, permanent-failure, released, released-permanent-failure
AllocationState
public void setState(String state)
Constraints:
Allowed Values: available, under-assessment, permanent-failure, released, released-permanent-failure
state
- The Dedicated host's state.AllocationState
public Host withState(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 String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone of the Dedicated host.public Host withAvailabilityZone(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 List<HostInstance> getInstances()
public void setInstances(Collection<HostInstance> instances)
instances
- The IDs and instance type that are currently running on the Dedicated
host.public Host withInstances(HostInstance... instances)
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.
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(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.