@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) |
Date |
getAllocationTime()
The time that the Dedicated Host was allocated.
|
String |
getAllowsMultipleInstanceTypes()
Indicates whether the Dedicated Host supports multiple instance types of the same instance family.
|
String |
getAssetId()
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
|
String |
getAutoPlacement()
Whether auto-placement is on or off.
|
String |
getAvailabilityZone()
The Availability Zone of the Dedicated Host.
|
String |
getAvailabilityZoneId()
The ID of the Availability Zone in which the Dedicated Host is allocated.
|
AvailableCapacity |
getAvailableCapacity()
Information about the instances running on the Dedicated Host.
|
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getHostId()
The ID of the Dedicated Host.
|
String |
getHostMaintenance()
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
|
HostProperties |
getHostProperties()
The hardware specifications of the Dedicated Host.
|
String |
getHostRecovery()
Indicates whether host recovery is enabled or disabled for 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.
|
Boolean |
getMemberOfServiceLinkedResourceGroup()
Indicates whether the Dedicated Host is in a host resource group.
|
String |
getOutpostArn()
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.
|
String |
getOwnerId()
The ID of the Amazon Web Services account that owns the Dedicated Host.
|
Date |
getReleaseTime()
The time that the Dedicated Host was released.
|
String |
getState()
The Dedicated Host's state.
|
List<Tag> |
getTags()
Any tags assigned to the Dedicated Host.
|
int |
hashCode() |
Boolean |
isMemberOfServiceLinkedResourceGroup()
Indicates whether the Dedicated Host is in a host resource group.
|
void |
setAllocationTime(Date allocationTime)
The time that the Dedicated Host was allocated.
|
void |
setAllowsMultipleInstanceTypes(AllowsMultipleInstanceTypes allowsMultipleInstanceTypes)
Indicates whether the Dedicated Host supports multiple instance types of the same instance family.
|
void |
setAllowsMultipleInstanceTypes(String allowsMultipleInstanceTypes)
Indicates whether the Dedicated Host supports multiple instance types of the same instance family.
|
void |
setAssetId(String assetId)
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
|
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 |
setAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which the Dedicated Host is allocated.
|
void |
setAvailableCapacity(AvailableCapacity availableCapacity)
Information about the instances running on the Dedicated Host.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setHostId(String hostId)
The ID of the Dedicated Host.
|
void |
setHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
|
void |
setHostMaintenance(String hostMaintenance)
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
|
void |
setHostProperties(HostProperties hostProperties)
The hardware specifications of the Dedicated Host.
|
void |
setHostRecovery(HostRecovery hostRecovery)
Indicates whether host recovery is enabled or disabled for the Dedicated Host.
|
void |
setHostRecovery(String hostRecovery)
Indicates whether host recovery is enabled or disabled for 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 |
setMemberOfServiceLinkedResourceGroup(Boolean memberOfServiceLinkedResourceGroup)
Indicates whether the Dedicated Host is in a host resource group.
|
void |
setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.
|
void |
setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the Dedicated Host.
|
void |
setReleaseTime(Date releaseTime)
The time that the Dedicated Host was released.
|
void |
setState(AllocationState state)
The Dedicated Host's state.
|
void |
setState(String state)
The Dedicated Host's state.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host.
|
String |
toString()
Returns a string representation of this object.
|
Host |
withAllocationTime(Date allocationTime)
The time that the Dedicated Host was allocated.
|
Host |
withAllowsMultipleInstanceTypes(AllowsMultipleInstanceTypes allowsMultipleInstanceTypes)
Indicates whether the Dedicated Host supports multiple instance types of the same instance family.
|
Host |
withAllowsMultipleInstanceTypes(String allowsMultipleInstanceTypes)
Indicates whether the Dedicated Host supports multiple instance types of the same instance family.
|
Host |
withAssetId(String assetId)
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
|
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 |
withAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which the Dedicated Host is allocated.
|
Host |
withAvailableCapacity(AvailableCapacity availableCapacity)
Information about the instances running on the Dedicated Host.
|
Host |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
Host |
withHostId(String hostId)
The ID of the Dedicated Host.
|
Host |
withHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
|
Host |
withHostMaintenance(String hostMaintenance)
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
|
Host |
withHostProperties(HostProperties hostProperties)
The hardware specifications of the Dedicated Host.
|
Host |
withHostRecovery(HostRecovery hostRecovery)
Indicates whether host recovery is enabled or disabled for the Dedicated Host.
|
Host |
withHostRecovery(String hostRecovery)
Indicates whether host recovery is enabled or disabled for 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 |
withMemberOfServiceLinkedResourceGroup(Boolean memberOfServiceLinkedResourceGroup)
Indicates whether the Dedicated Host is in a host resource group.
|
Host |
withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.
|
Host |
withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the Dedicated Host.
|
Host |
withReleaseTime(Date releaseTime)
The time that the Dedicated Host was released.
|
Host |
withState(AllocationState state)
The Dedicated Host's state.
|
Host |
withState(String state)
The Dedicated Host's state.
|
Host |
withTags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host.
|
Host |
withTags(Tag... tags)
Any tags assigned to the Dedicated Host.
|
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)
Information about the instances running on the Dedicated Host.
availableCapacity
- Information about the instances running on the Dedicated Host.public AvailableCapacity getAvailableCapacity()
Information about the instances running on the Dedicated Host.
public Host withAvailableCapacity(AvailableCapacity availableCapacity)
Information about the instances running on the Dedicated Host.
availableCapacity
- Information about the instances running on the Dedicated Host.public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
Idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
public Host withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
Idempotency.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 void setAllocationTime(Date allocationTime)
The time that the Dedicated Host was allocated.
allocationTime
- The time that the Dedicated Host was allocated.public Date getAllocationTime()
The time that the Dedicated Host was allocated.
public Host withAllocationTime(Date allocationTime)
The time that the Dedicated Host was allocated.
allocationTime
- The time that the Dedicated Host was allocated.public void setReleaseTime(Date releaseTime)
The time that the Dedicated Host was released.
releaseTime
- The time that the Dedicated Host was released.public Date getReleaseTime()
The time that the Dedicated Host was released.
public Host withReleaseTime(Date releaseTime)
The time that the Dedicated Host was released.
releaseTime
- The time that the Dedicated Host was released.public List<Tag> getTags()
Any tags assigned to the Dedicated Host.
public void setTags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host.
tags
- Any tags assigned to the Dedicated Host.public Host withTags(Tag... tags)
Any tags assigned to the Dedicated Host.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the Dedicated Host.public Host withTags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host.
tags
- Any tags assigned to the Dedicated Host.public void setHostRecovery(String hostRecovery)
Indicates whether host recovery is enabled or disabled for the Dedicated Host.
hostRecovery
- Indicates whether host recovery is enabled or disabled for the Dedicated Host.HostRecovery
public String getHostRecovery()
Indicates whether host recovery is enabled or disabled for the Dedicated Host.
HostRecovery
public Host withHostRecovery(String hostRecovery)
Indicates whether host recovery is enabled or disabled for the Dedicated Host.
hostRecovery
- Indicates whether host recovery is enabled or disabled for the Dedicated Host.HostRecovery
public void setHostRecovery(HostRecovery hostRecovery)
Indicates whether host recovery is enabled or disabled for the Dedicated Host.
hostRecovery
- Indicates whether host recovery is enabled or disabled for the Dedicated Host.HostRecovery
public Host withHostRecovery(HostRecovery hostRecovery)
Indicates whether host recovery is enabled or disabled for the Dedicated Host.
hostRecovery
- Indicates whether host recovery is enabled or disabled for the Dedicated Host.HostRecovery
public void setAllowsMultipleInstanceTypes(String allowsMultipleInstanceTypes)
Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the value
is on
, the Dedicated Host supports multiple instance types in the instance family. If the value is
off
, the Dedicated Host supports a single instance type only.
allowsMultipleInstanceTypes
- Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the
value is on
, the Dedicated Host supports multiple instance types in the instance family. If
the value is off
, the Dedicated Host supports a single instance type only.AllowsMultipleInstanceTypes
public String getAllowsMultipleInstanceTypes()
Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the value
is on
, the Dedicated Host supports multiple instance types in the instance family. If the value is
off
, the Dedicated Host supports a single instance type only.
on
, the Dedicated Host supports multiple instance types in the instance family. If
the value is off
, the Dedicated Host supports a single instance type only.AllowsMultipleInstanceTypes
public Host withAllowsMultipleInstanceTypes(String allowsMultipleInstanceTypes)
Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the value
is on
, the Dedicated Host supports multiple instance types in the instance family. If the value is
off
, the Dedicated Host supports a single instance type only.
allowsMultipleInstanceTypes
- Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the
value is on
, the Dedicated Host supports multiple instance types in the instance family. If
the value is off
, the Dedicated Host supports a single instance type only.AllowsMultipleInstanceTypes
public void setAllowsMultipleInstanceTypes(AllowsMultipleInstanceTypes allowsMultipleInstanceTypes)
Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the value
is on
, the Dedicated Host supports multiple instance types in the instance family. If the value is
off
, the Dedicated Host supports a single instance type only.
allowsMultipleInstanceTypes
- Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the
value is on
, the Dedicated Host supports multiple instance types in the instance family. If
the value is off
, the Dedicated Host supports a single instance type only.AllowsMultipleInstanceTypes
public Host withAllowsMultipleInstanceTypes(AllowsMultipleInstanceTypes allowsMultipleInstanceTypes)
Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the value
is on
, the Dedicated Host supports multiple instance types in the instance family. If the value is
off
, the Dedicated Host supports a single instance type only.
allowsMultipleInstanceTypes
- Indicates whether the Dedicated Host supports multiple instance types of the same instance family. If the
value is on
, the Dedicated Host supports multiple instance types in the instance family. If
the value is off
, the Dedicated Host supports a single instance type only.AllowsMultipleInstanceTypes
public void setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the Dedicated Host.
ownerId
- The ID of the Amazon Web Services account that owns the Dedicated Host.public String getOwnerId()
The ID of the Amazon Web Services account that owns the Dedicated Host.
public Host withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the Dedicated Host.
ownerId
- The ID of the Amazon Web Services account that owns the Dedicated Host.public void setAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which the Dedicated Host is allocated.
availabilityZoneId
- The ID of the Availability Zone in which the Dedicated Host is allocated.public String getAvailabilityZoneId()
The ID of the Availability Zone in which the Dedicated Host is allocated.
public Host withAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which the Dedicated Host is allocated.
availabilityZoneId
- The ID of the Availability Zone in which the Dedicated Host is allocated.public void setMemberOfServiceLinkedResourceGroup(Boolean memberOfServiceLinkedResourceGroup)
Indicates whether the Dedicated Host is in a host resource group. If memberOfServiceLinkedResourceGroup is
true
, the host is in a host resource group; otherwise, it is not.
memberOfServiceLinkedResourceGroup
- Indicates whether the Dedicated Host is in a host resource group. If
memberOfServiceLinkedResourceGroup is true
, the host is in a host resource group;
otherwise, it is not.public Boolean getMemberOfServiceLinkedResourceGroup()
Indicates whether the Dedicated Host is in a host resource group. If memberOfServiceLinkedResourceGroup is
true
, the host is in a host resource group; otherwise, it is not.
true
, the host is in a host resource group;
otherwise, it is not.public Host withMemberOfServiceLinkedResourceGroup(Boolean memberOfServiceLinkedResourceGroup)
Indicates whether the Dedicated Host is in a host resource group. If memberOfServiceLinkedResourceGroup is
true
, the host is in a host resource group; otherwise, it is not.
memberOfServiceLinkedResourceGroup
- Indicates whether the Dedicated Host is in a host resource group. If
memberOfServiceLinkedResourceGroup is true
, the host is in a host resource group;
otherwise, it is not.public Boolean isMemberOfServiceLinkedResourceGroup()
Indicates whether the Dedicated Host is in a host resource group. If memberOfServiceLinkedResourceGroup is
true
, the host is in a host resource group; otherwise, it is not.
true
, the host is in a host resource group;
otherwise, it is not.public void setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.
outpostArn
- The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is
allocated.public String getOutpostArn()
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.
public Host withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.
outpostArn
- The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is
allocated.public void setHostMaintenance(String hostMaintenance)
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
hostMaintenance
- Indicates whether host maintenance is enabled or disabled for the Dedicated Host.HostMaintenance
public String getHostMaintenance()
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
HostMaintenance
public Host withHostMaintenance(String hostMaintenance)
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
hostMaintenance
- Indicates whether host maintenance is enabled or disabled for the Dedicated Host.HostMaintenance
public void setHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
hostMaintenance
- Indicates whether host maintenance is enabled or disabled for the Dedicated Host.HostMaintenance
public Host withHostMaintenance(HostMaintenance hostMaintenance)
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
hostMaintenance
- Indicates whether host maintenance is enabled or disabled for the Dedicated Host.HostMaintenance
public void setAssetId(String assetId)
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
assetId
- The ID of the Outpost hardware asset on which the Dedicated Host is allocated.public String getAssetId()
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
public Host withAssetId(String assetId)
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
assetId
- The ID of the Outpost hardware asset on which the Dedicated Host is allocated.public String toString()
toString
in class Object
Object.toString()