@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 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()
The 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 use to retrieve the next page of results.
|
int |
hashCode() |
void |
setFilter(Collection<Filter> filter)
The 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 use to retrieve the next page of results.
|
String |
toString()
Returns a string representation of this object.
|
DescribeHostsRequest |
withFilter(Collection<Filter> filter)
The filters.
|
DescribeHostsRequest |
withFilter(Filter... filter)
The 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 use 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()
The filters.
auto-placement
- Whether auto-placement is enabled or disabled (on
| off
).
availability-zone
- The Availability Zone of the host.
client-token
- The idempotency token that you provided when you allocated the host.
host-reservation-id
- The ID of the reservation assigned to this host.
instance-type
- The instance type size that the Dedicated Host is configured to support.
state
- The allocation state of the Dedicated Host (available
|
under-assessment
| permanent-failure
| released
|
released-permanent-failure
).
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned
a tag with a specific key, regardless of the tag value.
auto-placement
- Whether auto-placement is enabled or disabled (on
|
off
).
availability-zone
- The Availability Zone of the host.
client-token
- The idempotency token that you provided when you allocated the host.
host-reservation-id
- The ID of the reservation assigned to this host.
instance-type
- The instance type size that the Dedicated Host is configured to support.
state
- The allocation state of the Dedicated Host (available
|
under-assessment
| permanent-failure
| released
|
released-permanent-failure
).
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources
assigned a tag with a specific key, regardless of the tag value.
public void setFilter(Collection<Filter> filter)
The filters.
auto-placement
- Whether auto-placement is enabled or disabled (on
| off
).
availability-zone
- The Availability Zone of the host.
client-token
- The idempotency token that you provided when you allocated the host.
host-reservation-id
- The ID of the reservation assigned to this host.
instance-type
- The instance type size that the Dedicated Host is configured to support.
state
- The allocation state of the Dedicated Host (available
|
under-assessment
| permanent-failure
| released
|
released-permanent-failure
).
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned
a tag with a specific key, regardless of the tag value.
filter
- The filters.
auto-placement
- Whether auto-placement is enabled or disabled (on
|
off
).
availability-zone
- The Availability Zone of the host.
client-token
- The idempotency token that you provided when you allocated the host.
host-reservation-id
- The ID of the reservation assigned to this host.
instance-type
- The instance type size that the Dedicated Host is configured to support.
state
- The allocation state of the Dedicated Host (available
|
under-assessment
| permanent-failure
| released
|
released-permanent-failure
).
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources
assigned a tag with a specific key, regardless of the tag value.
public DescribeHostsRequest withFilter(Filter... filter)
The filters.
auto-placement
- Whether auto-placement is enabled or disabled (on
| off
).
availability-zone
- The Availability Zone of the host.
client-token
- The idempotency token that you provided when you allocated the host.
host-reservation-id
- The ID of the reservation assigned to this host.
instance-type
- The instance type size that the Dedicated Host is configured to support.
state
- The allocation state of the Dedicated Host (available
|
under-assessment
| permanent-failure
| released
|
released-permanent-failure
).
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned
a tag with a specific key, regardless of the tag value.
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
- The filters.
auto-placement
- Whether auto-placement is enabled or disabled (on
|
off
).
availability-zone
- The Availability Zone of the host.
client-token
- The idempotency token that you provided when you allocated the host.
host-reservation-id
- The ID of the reservation assigned to this host.
instance-type
- The instance type size that the Dedicated Host is configured to support.
state
- The allocation state of the Dedicated Host (available
|
under-assessment
| permanent-failure
| released
|
released-permanent-failure
).
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources
assigned a tag with a specific key, regardless of the tag value.
public DescribeHostsRequest withFilter(Collection<Filter> filter)
The filters.
auto-placement
- Whether auto-placement is enabled or disabled (on
| off
).
availability-zone
- The Availability Zone of the host.
client-token
- The idempotency token that you provided when you allocated the host.
host-reservation-id
- The ID of the reservation assigned to this host.
instance-type
- The instance type size that the Dedicated Host is configured to support.
state
- The allocation state of the Dedicated Host (available
|
under-assessment
| permanent-failure
| released
|
released-permanent-failure
).
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned
a tag with a specific key, regardless of the tag value.
filter
- The filters.
auto-placement
- Whether auto-placement is enabled or disabled (on
|
off
).
availability-zone
- The Availability Zone of the host.
client-token
- The idempotency token that you provided when you allocated the host.
host-reservation-id
- The ID of the reservation assigned to this host.
instance-type
- The instance type size that the Dedicated Host is configured to support.
state
- The allocation state of the Dedicated Host (available
|
under-assessment
| permanent-failure
| released
|
released-permanent-failure
).
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources
assigned a tag with a specific key, regardless of the tag value.
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 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 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 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 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 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 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 use to retrieve the next page of results.
nextToken
- The token to use to retrieve the next page of results.public String getNextToken()
The token to use to retrieve the next page of results.
public DescribeHostsRequest withNextToken(String nextToken)
The token to use to retrieve the next page of results.
nextToken
- The token to use 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()