/* * Copyright 2010-2018 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 com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.Request; import com.amazonaws.services.ec2.model.transform.DescribeReservedInstancesOfferingsRequestMarshaller; /** * Container for the parameters to the {@link com.amazonaws.services.ec2.AmazonEC2#describeReservedInstancesOfferings(DescribeReservedInstancesOfferingsRequest) DescribeReservedInstancesOfferings operation}. *
* Describes Reserved Instance offerings that are available for purchase. * With Reserved Instances, you purchase the right to launch instances * for a period of time. During that time period, you do not receive * insufficient capacity errors, and you pay a lower usage rate than the * rate charged for On-Demand instances for the actual time used. *
** If you have listed your own Reserved Instances for sale in the * Reserved Instance Marketplace, they will be excluded from these * results. This is to ensure that you do not purchase your own Reserved * Instances. *
** For more information, see * Reserved Instance Marketplace * in the Amazon Elastic Compute Cloud User Guide . *
* * @see com.amazonaws.services.ec2.AmazonEC2#describeReservedInstancesOfferings(DescribeReservedInstancesOfferingsRequest) */ public class DescribeReservedInstancesOfferingsRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequestm1.small). For more information, see Instance
     * Types in the Amazon Elastic Compute Cloud User Guide.
     * 
     * Constraints:
     * Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
     */
    private String instanceType;
    /**
     * The Availability Zone in which the Reserved Instance can be used.
     */
    private String availabilityZone;
    /**
     * The Reserved Instance product platform description. Instances that
     * include (Amazon VPC) in the description are for use with
     * Amazon VPC.
     * 
     * Constraints:
     * Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
     */
    private String productDescription;
    /**
     * One or more filters. 
availability-zone - The
     * Availability Zone where the Reserved Instance can be used. 
duration - The duration of the Reserved Instance (for
     * example, one year or three years), in seconds (31536000 |
     * 94608000). 
fixed-price - The
     * purchase price of the Reserved Instance (for example, 9800.0). 
instance-type - The instance type that is covered
     * by the reservation. 
marketplace - Set to
     * true to show only Reserved Instance Marketplace
     * offerings. When this filter is not used, which is the default
     * behavior, all offerings from both AWS and the Reserved Instance
     * Marketplace are listed. 
product-description
     * - The Reserved Instance product platform description. Instances that
     * include (Amazon VPC) in the product platform description
     * will only be displayed to EC2-Classic account holders and are for use
     * with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon
     * VPC) | SUSE Linux | SUSE Linux (Amazon
     * VPC) | Red Hat Enterprise Linux | Red Hat
     * Enterprise Linux (Amazon VPC) | Windows |
     * Windows (Amazon VPC) | Windows with SQL Server
     * Standard | Windows with SQL Server Standard (Amazon
     * VPC) | Windows with SQL Server Web | 
     * Windows with SQL Server Web (Amazon VPC) | Windows with
     * SQL Server Enterprise | Windows with SQL Server
     * Enterprise (Amazon VPC)) 
reserved-instances-offering-id - The Reserved
     * Instances offering ID. 
usage-price - The
     * usage price of the Reserved Instance, per hour (for example, 0.84).
     * 
dedicated is applied to
     * instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     * Instances). Default: default
     * 
     * Constraints:
     * Allowed Values: default, dedicated, host
     */
    private String instanceTenancy;
    /**
     * The Reserved Instance offering type. If you are using tools that
     * predate the 2011-11-01 API version, you only have access to the
     * Medium Utilization Reserved Instance offering type.
     * 
     * Constraints:
     * Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
     */
    private String offeringType;
    /**
     * The token to retrieve the next page of results.
     */
    private String nextToken;
    /**
     * The maximum number of results to return for the request in a single
     * page. The remaining results of the initial request can be seen by
     * sending another request with the returned NextToken
     * value. The maximum is 100. 
Default: 100 */ private Integer maxResults; /** * Include Reserved Instance Marketplace offerings in the response. */ private Boolean includeMarketplace; /** * The minimum duration (in seconds) to filter when searching for * offerings.
Default: 2592000 (1 month) */ private Long minDuration; /** * The maximum duration (in seconds) to filter when searching for * offerings.
Default: 94608000 (3 years) */ private Long maxDuration; /** * The maximum number of instances to filter when searching for * offerings.
Default: 20
     */
    private Integer maxInstanceCount;
    /**
     * One or more Reserved Instances offering IDs.
     *
     * @return One or more Reserved Instances offering IDs.
     */
    public java.util.List 
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param reservedInstancesOfferingIds One or more Reserved Instances offering IDs.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withReservedInstancesOfferingIds(String... reservedInstancesOfferingIds) {
        if (getReservedInstancesOfferingIds() == null) setReservedInstancesOfferingIds(new java.util.ArrayList 
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param reservedInstancesOfferingIds One or more Reserved Instances offering IDs.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withReservedInstancesOfferingIds(java.util.Collection 
     * Constraints: 
     * Constraints: 
     * Returns a reference to this object so that method calls can be chained together.
     *  
     * Constraints: 
     * Constraints: 
     * Returns a reference to this object so that method calls can be chained together.
     *  
     * Constraints: 
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param availabilityZone The Availability Zone in which the Reserved Instance can be used.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withAvailabilityZone(String availabilityZone) {
        this.availabilityZone = availabilityZone;
        return this;
    }
    /**
     * The Reserved Instance product platform description. Instances that
     * include  
     * Constraints: 
     * Constraints: 
     * Returns a reference to this object so that method calls can be chained together.
     *  
     * Constraints: 
     * Constraints: 
     * Returns a reference to this object so that method calls can be chained together.
     *  
     * Constraints: 
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param filters One or more filters.  
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param filters One or more filters.  Default:  
     * Constraints: Default:  Default:  
     * Constraints: Default:  Default:  
     * Returns a reference to this object so that method calls can be chained together.
     *  
     * Constraints: Default:  Default:  
     * Constraints: Default:  Default:  
     * Returns a reference to this object so that method calls can be chained together.
     *  
     * Constraints: Default:  
     * Constraints: 
     * Constraints: 
     * Returns a reference to this object so that method calls can be chained together.
     *  
     * Constraints: 
     * Constraints: 
     * Returns a reference to this object so that method calls can be chained together.
     *  
     * Constraints: 
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param nextToken The token to retrieve the next page of results.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withNextToken(String nextToken) {
        this.nextToken = nextToken;
        return this;
    }
    /**
     * The maximum number of results to return for the request in a single
     * page. The remaining results of the initial request can be seen by
     * sending another request with the returned  Default: 100
     *
     * @return The maximum number of results to return for the request in a single
     *         page. The remaining results of the initial request can be seen by
     *         sending another request with the returned  Default: 100
     */
    public Integer getMaxResults() {
        return maxResults;
    }
    
    /**
     * The maximum number of results to return for the request in a single
     * page. The remaining results of the initial request can be seen by
     * sending another request with the returned  Default: 100
     *
     * @param maxResults The maximum number of results to return for the request in a single
     *         page. The remaining results of the initial request can be seen by
     *         sending another request with the returned  Default: 100
     */
    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 of the initial request can be seen by
     * sending another request with the returned  Default: 100
     *  
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param maxResults The maximum number of results to return for the request in a single
     *         page. The remaining results of the initial request can be seen by
     *         sending another request with the returned  Default: 100
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withMaxResults(Integer maxResults) {
        this.maxResults = maxResults;
        return this;
    }
    /**
     * Include Reserved Instance Marketplace offerings in the response.
     *
     * @return Include Reserved Instance Marketplace offerings in the response.
     */
    public Boolean isIncludeMarketplace() {
        return includeMarketplace;
    }
    
    /**
     * Include Reserved Instance Marketplace offerings in the response.
     *
     * @param includeMarketplace Include Reserved Instance Marketplace offerings in the response.
     */
    public void setIncludeMarketplace(Boolean includeMarketplace) {
        this.includeMarketplace = includeMarketplace;
    }
    
    /**
     * Include Reserved Instance Marketplace offerings in the response.
     *  
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param includeMarketplace Include Reserved Instance Marketplace offerings in the response.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withIncludeMarketplace(Boolean includeMarketplace) {
        this.includeMarketplace = includeMarketplace;
        return this;
    }
    /**
     * Include Reserved Instance Marketplace offerings in the response.
     *
     * @return Include Reserved Instance Marketplace offerings in the response.
     */
    public Boolean getIncludeMarketplace() {
        return includeMarketplace;
    }
    /**
     * The minimum duration (in seconds) to filter when searching for
     * offerings.  Default: 2592000 (1 month)
     *
     * @return The minimum duration (in seconds) to filter when searching for
     *         offerings.  Default: 2592000 (1 month)
     */
    public Long getMinDuration() {
        return minDuration;
    }
    
    /**
     * The minimum duration (in seconds) to filter when searching for
     * offerings.  Default: 2592000 (1 month)
     *
     * @param minDuration The minimum duration (in seconds) to filter when searching for
     *         offerings.  Default: 2592000 (1 month)
     */
    public void setMinDuration(Long minDuration) {
        this.minDuration = minDuration;
    }
    
    /**
     * The minimum duration (in seconds) to filter when searching for
     * offerings.  Default: 2592000 (1 month)
     *  
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param minDuration The minimum duration (in seconds) to filter when searching for
     *         offerings.  Default: 2592000 (1 month)
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withMinDuration(Long minDuration) {
        this.minDuration = minDuration;
        return this;
    }
    /**
     * The maximum duration (in seconds) to filter when searching for
     * offerings.  Default: 94608000 (3 years)
     *
     * @return The maximum duration (in seconds) to filter when searching for
     *         offerings.  Default: 94608000 (3 years)
     */
    public Long getMaxDuration() {
        return maxDuration;
    }
    
    /**
     * The maximum duration (in seconds) to filter when searching for
     * offerings.  Default: 94608000 (3 years)
     *
     * @param maxDuration The maximum duration (in seconds) to filter when searching for
     *         offerings.  Default: 94608000 (3 years)
     */
    public void setMaxDuration(Long maxDuration) {
        this.maxDuration = maxDuration;
    }
    
    /**
     * The maximum duration (in seconds) to filter when searching for
     * offerings.  Default: 94608000 (3 years)
     *  
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param maxDuration The maximum duration (in seconds) to filter when searching for
     *         offerings.  Default: 94608000 (3 years)
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withMaxDuration(Long maxDuration) {
        this.maxDuration = maxDuration;
        return this;
    }
    /**
     * The maximum number of instances to filter when searching for
     * offerings.  Default: 20
     *
     * @return The maximum number of instances to filter when searching for
     *         offerings.  Default: 20
     */
    public Integer getMaxInstanceCount() {
        return maxInstanceCount;
    }
    
    /**
     * The maximum number of instances to filter when searching for
     * offerings.  Default: 20
     *
     * @param maxInstanceCount The maximum number of instances to filter when searching for
     *         offerings.  Default: 20
     */
    public void setMaxInstanceCount(Integer maxInstanceCount) {
        this.maxInstanceCount = maxInstanceCount;
    }
    
    /**
     * The maximum number of instances to filter when searching for
     * offerings.  Default: 20
     *  
     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param maxInstanceCount The maximum number of instances to filter when searching for
     *         offerings.  Default: 20
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withMaxInstanceCount(Integer maxInstanceCount) {
        this.maxInstanceCount = maxInstanceCount;
        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 Requestm1.small). For more information, see Instance
     * Types in the Amazon Elastic Compute Cloud User Guide.
     * 
     * Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
     *
     * @return The instance type that the reservation will cover (for example,
     *         m1.small). For more information, see Instance
     *         Types in the Amazon Elastic Compute Cloud User Guide.
     *
     * @see InstanceType
     */
    public String getInstanceType() {
        return instanceType;
    }
    
    /**
     * The instance type that the reservation will cover (for example,
     * m1.small). For more information, see Instance
     * Types in the Amazon Elastic Compute Cloud User Guide.
     * 
     * Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
     *
     * @param instanceType The instance type that the reservation will cover (for example,
     *         m1.small). For more information, see Instance
     *         Types in the Amazon Elastic Compute Cloud User Guide.
     *
     * @see InstanceType
     */
    public void setInstanceType(String instanceType) {
        this.instanceType = instanceType;
    }
    
    /**
     * The instance type that the reservation will cover (for example,
     * m1.small). For more information, see Instance
     * Types in the Amazon Elastic Compute Cloud User Guide.
     * 
     * Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
     *
     * @param instanceType The instance type that the reservation will cover (for example,
     *         m1.small). For more information, see Instance
     *         Types in the Amazon Elastic Compute Cloud User Guide.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     *
     * @see InstanceType
     */
    public DescribeReservedInstancesOfferingsRequest withInstanceType(String instanceType) {
        this.instanceType = instanceType;
        return this;
    }
    /**
     * The instance type that the reservation will cover (for example,
     * m1.small). For more information, see Instance
     * Types in the Amazon Elastic Compute Cloud User Guide.
     * 
     * Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
     *
     * @param instanceType The instance type that the reservation will cover (for example,
     *         m1.small). For more information, see Instance
     *         Types in the Amazon Elastic Compute Cloud User Guide.
     *
     * @see InstanceType
     */
    public void setInstanceType(InstanceType instanceType) {
        this.instanceType = instanceType.toString();
    }
    
    /**
     * The instance type that the reservation will cover (for example,
     * m1.small). For more information, see Instance
     * Types in the Amazon Elastic Compute Cloud User Guide.
     * 
     * Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
     *
     * @param instanceType The instance type that the reservation will cover (for example,
     *         m1.small). For more information, see Instance
     *         Types in the Amazon Elastic Compute Cloud User Guide.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     *
     * @see InstanceType
     */
    public DescribeReservedInstancesOfferingsRequest withInstanceType(InstanceType instanceType) {
        this.instanceType = instanceType.toString();
        return this;
    }
    /**
     * The Availability Zone in which the Reserved Instance can be used.
     *
     * @return The Availability Zone in which the Reserved Instance can be used.
     */
    public String getAvailabilityZone() {
        return availabilityZone;
    }
    
    /**
     * The Availability Zone in which the Reserved Instance can be used.
     *
     * @param availabilityZone The Availability Zone in which the Reserved Instance can be used.
     */
    public void setAvailabilityZone(String availabilityZone) {
        this.availabilityZone = availabilityZone;
    }
    
    /**
     * The Availability Zone in which the Reserved Instance can be used.
     * (Amazon VPC) in the description are for use with
     * Amazon VPC.
     * 
     * Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
     *
     * @return The Reserved Instance product platform description. Instances that
     *         include (Amazon VPC) in the description are for use with
     *         Amazon VPC.
     *
     * @see RIProductDescription
     */
    public String getProductDescription() {
        return productDescription;
    }
    
    /**
     * The Reserved Instance product platform description. Instances that
     * include (Amazon VPC) in the description are for use with
     * Amazon VPC.
     * 
     * Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
     *
     * @param productDescription The Reserved Instance product platform description. Instances that
     *         include (Amazon VPC) in the description are for use with
     *         Amazon VPC.
     *
     * @see RIProductDescription
     */
    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }
    
    /**
     * The Reserved Instance product platform description. Instances that
     * include (Amazon VPC) in the description are for use with
     * Amazon VPC.
     * 
     * Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
     *
     * @param productDescription The Reserved Instance product platform description. Instances that
     *         include (Amazon VPC) in the description are for use with
     *         Amazon VPC.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     *
     * @see RIProductDescription
     */
    public DescribeReservedInstancesOfferingsRequest withProductDescription(String productDescription) {
        this.productDescription = productDescription;
        return this;
    }
    /**
     * The Reserved Instance product platform description. Instances that
     * include (Amazon VPC) in the description are for use with
     * Amazon VPC.
     * 
     * Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
     *
     * @param productDescription The Reserved Instance product platform description. Instances that
     *         include (Amazon VPC) in the description are for use with
     *         Amazon VPC.
     *
     * @see RIProductDescription
     */
    public void setProductDescription(RIProductDescription productDescription) {
        this.productDescription = productDescription.toString();
    }
    
    /**
     * The Reserved Instance product platform description. Instances that
     * include (Amazon VPC) in the description are for use with
     * Amazon VPC.
     * 
     * Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
     *
     * @param productDescription The Reserved Instance product platform description. Instances that
     *         include (Amazon VPC) in the description are for use with
     *         Amazon VPC.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     *
     * @see RIProductDescription
     */
    public DescribeReservedInstancesOfferingsRequest withProductDescription(RIProductDescription productDescription) {
        this.productDescription = productDescription.toString();
        return this;
    }
    /**
     * One or more filters.  
     *
     * @return One or more filters. availability-zone - The
     * Availability Zone where the Reserved Instance can be used. duration - The duration of the Reserved Instance (for
     * example, one year or three years), in seconds (31536000 |
     * 94608000). fixed-price - The
     * purchase price of the Reserved Instance (for example, 9800.0). instance-type - The instance type that is covered
     * by the reservation. marketplace - Set to
     * true to show only Reserved Instance Marketplace
     * offerings. When this filter is not used, which is the default
     * behavior, all offerings from both AWS and the Reserved Instance
     * Marketplace are listed. product-description
     * - The Reserved Instance product platform description. Instances that
     * include (Amazon VPC) in the product platform description
     * will only be displayed to EC2-Classic account holders and are for use
     * with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon
     * VPC) | SUSE Linux | SUSE Linux (Amazon
     * VPC) | Red Hat Enterprise Linux | Red Hat
     * Enterprise Linux (Amazon VPC) | Windows |
     * Windows (Amazon VPC) | Windows with SQL Server
     * Standard | Windows with SQL Server Standard (Amazon
     * VPC) | Windows with SQL Server Web | 
     * Windows with SQL Server Web (Amazon VPC) | Windows with
     * SQL Server Enterprise | Windows with SQL Server
     * Enterprise (Amazon VPC)) reserved-instances-offering-id - The Reserved
     * Instances offering ID. usage-price - The
     * usage price of the Reserved Instance, per hour (for example, 0.84).
     *  
     */
    public java.util.Listavailability-zone - The
     *         Availability Zone where the Reserved Instance can be used. duration - The duration of the Reserved Instance (for
     *         example, one year or three years), in seconds (31536000 |
     *         94608000). fixed-price - The
     *         purchase price of the Reserved Instance (for example, 9800.0). instance-type - The instance type that is covered
     *         by the reservation. marketplace - Set to
     *         true to show only Reserved Instance Marketplace
     *         offerings. When this filter is not used, which is the default
     *         behavior, all offerings from both AWS and the Reserved Instance
     *         Marketplace are listed. product-description
     *         - The Reserved Instance product platform description. Instances that
     *         include (Amazon VPC) in the product platform description
     *         will only be displayed to EC2-Classic account holders and are for use
     *         with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon
     *         VPC) | SUSE Linux | SUSE Linux (Amazon
     *         VPC) | Red Hat Enterprise Linux | Red Hat
     *         Enterprise Linux (Amazon VPC) | Windows |
     *         Windows (Amazon VPC) | Windows with SQL Server
     *         Standard | Windows with SQL Server Standard (Amazon
     *         VPC) | Windows with SQL Server Web | 
     *         Windows with SQL Server Web (Amazon VPC) | Windows with
     *         SQL Server Enterprise | Windows with SQL Server
     *         Enterprise (Amazon VPC)) reserved-instances-offering-id - The Reserved
     *         Instances offering ID. usage-price - The
     *         usage price of the Reserved Instance, per hour (for example, 0.84).
     *          
     *
     * @param filters One or more filters. availability-zone - The
     * Availability Zone where the Reserved Instance can be used. duration - The duration of the Reserved Instance (for
     * example, one year or three years), in seconds (31536000 |
     * 94608000). fixed-price - The
     * purchase price of the Reserved Instance (for example, 9800.0). instance-type - The instance type that is covered
     * by the reservation. marketplace - Set to
     * true to show only Reserved Instance Marketplace
     * offerings. When this filter is not used, which is the default
     * behavior, all offerings from both AWS and the Reserved Instance
     * Marketplace are listed. product-description
     * - The Reserved Instance product platform description. Instances that
     * include (Amazon VPC) in the product platform description
     * will only be displayed to EC2-Classic account holders and are for use
     * with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon
     * VPC) | SUSE Linux | SUSE Linux (Amazon
     * VPC) | Red Hat Enterprise Linux | Red Hat
     * Enterprise Linux (Amazon VPC) | Windows |
     * Windows (Amazon VPC) | Windows with SQL Server
     * Standard | Windows with SQL Server Standard (Amazon
     * VPC) | Windows with SQL Server Web | 
     * Windows with SQL Server Web (Amazon VPC) | Windows with
     * SQL Server Enterprise | Windows with SQL Server
     * Enterprise (Amazon VPC)) reserved-instances-offering-id - The Reserved
     * Instances offering ID. usage-price - The
     * usage price of the Reserved Instance, per hour (for example, 0.84).
     *  
     */
    public void setFilters(java.util.Collectionavailability-zone - The
     *         Availability Zone where the Reserved Instance can be used. duration - The duration of the Reserved Instance (for
     *         example, one year or three years), in seconds (31536000 |
     *         94608000). fixed-price - The
     *         purchase price of the Reserved Instance (for example, 9800.0). instance-type - The instance type that is covered
     *         by the reservation. marketplace - Set to
     *         true to show only Reserved Instance Marketplace
     *         offerings. When this filter is not used, which is the default
     *         behavior, all offerings from both AWS and the Reserved Instance
     *         Marketplace are listed. product-description
     *         - The Reserved Instance product platform description. Instances that
     *         include (Amazon VPC) in the product platform description
     *         will only be displayed to EC2-Classic account holders and are for use
     *         with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon
     *         VPC) | SUSE Linux | SUSE Linux (Amazon
     *         VPC) | Red Hat Enterprise Linux | Red Hat
     *         Enterprise Linux (Amazon VPC) | Windows |
     *         Windows (Amazon VPC) | Windows with SQL Server
     *         Standard | Windows with SQL Server Standard (Amazon
     *         VPC) | Windows with SQL Server Web | 
     *         Windows with SQL Server Web (Amazon VPC) | Windows with
     *         SQL Server Enterprise | Windows with SQL Server
     *         Enterprise (Amazon VPC)) reserved-instances-offering-id - The Reserved
     *         Instances offering ID. usage-price - The
     *         usage price of the Reserved Instance, per hour (for example, 0.84).
     *          
     * availability-zone - The
     * Availability Zone where the Reserved Instance can be used. duration - The duration of the Reserved Instance (for
     * example, one year or three years), in seconds (31536000 |
     * 94608000). fixed-price - The
     * purchase price of the Reserved Instance (for example, 9800.0). instance-type - The instance type that is covered
     * by the reservation. marketplace - Set to
     * true to show only Reserved Instance Marketplace
     * offerings. When this filter is not used, which is the default
     * behavior, all offerings from both AWS and the Reserved Instance
     * Marketplace are listed. product-description
     * - The Reserved Instance product platform description. Instances that
     * include (Amazon VPC) in the product platform description
     * will only be displayed to EC2-Classic account holders and are for use
     * with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon
     * VPC) | SUSE Linux | SUSE Linux (Amazon
     * VPC) | Red Hat Enterprise Linux | Red Hat
     * Enterprise Linux (Amazon VPC) | Windows |
     * Windows (Amazon VPC) | Windows with SQL Server
     * Standard | Windows with SQL Server Standard (Amazon
     * VPC) | Windows with SQL Server Web | 
     * Windows with SQL Server Web (Amazon VPC) | Windows with
     * SQL Server Enterprise | Windows with SQL Server
     * Enterprise (Amazon VPC)) reserved-instances-offering-id - The Reserved
     * Instances offering ID. usage-price - The
     * usage price of the Reserved Instance, per hour (for example, 0.84).
     *  
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withFilters(Filter... filters) {
        if (getFilters() == null) setFilters(new java.util.ArrayListavailability-zone - The
     *         Availability Zone where the Reserved Instance can be used. duration - The duration of the Reserved Instance (for
     *         example, one year or three years), in seconds (31536000 |
     *         94608000). fixed-price - The
     *         purchase price of the Reserved Instance (for example, 9800.0). instance-type - The instance type that is covered
     *         by the reservation. marketplace - Set to
     *         true to show only Reserved Instance Marketplace
     *         offerings. When this filter is not used, which is the default
     *         behavior, all offerings from both AWS and the Reserved Instance
     *         Marketplace are listed. product-description
     *         - The Reserved Instance product platform description. Instances that
     *         include (Amazon VPC) in the product platform description
     *         will only be displayed to EC2-Classic account holders and are for use
     *         with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon
     *         VPC) | SUSE Linux | SUSE Linux (Amazon
     *         VPC) | Red Hat Enterprise Linux | Red Hat
     *         Enterprise Linux (Amazon VPC) | Windows |
     *         Windows (Amazon VPC) | Windows with SQL Server
     *         Standard | Windows with SQL Server Standard (Amazon
     *         VPC) | Windows with SQL Server Web | 
     *         Windows with SQL Server Web (Amazon VPC) | Windows with
     *         SQL Server Enterprise | Windows with SQL Server
     *         Enterprise (Amazon VPC)) reserved-instances-offering-id - The Reserved
     *         Instances offering ID. usage-price - The
     *         usage price of the Reserved Instance, per hour (for example, 0.84).
     *          
     * availability-zone - The
     * Availability Zone where the Reserved Instance can be used. duration - The duration of the Reserved Instance (for
     * example, one year or three years), in seconds (31536000 |
     * 94608000). fixed-price - The
     * purchase price of the Reserved Instance (for example, 9800.0). instance-type - The instance type that is covered
     * by the reservation. marketplace - Set to
     * true to show only Reserved Instance Marketplace
     * offerings. When this filter is not used, which is the default
     * behavior, all offerings from both AWS and the Reserved Instance
     * Marketplace are listed. product-description
     * - The Reserved Instance product platform description. Instances that
     * include (Amazon VPC) in the product platform description
     * will only be displayed to EC2-Classic account holders and are for use
     * with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon
     * VPC) | SUSE Linux | SUSE Linux (Amazon
     * VPC) | Red Hat Enterprise Linux | Red Hat
     * Enterprise Linux (Amazon VPC) | Windows |
     * Windows (Amazon VPC) | Windows with SQL Server
     * Standard | Windows with SQL Server Standard (Amazon
     * VPC) | Windows with SQL Server Web | 
     * Windows with SQL Server Web (Amazon VPC) | Windows with
     * SQL Server Enterprise | Windows with SQL Server
     * Enterprise (Amazon VPC)) reserved-instances-offering-id - The Reserved
     * Instances offering ID. usage-price - The
     * usage price of the Reserved Instance, per hour (for example, 0.84).
     *  
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedInstancesOfferingsRequest withFilters(java.util.Collectionavailability-zone - The
     *         Availability Zone where the Reserved Instance can be used. duration - The duration of the Reserved Instance (for
     *         example, one year or three years), in seconds (31536000 |
     *         94608000). fixed-price - The
     *         purchase price of the Reserved Instance (for example, 9800.0). instance-type - The instance type that is covered
     *         by the reservation. marketplace - Set to
     *         true to show only Reserved Instance Marketplace
     *         offerings. When this filter is not used, which is the default
     *         behavior, all offerings from both AWS and the Reserved Instance
     *         Marketplace are listed. product-description
     *         - The Reserved Instance product platform description. Instances that
     *         include (Amazon VPC) in the product platform description
     *         will only be displayed to EC2-Classic account holders and are for use
     *         with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon
     *         VPC) | SUSE Linux | SUSE Linux (Amazon
     *         VPC) | Red Hat Enterprise Linux | Red Hat
     *         Enterprise Linux (Amazon VPC) | Windows |
     *         Windows (Amazon VPC) | Windows with SQL Server
     *         Standard | Windows with SQL Server Standard (Amazon
     *         VPC) | Windows with SQL Server Web | 
     *         Windows with SQL Server Web (Amazon VPC) | Windows with
     *         SQL Server Enterprise | Windows with SQL Server
     *         Enterprise (Amazon VPC)) reserved-instances-offering-id - The Reserved
     *         Instances offering ID. usage-price - The
     *         usage price of the Reserved Instance, per hour (for example, 0.84).
     *         dedicated is applied to
     * instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     * Instances). default
     * 
     * Allowed Values: default, dedicated, host
     *
     * @return The tenancy of the instances covered by the reservation. A Reserved
     *         Instance with a tenancy of dedicated is applied to
     *         instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     *         Instances). default
     *
     * @see Tenancy
     */
    public String getInstanceTenancy() {
        return instanceTenancy;
    }
    
    /**
     * The tenancy of the instances covered by the reservation. A Reserved
     * Instance with a tenancy of dedicated is applied to
     * instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     * Instances). default
     * 
     * Allowed Values: default, dedicated, host
     *
     * @param instanceTenancy The tenancy of the instances covered by the reservation. A Reserved
     *         Instance with a tenancy of dedicated is applied to
     *         instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     *         Instances). default
     *
     * @see Tenancy
     */
    public void setInstanceTenancy(String instanceTenancy) {
        this.instanceTenancy = instanceTenancy;
    }
    
    /**
     * The tenancy of the instances covered by the reservation. A Reserved
     * Instance with a tenancy of dedicated is applied to
     * instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     * Instances). default
     * 
     * Allowed Values: default, dedicated, host
     *
     * @param instanceTenancy The tenancy of the instances covered by the reservation. A Reserved
     *         Instance with a tenancy of dedicated is applied to
     *         instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     *         Instances). default
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     *
     * @see Tenancy
     */
    public DescribeReservedInstancesOfferingsRequest withInstanceTenancy(String instanceTenancy) {
        this.instanceTenancy = instanceTenancy;
        return this;
    }
    /**
     * The tenancy of the instances covered by the reservation. A Reserved
     * Instance with a tenancy of dedicated is applied to
     * instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     * Instances). default
     * 
     * Allowed Values: default, dedicated, host
     *
     * @param instanceTenancy The tenancy of the instances covered by the reservation. A Reserved
     *         Instance with a tenancy of dedicated is applied to
     *         instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     *         Instances). default
     *
     * @see Tenancy
     */
    public void setInstanceTenancy(Tenancy instanceTenancy) {
        this.instanceTenancy = instanceTenancy.toString();
    }
    
    /**
     * The tenancy of the instances covered by the reservation. A Reserved
     * Instance with a tenancy of dedicated is applied to
     * instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     * Instances). default
     * 
     * Allowed Values: default, dedicated, host
     *
     * @param instanceTenancy The tenancy of the instances covered by the reservation. A Reserved
     *         Instance with a tenancy of dedicated is applied to
     *         instances that run in a VPC on single-tenant hardware (i.e., Dedicated
     *         Instances). default
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     *
     * @see Tenancy
     */
    public DescribeReservedInstancesOfferingsRequest withInstanceTenancy(Tenancy instanceTenancy) {
        this.instanceTenancy = instanceTenancy.toString();
        return this;
    }
    /**
     * The Reserved Instance offering type. If you are using tools that
     * predate the 2011-11-01 API version, you only have access to the
     * Medium Utilization Reserved Instance offering type.
     * 
     * Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
     *
     * @return The Reserved Instance offering type. If you are using tools that
     *         predate the 2011-11-01 API version, you only have access to the
     *         Medium Utilization Reserved Instance offering type.
     *
     * @see OfferingTypeValues
     */
    public String getOfferingType() {
        return offeringType;
    }
    
    /**
     * The Reserved Instance offering type. If you are using tools that
     * predate the 2011-11-01 API version, you only have access to the
     * Medium Utilization Reserved Instance offering type.
     * 
     * Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
     *
     * @param offeringType The Reserved Instance offering type. If you are using tools that
     *         predate the 2011-11-01 API version, you only have access to the
     *         Medium Utilization Reserved Instance offering type.
     *
     * @see OfferingTypeValues
     */
    public void setOfferingType(String offeringType) {
        this.offeringType = offeringType;
    }
    
    /**
     * The Reserved Instance offering type. If you are using tools that
     * predate the 2011-11-01 API version, you only have access to the
     * Medium Utilization Reserved Instance offering type.
     * 
     * Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
     *
     * @param offeringType The Reserved Instance offering type. If you are using tools that
     *         predate the 2011-11-01 API version, you only have access to the
     *         Medium Utilization Reserved Instance offering type.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     *
     * @see OfferingTypeValues
     */
    public DescribeReservedInstancesOfferingsRequest withOfferingType(String offeringType) {
        this.offeringType = offeringType;
        return this;
    }
    /**
     * The Reserved Instance offering type. If you are using tools that
     * predate the 2011-11-01 API version, you only have access to the
     * Medium Utilization Reserved Instance offering type.
     * 
     * Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
     *
     * @param offeringType The Reserved Instance offering type. If you are using tools that
     *         predate the 2011-11-01 API version, you only have access to the
     *         Medium Utilization Reserved Instance offering type.
     *
     * @see OfferingTypeValues
     */
    public void setOfferingType(OfferingTypeValues offeringType) {
        this.offeringType = offeringType.toString();
    }
    
    /**
     * The Reserved Instance offering type. If you are using tools that
     * predate the 2011-11-01 API version, you only have access to the
     * Medium Utilization Reserved Instance offering type.
     * 
     * Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
     *
     * @param offeringType The Reserved Instance offering type. If you are using tools that
     *         predate the 2011-11-01 API version, you only have access to the
     *         Medium Utilization Reserved Instance offering type.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     *
     * @see OfferingTypeValues
     */
    public DescribeReservedInstancesOfferingsRequest withOfferingType(OfferingTypeValues offeringType) {
        this.offeringType = offeringType.toString();
        return this;
    }
    /**
     * The token to retrieve the next page of results.
     *
     * @return The token to retrieve the next page of results.
     */
    public String getNextToken() {
        return nextToken;
    }
    
    /**
     * The token to retrieve the next page of results.
     *
     * @param nextToken The token to retrieve the next page of results.
     */
    public void setNextToken(String nextToken) {
        this.nextToken = nextToken;
    }
    
    /**
     * The token to retrieve the next page of results.
     * NextToken
     * value. The maximum is 100. NextToken
     *         value. The maximum is 100. NextToken
     * value. The maximum is 100. NextToken
     *         value. The maximum is 100. NextToken
     * value. The maximum is 100. NextToken
     *         value. The maximum is 100.