@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeHostsRequest>
Contains the parameters for DescribeHosts.
NOOP
Constructor and Description |
---|
DescribeHostsRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeHostsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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 assigned to 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 assigned to 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 assigned to 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 assigned to 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 assigned to 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 assigned to 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 assigned to 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 assigned to 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 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 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 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 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.