Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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;
  
  
Container for the parameters to the 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.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide for Linux .

  
One or more Reserved Instances offering IDs.
  
The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, 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 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 on which the Reserved Instance can be used.

  • 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 AWS and Reserved Instance Marketplace are listed.

  • product-description - The description of the Reserved Instance (Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows | Windows (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).

  
The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

Constraints:
Allowed Values: default, dedicated

 
     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 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.

Returns:
One or more Reserved Instances offering IDs.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
One or more Reserved Instances offering IDs.

Parameters:
reservedInstancesOfferingIds One or more Reserved Instances offering IDs.
 
     public void setReservedInstancesOfferingIds(java.util.Collection<StringreservedInstancesOfferingIds) {
         if (reservedInstancesOfferingIds == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<StringreservedInstancesOfferingIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(reservedInstancesOfferingIds.size());
         reservedInstancesOfferingIdsCopy.addAll(reservedInstancesOfferingIds);
         this. = reservedInstancesOfferingIdsCopy;
     }
    
    
One or more Reserved Instances offering IDs.

NOTE: This method appends the values to the existing list (if any). Use setReservedInstancesOfferingIds(java.util.Collection) or withReservedInstancesOfferingIds(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedInstancesOfferingIds One or more Reserved Instances offering IDs.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DescribeReservedInstancesOfferingsRequest withReservedInstancesOfferingIds(String... reservedInstancesOfferingIds) {
         if (getReservedInstancesOfferingIds() == nullsetReservedInstancesOfferingIds(new java.util.ArrayList<String>(reservedInstancesOfferingIds.length));
         for (String value : reservedInstancesOfferingIds) {
             getReservedInstancesOfferingIds().add(value);
         }
         return this;
     }
    
    
One or more Reserved Instances offering IDs.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedInstancesOfferingIds One or more Reserved Instances offering IDs.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (reservedInstancesOfferingIds == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<StringreservedInstancesOfferingIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(reservedInstancesOfferingIds.size());
             reservedInstancesOfferingIdsCopy.addAll(reservedInstancesOfferingIds);
             this. = reservedInstancesOfferingIdsCopy;
         }
 
         return this;
     }

    
The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge

Returns:
The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.
See also:
InstanceType
 
     public String getInstanceType() {
         return ;
     }
    
    
The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge

Parameters:
instanceType The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.
See also:
InstanceType
 
     public void setInstanceType(String instanceType) {
         this. = instanceType;
     }
    
    
The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge

Parameters:
instanceType The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
InstanceType
 
         this. = instanceType;
         return this;
     }

    
The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge

Parameters:
instanceType The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.
See also:
InstanceType
 
     public void setInstanceType(InstanceType instanceType) {
         this. = instanceType.toString();
     }
    
    
The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, 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, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge

Parameters:
instanceType The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide for Linux.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
InstanceType
 
         this. = instanceType.toString();
         return this;
     }

    
The Availability Zone in which the Reserved Instance can be used.

Returns:
The Availability Zone in which the Reserved Instance can be used.
 
     public String getAvailabilityZone() {
         return ;
     }
    
    
The Availability Zone in which the Reserved Instance can be used.

Parameters:
availabilityZone The Availability Zone in which the Reserved Instance can be used.
 
     public void setAvailabilityZone(String availabilityZone) {
         this. = availabilityZone;
     }
    
    
The Availability Zone in which the Reserved Instance can be used.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone The Availability Zone in which the Reserved Instance can be used.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = availabilityZone;
         return this;
     }

    
The Reserved Instance 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)

Returns:
The Reserved Instance description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.
See also:
RIProductDescription
 
     public String getProductDescription() {
         return ;
     }
    
    
The Reserved Instance 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)

Parameters:
productDescription The Reserved Instance description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.
See also:
RIProductDescription
 
     public void setProductDescription(String productDescription) {
         this. = productDescription;
     }
    
    
The Reserved Instance description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Parameters:
productDescription The Reserved Instance description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RIProductDescription
 
         this. = productDescription;
         return this;
     }

    
The Reserved Instance 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)

Parameters:
productDescription The Reserved Instance description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.
See also:
RIProductDescription
 
     public void setProductDescription(RIProductDescription productDescription) {
         this. = productDescription.toString();
     }
    
    
