public class DescribeHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeHostsRequest>
NOOP
Constructor and Description |
---|
DescribeHostsRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeHostsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Request<DescribeHostsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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()
The IDs of the Dedicated hosts. The IDs are used for targeted instance launches.
public void setHostIds(Collection<String> hostIds)
The IDs of the Dedicated hosts. The IDs are used for targeted instance launches.
hostIds
- The IDs of the Dedicated hosts. The IDs are used for targeted
instance launches.public DescribeHostsRequest withHostIds(String... hostIds)
The IDs of the Dedicated hosts. The IDs are used for targeted instance launches.
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.
hostIds
- The IDs of the Dedicated hosts. The IDs are used for targeted
instance launches.public DescribeHostsRequest withHostIds(Collection<String> hostIds)
The IDs of the Dedicated hosts. The IDs are used for targeted instance launches.
hostIds
- The IDs of the Dedicated hosts. The IDs are used for targeted
instance launches.public void setNextToken(String nextToken)
The token to retrieve the next page of results.
nextToken
- The token to retrieve the next page of results.public String getNextToken()
The token to retrieve the next page of results.
public DescribeHostsRequest withNextToken(String nextToken)
The token to retrieve the next page of results.
nextToken
- The token to retrieve the next page of results.public void setMaxResults(Integer 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.
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 Integer getMaxResults()
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.
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)
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.
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()
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.
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)
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.
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)
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.
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.
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)
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.
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 Request<DescribeHostsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeHostsRequest>
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.