@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeHostReservationOfferingsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeHostReservationOfferingsRequest>
NOOP
Constructor and Description |
---|
DescribeHostReservationOfferingsRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeHostReservationOfferingsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<DescribeHostReservationOfferingsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilter()
The filters.
|
Integer |
getMaxDuration()
This is the maximum duration of the reservation to purchase, specified in seconds.
|
Integer |
getMaxResults()
The maximum number of results to return for the request in a single page.
|
Integer |
getMinDuration()
This is the minimum duration of the reservation you'd like to purchase, specified in seconds.
|
String |
getNextToken()
The token to use to retrieve the next page of results.
|
String |
getOfferingId()
The ID of the reservation offering.
|
int |
hashCode() |
void |
setFilter(Collection<Filter> filter)
The filters.
|
void |
setMaxDuration(Integer maxDuration)
This is the maximum duration of the reservation to purchase, specified in seconds.
|
void |
setMaxResults(Integer maxResults)
The maximum number of results to return for the request in a single page.
|
void |
setMinDuration(Integer minDuration)
This is the minimum duration of the reservation you'd like to purchase, specified in seconds.
|
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
void |
setOfferingId(String offeringId)
The ID of the reservation offering.
|
String |
toString()
Returns a string representation of this object.
|
DescribeHostReservationOfferingsRequest |
withFilter(Collection<Filter> filter)
The filters.
|
DescribeHostReservationOfferingsRequest |
withFilter(Filter... filter)
The filters.
|
DescribeHostReservationOfferingsRequest |
withMaxDuration(Integer maxDuration)
This is the maximum duration of the reservation to purchase, specified in seconds.
|
DescribeHostReservationOfferingsRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return for the request in a single page.
|
DescribeHostReservationOfferingsRequest |
withMinDuration(Integer minDuration)
This is the minimum duration of the reservation you'd like to purchase, specified in seconds.
|
DescribeHostReservationOfferingsRequest |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
DescribeHostReservationOfferingsRequest |
withOfferingId(String offeringId)
The ID of the reservation offering.
|
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 DescribeHostReservationOfferingsRequest()
public List<Filter> getFilter()
The filters.
instance-family
- The instance family of the offering (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
instance-family
- The instance family of the offering (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
public void setFilter(Collection<Filter> filter)
The filters.
instance-family
- The instance family of the offering (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
filter
- The filters.
instance-family
- The instance family of the offering (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
public DescribeHostReservationOfferingsRequest withFilter(Filter... filter)
The filters.
instance-family
- The instance family of the offering (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
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 of the offering (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
public DescribeHostReservationOfferingsRequest withFilter(Collection<Filter> filter)
The filters.
instance-family
- The instance family of the offering (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
filter
- The filters.
instance-family
- The instance family of the offering (for example, m4
).
payment-option
- The payment option (NoUpfront
| PartialUpfront
|
AllUpfront
).
public void setMaxDuration(Integer maxDuration)
This is the maximum duration of the reservation to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 94608000 for three years.
maxDuration
- This is the maximum duration of the reservation to purchase, specified in seconds. Reservations are
available in one-year and three-year terms. The number of seconds specified must be the number of seconds
in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 94608000 for
three years.public Integer getMaxDuration()
This is the maximum duration of the reservation to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 94608000 for three years.
public DescribeHostReservationOfferingsRequest withMaxDuration(Integer maxDuration)
This is the maximum duration of the reservation to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 94608000 for three years.
maxDuration
- This is the maximum duration of the reservation to purchase, specified in seconds. Reservations are
available in one-year and three-year terms. The number of seconds specified must be the number of seconds
in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 94608000 for
three years.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 DescribeHostReservationOfferingsRequest 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 setMinDuration(Integer minDuration)
This is the minimum duration of the reservation you'd like to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 31536000 for one year.
minDuration
- This is the minimum duration of the reservation you'd like to purchase, specified in seconds. Reservations
are available in one-year and three-year terms. The number of seconds specified must be the number of
seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify
31536000 for one year.public Integer getMinDuration()
This is the minimum duration of the reservation you'd like to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 31536000 for one year.
public DescribeHostReservationOfferingsRequest withMinDuration(Integer minDuration)
This is the minimum duration of the reservation you'd like to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 31536000 for one year.
minDuration
- This is the minimum duration of the reservation you'd like to purchase, specified in seconds. Reservations
are available in one-year and three-year terms. The number of seconds specified must be the number of
seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify
31536000 for one year.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 DescribeHostReservationOfferingsRequest 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 void setOfferingId(String offeringId)
The ID of the reservation offering.
offeringId
- The ID of the reservation offering.public String getOfferingId()
The ID of the reservation offering.
public DescribeHostReservationOfferingsRequest withOfferingId(String offeringId)
The ID of the reservation offering.
offeringId
- The ID of the reservation offering.public Request<DescribeHostReservationOfferingsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeHostReservationOfferingsRequest>
public String toString()
toString
in class Object
Object.toString()
public DescribeHostReservationOfferingsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()