@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeHostReservationsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeHostReservationsRequest>
NOOP
Constructor and Description |
---|
DescribeHostReservationsRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeHostReservationsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<DescribeHostReservationsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilter()
The filters.
|
List<String> |
getHostReservationIdSet()
The host reservation IDs.
|
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 |
setHostReservationIdSet(Collection<String> hostReservationIdSet)
The host reservation IDs.
|
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.
|
DescribeHostReservationsRequest |
withFilter(Collection<Filter> filter)
The filters.
|
DescribeHostReservationsRequest |
withFilter(Filter... filter)
The filters.
|
DescribeHostReservationsRequest |
withHostReservationIdSet(Collection<String> hostReservationIdSet)
The host reservation IDs.
|
DescribeHostReservationsRequest |
withHostReservationIdSet(String... hostReservationIdSet)
The host reservation IDs.
|
DescribeHostReservationsRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return for the request in a single page.
|
DescribeHostReservationsRequest |
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.
instance-family
- The instance family (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
| payment-failed
|
active
| retired
).
tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag key in
the filter name and the tag value as the filter value. For example, to find all resources that have a tag with
the key Owner
and the value TeamA
, specify tag:Owner
for the filter name
and TeamA
for the filter value.
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.
instance-family
- The instance family (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
|
payment-failed
| active
| retired
).
tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag
key in the filter name and the tag value as the filter value. For example, to find all resources that
have a tag with the key Owner
and the value TeamA
, specify
tag:Owner
for the filter name and TeamA
for the filter value.
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.
instance-family
- The instance family (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
| payment-failed
|
active
| retired
).
tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag key in
the filter name and the tag value as the filter value. For example, to find all resources that have a tag with
the key Owner
and the value TeamA
, specify tag:Owner
for the filter name
and TeamA
for the filter value.
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.
instance-family
- The instance family (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
|
payment-failed
| active
| retired
).
tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag
key in the filter name and the tag value as the filter value. For example, to find all resources that have
a tag with the key Owner
and the value TeamA
, specify tag:Owner
for
the filter name and TeamA
for the filter value.
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 DescribeHostReservationsRequest withFilter(Filter... filter)
The filters.
instance-family
- The instance family (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
| payment-failed
|
active
| retired
).
tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag key in
the filter name and the tag value as the filter value. For example, to find all resources that have a tag with
the key Owner
and the value TeamA
, specify tag:Owner
for the filter name
and TeamA
for the filter value.
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.
instance-family
- The instance family (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
|
payment-failed
| active
| retired
).
tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag
key in the filter name and the tag value as the filter value. For example, to find all resources that have
a tag with the key Owner
and the value TeamA
, specify tag:Owner
for
the filter name and TeamA
for the filter value.
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 DescribeHostReservationsRequest withFilter(Collection<Filter> filter)
The filters.
instance-family
- The instance family (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
| payment-failed
|
active
| retired
).
tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag key in
the filter name and the tag value as the filter value. For example, to find all resources that have a tag with
the key Owner
and the value TeamA
, specify tag:Owner
for the filter name
and TeamA
for the filter value.
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.
instance-family
- The instance family (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
|
payment-failed
| active
| retired
).
tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag
key in the filter name and the tag value as the filter value. For example, to find all resources that have
a tag with the key Owner
and the value TeamA
, specify tag:Owner
for
the filter name and TeamA
for the filter value.
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> getHostReservationIdSet()
The host reservation IDs.
public void setHostReservationIdSet(Collection<String> hostReservationIdSet)
The host reservation IDs.
hostReservationIdSet
- The host reservation IDs.public DescribeHostReservationsRequest withHostReservationIdSet(String... hostReservationIdSet)
The host reservation IDs.
NOTE: This method appends the values to the existing list (if any). Use
setHostReservationIdSet(java.util.Collection)
or withHostReservationIdSet(java.util.Collection)
if you want to override the existing values.
hostReservationIdSet
- The host reservation IDs.public DescribeHostReservationsRequest withHostReservationIdSet(Collection<String> hostReservationIdSet)
The host reservation IDs.
hostReservationIdSet
- The host reservation IDs.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.
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.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.
nextToken
value. This value can be between
5 and 500. If maxResults
is given a larger value than 500, you receive an error.public DescribeHostReservationsRequest 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.
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.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 DescribeHostReservationsRequest 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<DescribeHostReservationsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeHostReservationsRequest>
public String toString()
toString
in class Object
Object.toString()
public DescribeHostReservationsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()