@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 void setAutoPlacement(String autoPlacement)
Whether auto-placement is on or off.
autoPlacement
- Whether auto-placement is on or off.AutoPlacement
public String getAutoPlacement()
Whether auto-placement is on or off.
AutoPlacement
public Host withAutoPlacement(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 setAvailabilityZone(String availabilityZone)
The Availability Zone of the Dedicated Host.
availabilityZone
- The Availability Zone of the Dedicated Host.public String getAvailabilityZone()
The Availability Zone of the Dedicated Host.
public Host withAvailabilityZone(String availabilityZone)
The Availability Zone of the Dedicated Host.
availabilityZone
- The Availability Zone of 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 void setClientToken(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 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(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 setHostId(String hostId)
The ID of the Dedicated Host.
hostId
- The ID of the Dedicated Host.public String getHostId()
The ID of the Dedicated Host.
public Host withHostId(String hostId)
The ID of the Dedicated Host.
hostId
- The ID of the Dedicated Host.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 setHostReservationId(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 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(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 List<HostInstance> getInstances()
The IDs and instance type that are currently running on the Dedicated Host.
public void setInstances(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(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 setState(String state)
The Dedicated Host's state.
state
- The Dedicated Host's state.AllocationState
public String getState()
The Dedicated Host's state.
AllocationState
public Host withState(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.