Class Host
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the properties of the Dedicated host.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Whether auto-placement is on or off.The Availability Zone of the Dedicated host.The number of new instances that can be launched onto the Dedicated host.Unique, case-sensitive identifier you provide to ensure idempotency of the request.The ID of the Dedicated host.The hardware specifications of the Dedicated host.The reservation ID of the Dedicated host.The IDs and instance type that are currently running on the Dedicated host.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
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
The Dedicated host's state.toString()
Returns a string representation of this object; useful for testing and debugging.withAutoPlacement
(AutoPlacement autoPlacement) Whether auto-placement is on or off.withAutoPlacement
(String autoPlacement) Whether auto-placement is on or off.withAvailabilityZone
(String availabilityZone) The Availability Zone of the Dedicated host.withAvailableCapacity
(AvailableCapacity availableCapacity) The number of new instances that can be launched onto the Dedicated host.withClientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure idempotency of the request.withHostId
(String hostId) The ID of the Dedicated host.withHostProperties
(HostProperties hostProperties) The hardware specifications of the Dedicated host.withHostReservationId
(String hostReservationId) The reservation ID of the Dedicated host.withInstances
(HostInstance... instances) The IDs and instance type that are currently running on the Dedicated host.withInstances
(Collection<HostInstance> instances) The IDs and instance type that are currently running on the Dedicated host.withState
(AllocationState state) The Dedicated host's state.The Dedicated host's state.
-
Constructor Details
-
Host
public Host()
-
-
Method Details
-
setHostId
The ID of the Dedicated host.
- Parameters:
hostId
- The ID of the Dedicated host.
-
getHostId
The ID of the Dedicated host.
- Returns:
- The ID of the Dedicated host.
-
withHostId
The ID of the Dedicated host.
- Parameters:
hostId
- The ID of the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAutoPlacement
Whether auto-placement is on or off.
- Parameters:
autoPlacement
- Whether auto-placement is on or off.- See Also:
-
getAutoPlacement
Whether auto-placement is on or off.
- Returns:
- Whether auto-placement is on or off.
- See Also:
-
withAutoPlacement
Whether auto-placement is on or off.
- Parameters:
autoPlacement
- Whether auto-placement is on or off.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setAutoPlacement
Whether auto-placement is on or off.
- Parameters:
autoPlacement
- Whether auto-placement is on or off.- See Also:
-
withAutoPlacement
Whether auto-placement is on or off.
- Parameters:
autoPlacement
- Whether auto-placement is on or off.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setHostReservationId
The reservation ID of the Dedicated host. This returns a
null
response if the Dedicated host doesn't have an associated reservation.- Parameters:
hostReservationId
- The reservation ID of the Dedicated host. This returns anull
response if the Dedicated host doesn't have an associated reservation.
-
getHostReservationId
The reservation ID of the Dedicated host. This returns a
null
response if the Dedicated host doesn't have an associated reservation.- Returns:
- The reservation ID of the Dedicated host. This returns a
null
response if the Dedicated host doesn't have an associated reservation.
-
withHostReservationId
The reservation ID of the Dedicated host. This returns a
null
response if the Dedicated host doesn't have an associated reservation.- Parameters:
hostReservationId
- The reservation ID of the Dedicated host. This returns anull
response if the Dedicated host doesn't have an associated reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClientToken
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withClientToken
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHostProperties
The hardware specifications of the Dedicated host.
- Parameters:
hostProperties
- The hardware specifications of the Dedicated host.
-
getHostProperties
The hardware specifications of the Dedicated host.
- Returns:
- The hardware specifications of the Dedicated host.
-
withHostProperties
The hardware specifications of the Dedicated host.
- Parameters:
hostProperties
- The hardware specifications of the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
The Dedicated host's state.
- Parameters:
state
- The Dedicated host's state.- See Also:
-
getState
The Dedicated host's state.
- Returns:
- The Dedicated host's state.
- See Also:
-
withState
The Dedicated host's state.
- Parameters:
state
- The Dedicated host's state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The Dedicated host's state.
- Parameters:
state
- The Dedicated host's state.- See Also:
-
withState
The Dedicated host's state.
- Parameters:
state
- The Dedicated host's state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setAvailabilityZone
The Availability Zone of the Dedicated host.
- Parameters:
availabilityZone
- The Availability Zone of the Dedicated host.
-
getAvailabilityZone
The Availability Zone of the Dedicated host.
- Returns:
- The Availability Zone of the Dedicated host.
-
withAvailabilityZone
The Availability Zone of the Dedicated host.
- Parameters:
availabilityZone
- The Availability Zone of the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInstances
The IDs and instance type that are currently running on the Dedicated host.
- Returns:
- The IDs and instance type that are currently running on the Dedicated host.
-
setInstances
The IDs and instance type that are currently running on the Dedicated host.
- Parameters:
instances
- The IDs and instance type that are currently running on the Dedicated host.
-
withInstances
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)
orwithInstances(java.util.Collection)
if you want to override the existing values.- Parameters:
instances
- The IDs and instance type that are currently running on the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInstances
The IDs and instance type that are currently running on the Dedicated host.
- Parameters:
instances
- The IDs and instance type that are currently running on the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailableCapacity
The number of new instances that can be launched onto the Dedicated host.
- Parameters:
availableCapacity
- The number of new instances that can be launched onto the Dedicated host.
-
getAvailableCapacity
The number of new instances that can be launched onto the Dedicated host.
- Returns:
- The number of new instances that can be launched onto the Dedicated host.
-
withAvailableCapacity
The number of new instances that can be launched onto the Dedicated host.
- Parameters:
availableCapacity
- The number of new instances that can be launched onto the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-