The Reserved Instance description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Parameters:
productDescription The Reserved Instance description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RIProductDescription
 
         this. = productDescription.toString();
         return this;
     }

    
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 on which the Reserved Instance can be used.

  • 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 AWS and Reserved Instance Marketplace are listed.

  • product-description - The description of the Reserved Instance (Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows | Windows (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).

Returns:
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 on which the Reserved Instance can be used.

  • 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 AWS and Reserved Instance Marketplace are listed.

  • product-description - The description of the Reserved Instance (Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows | Windows (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.List<FiltergetFilters() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<Filter>();
               .setAutoConstruct(true);
         }
         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 on which the Reserved Instance can be used.

  • 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 AWS and Reserved Instance Marketplace are listed.

  • product-description - The description of the Reserved Instance (Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows | Windows (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).

Parameters:
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 on which the Reserved Instance can be used.

  • 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 AWS and Reserved Instance Marketplace are listed.

  • product-description - The description of the Reserved Instance (Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows | Windows (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.Collection<Filterfilters) {
         if (filters == null) {
             this. = null;
             return;
         }
         filtersCopy.addAll(filters);
         this. = filtersCopy;
     }
    
    
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 on which the Reserved Instance can be used.

  • 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 AWS and Reserved Instance Marketplace are listed.

  • product-description - The description of the Reserved Instance (Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows | Windows (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).

NOTE: This method appends the values to the existing list (if any). Use setFilters(java.util.Collection) or withFilters(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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 on which the Reserved Instance can be used.

  • 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 AWS and Reserved Instance Marketplace are listed.

  • product-description - The description of the Reserved Instance (Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows | Windows (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).

Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (getFilters() == nullsetFilters(new java.util.ArrayList<Filter>(filters.length));
         for (Filter value : filters) {
             getFilters().add(value);
         }
         return this;
     }
    
    
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 on which the Reserved Instance can be used.

  • 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 AWS and Reserved Instance Marketplace are listed.

  • product-description - The description of the Reserved Instance (Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows | Windows (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).

Returns a reference to this object so that method calls can be chained together.

Parameters:
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 on which the Reserved Instance can be used.

  • 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 AWS and Reserved Instance Marketplace are listed.

  • product-description - The description of the Reserved Instance (Linux/UNIX | Linux/UNIX (Amazon VPC) | Windows | Windows (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).

Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (filters == null) {
             this. = null;
         } else {
             filtersCopy.addAll(filters);
             this. = filtersCopy;
         }
 
         return this;
     }

    
The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

Constraints:
Allowed Values: default, dedicated

Returns:
The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

See also:
Tenancy
 
     public String getInstanceTenancy() {
         return ;
     }
    
    
The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

See also:
Tenancy
 
     public void setInstanceTenancy(String instanceTenancy) {
         this. = instanceTenancy;
     }
    
    
The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
Tenancy
 
         this. = instanceTenancy;
         return this;
     }

    
The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

See also:
Tenancy
 
     public void setInstanceTenancy(Tenancy instanceTenancy) {
         this. = instanceTenancy.toString();
     }
    
    
The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.

Default: default

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
Tenancy
 
         this. = 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.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront

Returns:
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 also:
OfferingTypeValues
 
     public String getOfferingType() {
         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.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront

Parameters:
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 also:
OfferingTypeValues
 
     public void setOfferingType(String offeringType) {
         this. = 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
OfferingTypeValues
 
         this. = 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.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront

Parameters:
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 also:
OfferingTypeValues
 
     public void setOfferingType(OfferingTypeValues offeringType) {
         this. = 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
OfferingTypeValues
 
         this. = offeringType.toString();
         return this;
     }

    
The token to retrieve the next page of results.

Returns:
The token to retrieve the next page of results.
 
     public String getNextToken() {
         return ;
     }
    
    
The token to retrieve the next page of results.

Parameters:
nextToken The token to retrieve the next page of results.
 
     public void setNextToken(String nextToken) {
         this. = nextToken;
     }
    
    
The token to retrieve the next page of results.

Returns a reference to this object so that method calls can be chained together.

Parameters:
nextToken The token to retrieve the next page of results.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = 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 NextToken value. The maximum is 100.

Default: 100

Returns:
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

 
     public Integer getMaxResults() {
         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 NextToken value. The maximum is 100.

Default: 100

Parameters:
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 NextToken value. The maximum is 100.

Default: 100

 
     public void setMaxResults(Integer maxResults) {
         this. = 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 NextToken value. The maximum is 100.

Default: 100

Returns a reference to this object so that method calls can be chained together.

Parameters:
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 NextToken value. The maximum is 100.

Default: 100

Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = maxResults;
         return this;
     }

    
Include Marketplace offerings in the response.

Returns:
Include Marketplace offerings in the response.
 
     public Boolean isIncludeMarketplace() {
         return ;
     }
    
    
Include Marketplace offerings in the response.

Parameters:
includeMarketplace Include Marketplace offerings in the response.
    public void setIncludeMarketplace(Boolean includeMarketplace) {
        this. = includeMarketplace;
    }
    
    
Include Marketplace offerings in the response.

Returns a reference to this object so that method calls can be chained together.

Parameters:
includeMarketplace Include Marketplace offerings in the response.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = includeMarketplace;
        return this;
    }

    
Include Marketplace offerings in the response.

Returns:
Include Marketplace offerings in the response.
    public Boolean getIncludeMarketplace() {
        return ;
    }

    
The minimum duration (in seconds) to filter when searching for offerings.

Default: 2592000 (1 month)

Returns:
The minimum duration (in seconds) to filter when searching for offerings.

Default: 2592000 (1 month)

    public Long getMinDuration() {
        return ;
    }
    
    
The minimum duration (in seconds) to filter when searching for offerings.

Default: 2592000 (1 month)

Parameters:
minDuration The minimum duration (in seconds) to filter when searching for offerings.

Default: 2592000 (1 month)

    public void setMinDuration(Long minDuration) {
        this. = 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.

Parameters:
minDuration The minimum duration (in seconds) to filter when searching for offerings.

Default: 2592000 (1 month)

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = minDuration;
        return this;
    }

    
The maximum duration (in seconds) to filter when searching for offerings.

Default: 94608000 (3 years)

Returns:
The maximum duration (in seconds) to filter when searching for offerings.

Default: 94608000 (3 years)

    public Long getMaxDuration() {
        return ;
    }
    
    
The maximum duration (in seconds) to filter when searching for offerings.

Default: 94608000 (3 years)

Parameters:
maxDuration The maximum duration (in seconds) to filter when searching for offerings.

Default: 94608000 (3 years)

    public void setMaxDuration(Long maxDuration) {
        this. = 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.

Parameters:
maxDuration The maximum duration (in seconds) to filter when searching for offerings.

Default: 94608000 (3 years)

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = maxDuration;
        return this;
    }

    
The maximum number of instances to filter when searching for offerings.

Default: 20

Returns:
The maximum number of instances to filter when searching for offerings.

Default: 20

    public Integer getMaxInstanceCount() {
        return ;
    }
    
    
The maximum number of instances to filter when searching for offerings.

Default: 20

Parameters:
maxInstanceCount The maximum number of instances to filter when searching for offerings.

Default: 20

    public void setMaxInstanceCount(Integer maxInstanceCount) {
        this. = 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.

Parameters:
maxInstanceCount The maximum number of instances to filter when searching for offerings.

Default: 20

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = 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
        request.addParameter("DryRun", Boolean.toString(true));
        return request;
    }
    
    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getReservedInstancesOfferingIds() != nullsb.append("ReservedInstancesOfferingIds: " + getReservedInstancesOfferingIds() + ",");
        if (getInstanceType() != nullsb.append("InstanceType: " + getInstanceType() + ",");
        if (getAvailabilityZone() != nullsb.append("AvailabilityZone: " + getAvailabilityZone() + ",");
        if (getProductDescription() != nullsb.append("ProductDescription: " + getProductDescription() + ",");
        if (getFilters() != nullsb.append("Filters: " + getFilters() + ",");
        if (getInstanceTenancy() != nullsb.append("InstanceTenancy: " + getInstanceTenancy() + ",");
        if (getOfferingType() != nullsb.append("OfferingType: " + getOfferingType() + ",");
        if (getNextToken() != nullsb.append("NextToken: " + getNextToken() + ",");
        if (getMaxResults() != nullsb.append("MaxResults: " + getMaxResults() + ",");
        if (isIncludeMarketplace() != nullsb.append("IncludeMarketplace: " + isIncludeMarketplace() + ",");
        if (getMinDuration() != nullsb.append("MinDuration: " + getMinDuration() + ",");
        if (getMaxDuration() != nullsb.append("MaxDuration: " + getMaxDuration() + ",");
        if (getMaxInstanceCount() != nullsb.append("MaxInstanceCount: " + getMaxInstanceCount() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getReservedInstancesOfferingIds() == null) ? 0 : getReservedInstancesOfferingIds().hashCode()); 
        hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); 
        hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); 
        hashCode = prime * hashCode + ((getProductDescription() == null) ? 0 : getProductDescription().hashCode()); 
        hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); 
        hashCode = prime * hashCode + ((getInstanceTenancy() == null) ? 0 : getInstanceTenancy().hashCode()); 
        hashCode = prime * hashCode + ((getOfferingType() == null) ? 0 : getOfferingType().hashCode()); 
        hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); 
        hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); 
        hashCode = prime * hashCode + ((isIncludeMarketplace() == null) ? 0 : isIncludeMarketplace().hashCode()); 
        hashCode = prime * hashCode + ((getMinDuration() == null) ? 0 : getMinDuration().hashCode()); 
        hashCode = prime * hashCode + ((getMaxDuration() == null) ? 0 : getMaxDuration().hashCode()); 
        hashCode = prime * hashCode + ((getMaxInstanceCount() == null) ? 0 : getMaxInstanceCount().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeReservedInstancesOfferingsRequest == falsereturn false;
        
        if (other.getReservedInstancesOfferingIds() == null ^ this.getReservedInstancesOfferingIds() == nullreturn false;
        if (other.getReservedInstancesOfferingIds() != null && other.getReservedInstancesOfferingIds().equals(this.getReservedInstancesOfferingIds()) == falsereturn false
        if (other.getInstanceType() == null ^ this.getInstanceType() == nullreturn false;
        if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == falsereturn false
        if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == nullreturn false;
        if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == falsereturn false
        if (other.getProductDescription() == null ^ this.getProductDescription() == nullreturn false;
        if (other.getProductDescription() != null && other.getProductDescription().equals(this.getProductDescription()) == falsereturn false
        if (other.getFilters() == null ^ this.getFilters() == nullreturn false;
        if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == falsereturn false
        if (other.getInstanceTenancy() == null ^ this.getInstanceTenancy() == nullreturn false;
        if (other.getInstanceTenancy() != null && other.getInstanceTenancy().equals(this.getInstanceTenancy()) == falsereturn false
        if (other.getOfferingType() == null ^ this.getOfferingType() == nullreturn false;
        if (other.getOfferingType() != null && other.getOfferingType().equals(this.getOfferingType()) == falsereturn false
        if (other.getNextToken() == null ^ this.getNextToken() == nullreturn false;
        if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == falsereturn false
        if (other.getMaxResults() == null ^ this.getMaxResults() == nullreturn false;
        if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == falsereturn false
        if (other.isIncludeMarketplace() == null ^ this.isIncludeMarketplace() == nullreturn false;
        if (other.isIncludeMarketplace() != null && other.isIncludeMarketplace().equals(this.isIncludeMarketplace()) == falsereturn false
        if (other.getMinDuration() == null ^ this.getMinDuration() == nullreturn false;
        if (other.getMinDuration() != null && other.getMinDuration().equals(this.getMinDuration()) == falsereturn false
        if (other.getMaxDuration() == null ^ this.getMaxDuration() == nullreturn false;
        if (other.getMaxDuration() != null && other.getMaxDuration().equals(this.getMaxDuration()) == falsereturn false
        if (other.getMaxInstanceCount() == null ^ this.getMaxInstanceCount() == nullreturn false;
        if (other.getMaxInstanceCount() != null && other.getMaxInstanceCount().equals(this.getMaxInstanceCount()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (DescribeReservedInstancesOfferingsRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X