/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.DescribeHostReservationOfferingsRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeHostReservationOfferingsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest
* The filters.
*
*
*
* 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.
*
* 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
* 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.
*
* The token to use to retrieve the next page of results.
*
* The ID of the reservation offering.
*
* The filters.
*
*
*
*
*/
private com.amazonaws.internal.SdkInternalListinstance-family
- The instance family of the offering (for example, m4
).
* payment-option
- The payment option (NoUpfront
| PartialUpfront
|
* AllUpfront
).
* nextToken
value. This value can be between 5 and 500. If
* maxResults
is given a larger value than 500, you receive an error.
*
*
*
* @return 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
).
*
* 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
).
*
* 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 * {@link #setFilter(java.util.Collection)} or {@link #withFilter(java.util.Collection)} if you want to override the * existing values. *
* * @param filter * The filters. *
* instance-family
- The instance family of the offering (for example, m4
).
*
* payment-option
- The payment option (NoUpfront
| PartialUpfront
|
* AllUpfront
).
*
* 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
).
*
* 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. *
* * @param 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 setMaxDuration(Integer maxDuration) { this.maxDuration = 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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHostReservationOfferingsRequest withMaxDuration(Integer maxDuration) { setMaxDuration(maxDuration); return this; } /** *
* 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 void setMaxResults(Integer maxResults) {
this.maxResults = 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.
*
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() {
return this.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.
*
nextToken
value. This value can be between
* 5 and 500. If maxResults
is given a larger value than 500, you receive an error.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeHostReservationOfferingsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
* * 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. *
* * @param 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 setMinDuration(Integer minDuration) { this.minDuration = 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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHostReservationOfferingsRequest withMinDuration(Integer minDuration) { setMinDuration(minDuration); return this; } /** ** The token to use to retrieve the next page of results. *
* * @param nextToken * The token to use to retrieve the next page of results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The token to use to retrieve the next page of results. *
* * @return The token to use to retrieve the next page of results. */ public String getNextToken() { return this.nextToken; } /** ** The token to use to retrieve the next page of results. *
* * @param nextToken * The token to use to retrieve the next page of results. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHostReservationOfferingsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** ** The ID of the reservation offering. *
* * @param offeringId * The ID of the reservation offering. */ public void setOfferingId(String offeringId) { this.offeringId = offeringId; } /** ** The ID of the reservation offering. *
* * @return The ID of the reservation offering. */ public String getOfferingId() { return this.offeringId; } /** ** The ID of the reservation offering. *
* * @param offeringId * The ID of the reservation offering. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeHostReservationOfferingsRequest withOfferingId(String offeringId) { setOfferingId(offeringId); return this; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request