public class DescribeHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DescribeHosts operation
.
Describes one or more of your Dedicated hosts.
The results describe only the Dedicated hosts in the region you're
currently using. All listed instances consume capacity on your
Dedicated host. Dedicated hosts that have recently been released will
be listed with the state released
.
NOOP
Constructor and Description |
---|
DescribeHostsRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeHostsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<Filter> |
getFilter()
One or more filters.
|
List<String> |
getHostIds()
The IDs of the Dedicated hosts.
|
Integer |
getMaxResults()
The maximum number of results to return for the request in a single
page.
|
String |
getNextToken()
The token to retrieve the next page of results.
|
int |
hashCode() |
void |
setFilter(Collection<Filter> filter)
One or more filters.
|
void |
setHostIds(Collection<String> hostIds)
The IDs of the Dedicated hosts.
|
void |
setMaxResults(Integer maxResults)
The maximum number of results to return for the request in a single
page.
|
void |
setNextToken(String nextToken)
The token to retrieve the next page of results.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeHostsRequest |
withFilter(Collection<Filter> filter)
One or more filters.
|
DescribeHostsRequest |
withFilter(Filter... filter)
One or more filters.
|
DescribeHostsRequest |
withHostIds(Collection<String> hostIds)
The IDs of the Dedicated hosts.
|
DescribeHostsRequest |
withHostIds(String... hostIds)
The IDs of the Dedicated hosts.
|
DescribeHostsRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return for the request in a single
page.
|
DescribeHostsRequest |
withNextToken(String nextToken)
The token to retrieve the next page of results.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public List<String> getHostIds()
public void setHostIds(Collection<String> hostIds)
hostIds
- The IDs of the Dedicated hosts. The IDs are used for targeted instance
launches.public DescribeHostsRequest withHostIds(String... hostIds)
NOTE: This method appends the values to the existing list (if
any). Use setHostIds(java.util.Collection)
or withHostIds(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.
hostIds
- The IDs of the Dedicated hosts. The IDs are used for targeted instance
launches.public DescribeHostsRequest withHostIds(Collection<String> hostIds)
Returns a reference to this object so that method calls can be chained together.
hostIds
- The IDs of the Dedicated hosts. The IDs are used for targeted instance
launches.public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- The token to retrieve the next page of results.public DescribeHostsRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- The token to retrieve the next page of results.public Integer getMaxResults()
nextToken
value. This value can be
between 5 and 500; if maxResults
is given a larger value
than 500, you will receive an error. You cannot specify this parameter
and the host IDs parameter in the same request.nextToken
value. This value can be
between 5 and 500; if maxResults
is given a larger value
than 500, you will receive an error. You cannot specify this parameter
and the host IDs parameter in the same request.public void setMaxResults(Integer maxResults)
nextToken
value. This value can be
between 5 and 500; if maxResults
is given a larger value
than 500, you will receive an error. You cannot specify this parameter
and the host IDs parameter in the same request.maxResults
- The maximum number of results to return for the request in a single
page. The remaining results can be seen by sending another request
with the returned nextToken
value. This value can be
between 5 and 500; if maxResults
is given a larger value
than 500, you will receive an error. You cannot specify this parameter
and the host IDs parameter in the same request.public DescribeHostsRequest withMaxResults(Integer maxResults)
nextToken
value. This value can be
between 5 and 500; if maxResults
is given a larger value
than 500, you will receive an error. You cannot specify this parameter
and the host IDs parameter in the same request.
Returns a reference to this object so that method calls can be chained together.
maxResults
- The maximum number of results to return for the request in a single
page. The remaining results can be seen by sending another request
with the returned nextToken
value. This value can be
between 5 and 500; if maxResults
is given a larger value
than 500, you will receive an error. You cannot specify this parameter
and the host IDs parameter in the same request.public List<Filter> getFilter()
instance-type
- The
instance type size that the Dedicated host is configured to
support.
auto-placement
- Whether
auto-placement is enabled or disabled (on
|
off
).
host-reservation-id
- The
ID of the reservation associated with this host.
client-token
- The idempotency token you provided
when you launched the instance
state
- The
allocation state of the Dedicated host (available
|
under-assessment
| permanent-failure
|
released
| released-permanent-failure
).
availability-zone
- The Availability Zone of the
host.
instance-type
- The
instance type size that the Dedicated host is configured to
support.
auto-placement
- Whether
auto-placement is enabled or disabled (on
|
off
).
host-reservation-id
- The
ID of the reservation associated with this host.
client-token
- The idempotency token you provided
when you launched the instance
state
- The
allocation state of the Dedicated host (available
|
under-assessment
| permanent-failure
|
released
| released-permanent-failure
).
availability-zone
- The Availability Zone of the
host.
public void setFilter(Collection<Filter> filter)
instance-type
- The
instance type size that the Dedicated host is configured to
support.
auto-placement
- Whether
auto-placement is enabled or disabled (on
|
off
).
host-reservation-id
- The
ID of the reservation associated with this host.
client-token
- The idempotency token you provided
when you launched the instance
state
- The
allocation state of the Dedicated host (available
|
under-assessment
| permanent-failure
|
released
| released-permanent-failure
).
availability-zone
- The Availability Zone of the
host.
filter
- One or more filters. instance-type
- The
instance type size that the Dedicated host is configured to
support.
auto-placement
- Whether
auto-placement is enabled or disabled (on
|
off
).
host-reservation-id
- The
ID of the reservation associated with this host.
client-token
- The idempotency token you provided
when you launched the instance
state
- The
allocation state of the Dedicated host (available
|
under-assessment
| permanent-failure
|
released
| released-permanent-failure
).
availability-zone
- The Availability Zone of the
host.
public DescribeHostsRequest withFilter(Filter... filter)
instance-type
- The
instance type size that the Dedicated host is configured to
support.
auto-placement
- Whether
auto-placement is enabled or disabled (on
|
off
).
host-reservation-id
- The
ID of the reservation associated with this host.
client-token
- The idempotency token you provided
when you launched the instance
state
- The
allocation state of the Dedicated host (available
|
under-assessment
| permanent-failure
|
released
| released-permanent-failure
).
availability-zone
- The Availability Zone of the
host.
NOTE: This method appends the values to the existing list (if
any). Use setFilter(java.util.Collection)
or withFilter(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.
filter
- One or more filters. instance-type
- The
instance type size that the Dedicated host is configured to
support.
auto-placement
- Whether
auto-placement is enabled or disabled (on
|
off
).
host-reservation-id
- The
ID of the reservation associated with this host.
client-token
- The idempotency token you provided
when you launched the instance
state
- The
allocation state of the Dedicated host (available
|
under-assessment
| permanent-failure
|
released
| released-permanent-failure
).
availability-zone
- The Availability Zone of the
host.
public DescribeHostsRequest withFilter(Collection<Filter> filter)
instance-type
- The
instance type size that the Dedicated host is configured to
support.
auto-placement
- Whether
auto-placement is enabled or disabled (on
|
off
).
host-reservation-id
- The
ID of the reservation associated with this host.
client-token
- The idempotency token you provided
when you launched the instance
state
- The
allocation state of the Dedicated host (available
|
under-assessment
| permanent-failure
|
released
| released-permanent-failure
).
availability-zone
- The Availability Zone of the
host.
Returns a reference to this object so that method calls can be chained together.
filter
- One or more filters. instance-type
- The
instance type size that the Dedicated host is configured to
support.
auto-placement
- Whether
auto-placement is enabled or disabled (on
|
off
).
host-reservation-id
- The
ID of the reservation associated with this host.
client-token
- The idempotency token you provided
when you launched the instance
state
- The
allocation state of the Dedicated host (available
|
under-assessment
| permanent-failure
|
released
| released-permanent-failure
).
availability-zone
- The Availability Zone of the
host.
public String toString()
toString
in class Object
Object.toString()
public DescribeHostsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.