@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()
One or more filters.
|
List<String> |
getHostReservationIdSet()
One or more 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)
One or more filters.
|
void |
setHostReservationIdSet(Collection<String> hostReservationIdSet)
One or more 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; useful for testing and debugging.
|
DescribeHostReservationsRequest |
withFilter(Collection<Filter> filter)
One or more filters.
|
DescribeHostReservationsRequest |
withFilter(Filter... filter)
One or more filters.
|
DescribeHostReservationsRequest |
withHostReservationIdSet(Collection<String> hostReservationIdSet)
One or more host reservation IDs.
|
DescribeHostReservationsRequest |
withHostReservationIdSet(String... hostReservationIdSet)
One or more 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()
One or more filters.
instance-family
- The instance family (e.g., m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
| payment-failed
|
active
| retired
).
instance-family
- The instance family (e.g., m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
|
payment-failed
| active
| retired
).
public void setFilter(Collection<Filter> filter)
One or more filters.
instance-family
- The instance family (e.g., m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
| payment-failed
|
active
| retired
).
filter
- One or more filters.
instance-family
- The instance family (e.g., m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
|
payment-failed
| active
| retired
).
public DescribeHostReservationsRequest withFilter(Filter... filter)
One or more filters.
instance-family
- The instance family (e.g., m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
| payment-failed
|
active
| retired
).
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-family
- The instance family (e.g., m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
|
payment-failed
| active
| retired
).
public DescribeHostReservationsRequest withFilter(Collection<Filter> filter)
One or more filters.
instance-family
- The instance family (e.g., m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
| payment-failed
|
active
| retired
).
filter
- One or more filters.
instance-family
- The instance family (e.g., m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
state
- The state of the reservation (payment-pending
|
payment-failed
| active
| retired
).
public List<String> getHostReservationIdSet()
One or more host reservation IDs.
public void setHostReservationIdSet(Collection<String> hostReservationIdSet)
One or more host reservation IDs.
hostReservationIdSet
- One or more host reservation IDs.public DescribeHostReservationsRequest withHostReservationIdSet(String... hostReservationIdSet)
One or more 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
- One or more host reservation IDs.public DescribeHostReservationsRequest withHostReservationIdSet(Collection<String> hostReservationIdSet)
One or more host reservation IDs.
hostReservationIdSet
- One or more 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 will 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 will 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 will receive an error.
nextToken
value. This value can be between
5 and 500; if maxResults
is given a larger value than 500, you will 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 will 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 will 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.