/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** *

Contains the parameters for DescribeReservedInstancesOfferings.

See * Also:

AWS * API Reference

*/ class DescribeReservedInstancesOfferingsRequest : public EC2Request { public: AWS_EC2_API DescribeReservedInstancesOfferingsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeReservedInstancesOfferings"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

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

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

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

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

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

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

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

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

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

*/ inline DescribeReservedInstancesOfferingsRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

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

*/ inline DescribeReservedInstancesOfferingsRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

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

*/ inline DescribeReservedInstancesOfferingsRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(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 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 * Amazon Web Services and the Reserved Instance Marketplace are listed.

  • *
  • product-description - The Reserved Instance product * platform description (Linux/UNIX | Linux with SQL Server * Standard | Linux with SQL Server Web | Linux with SQL * Server Enterprise | SUSE Linux | Red Hat Enterprise * Linux | Red Hat Enterprise Linux with HA | * Windows | Windows with SQL Server Standard | * Windows with SQL Server Web | Windows with SQL Server * Enterprise).

  • * reserved-instances-offering-id - The Reserved Instances offering * ID.

  • scope - The scope of the Reserved Instance * (Availability Zone or Region).

  • * usage-price - The usage price of the Reserved Instance, per hour * (for example, 0.84).

*/ inline const Aws::Vector& GetFilters() const{ return m_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 * Amazon Web Services and the Reserved Instance Marketplace are listed.

  • *
  • product-description - The Reserved Instance product * platform description (Linux/UNIX | Linux with SQL Server * Standard | Linux with SQL Server Web | Linux with SQL * Server Enterprise | SUSE Linux | Red Hat Enterprise * Linux | Red Hat Enterprise Linux with HA | * Windows | Windows with SQL Server Standard | * Windows with SQL Server Web | Windows with SQL Server * Enterprise).

  • * reserved-instances-offering-id - The Reserved Instances offering * ID.

  • scope - The scope of the Reserved Instance * (Availability Zone or Region).

  • * usage-price - The usage price of the Reserved Instance, per hour * (for example, 0.84).

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

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 * Amazon Web Services and the Reserved Instance Marketplace are listed.

  • *
  • product-description - The Reserved Instance product * platform description (Linux/UNIX | Linux with SQL Server * Standard | Linux with SQL Server Web | Linux with SQL * Server Enterprise | SUSE Linux | Red Hat Enterprise * Linux | Red Hat Enterprise Linux with HA | * Windows | Windows with SQL Server Standard | * Windows with SQL Server Web | Windows with SQL Server * Enterprise).

  • * reserved-instances-offering-id - The Reserved Instances offering * ID.

  • scope - The scope of the Reserved Instance * (Availability Zone or Region).

  • * usage-price - The usage price of the Reserved Instance, per hour * (for example, 0.84).

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

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 * Amazon Web Services and the Reserved Instance Marketplace are listed.

  • *
  • product-description - The Reserved Instance product * platform description (Linux/UNIX | Linux with SQL Server * Standard | Linux with SQL Server Web | Linux with SQL * Server Enterprise | SUSE Linux | Red Hat Enterprise * Linux | Red Hat Enterprise Linux with HA | * Windows | Windows with SQL Server Standard | * Windows with SQL Server Web | Windows with SQL Server * Enterprise).

  • * reserved-instances-offering-id - The Reserved Instances offering * ID.

  • scope - The scope of the Reserved Instance * (Availability Zone or Region).

  • * usage-price - The usage price of the Reserved Instance, per hour * (for example, 0.84).

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

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 * Amazon Web Services and the Reserved Instance Marketplace are listed.

  • *
  • product-description - The Reserved Instance product * platform description (Linux/UNIX | Linux with SQL Server * Standard | Linux with SQL Server Web | Linux with SQL * Server Enterprise | SUSE Linux | Red Hat Enterprise * Linux | Red Hat Enterprise Linux with HA | * Windows | Windows with SQL Server Standard | * Windows with SQL Server Web | Windows with SQL Server * Enterprise).

  • * reserved-instances-offering-id - The Reserved Instances offering * ID.

  • scope - The scope of the Reserved Instance * (Availability Zone or Region).

  • * usage-price - The usage price of the Reserved Instance, per hour * (for example, 0.84).

*/ inline DescribeReservedInstancesOfferingsRequest& WithFilters(const Aws::Vector& value) { SetFilters(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 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 * Amazon Web Services and the Reserved Instance Marketplace are listed.

  • *
  • product-description - The Reserved Instance product * platform description (Linux/UNIX | Linux with SQL Server * Standard | Linux with SQL Server Web | Linux with SQL * Server Enterprise | SUSE Linux | Red Hat Enterprise * Linux | Red Hat Enterprise Linux with HA | * Windows | Windows with SQL Server Standard | * Windows with SQL Server Web | Windows with SQL Server * Enterprise).

  • * reserved-instances-offering-id - The Reserved Instances offering * ID.

  • scope - The scope of the Reserved Instance * (Availability Zone or Region).

  • * usage-price - The usage price of the Reserved Instance, per hour * (for example, 0.84).

*/ inline DescribeReservedInstancesOfferingsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(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 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 * Amazon Web Services and the Reserved Instance Marketplace are listed.

  • *
  • product-description - The Reserved Instance product * platform description (Linux/UNIX | Linux with SQL Server * Standard | Linux with SQL Server Web | Linux with SQL * Server Enterprise | SUSE Linux | Red Hat Enterprise * Linux | Red Hat Enterprise Linux with HA | * Windows | Windows with SQL Server Standard | * Windows with SQL Server Web | Windows with SQL Server * Enterprise).

  • * reserved-instances-offering-id - The Reserved Instances offering * ID.

  • scope - The scope of the Reserved Instance * (Availability Zone or Region).

  • * usage-price - The usage price of the Reserved Instance, per hour * (for example, 0.84).

*/ inline DescribeReservedInstancesOfferingsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(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 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 * Amazon Web Services and the Reserved Instance Marketplace are listed.

  • *
  • product-description - The Reserved Instance product * platform description (Linux/UNIX | Linux with SQL Server * Standard | Linux with SQL Server Web | Linux with SQL * Server Enterprise | SUSE Linux | Red Hat Enterprise * Linux | Red Hat Enterprise Linux with HA | * Windows | Windows with SQL Server Standard | * Windows with SQL Server Web | Windows with SQL Server * Enterprise).

  • * reserved-instances-offering-id - The Reserved Instances offering * ID.

  • scope - The scope of the Reserved Instance * (Availability Zone or Region).

  • * usage-price - The usage price of the Reserved Instance, per hour * (for example, 0.84).

*/ inline DescribeReservedInstancesOfferingsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

Include Reserved Instance Marketplace offerings in the response.

*/ inline bool GetIncludeMarketplace() const{ return m_includeMarketplace; } /** *

Include Reserved Instance Marketplace offerings in the response.

*/ inline bool IncludeMarketplaceHasBeenSet() const { return m_includeMarketplaceHasBeenSet; } /** *

Include Reserved Instance Marketplace offerings in the response.

*/ inline void SetIncludeMarketplace(bool value) { m_includeMarketplaceHasBeenSet = true; m_includeMarketplace = value; } /** *

Include Reserved Instance Marketplace offerings in the response.

*/ inline DescribeReservedInstancesOfferingsRequest& WithIncludeMarketplace(bool value) { SetIncludeMarketplace(value); return *this;} /** *

The instance type that the reservation will cover (for example, * m1.small). For more information, see Instance * types in the Amazon EC2 User Guide.

*/ inline const InstanceType& GetInstanceType() const{ return m_instanceType; } /** *

The instance type that the reservation will cover (for example, * m1.small). For more information, see Instance * types in the Amazon EC2 User Guide.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type that the reservation will cover (for example, * m1.small). For more information, see Instance * types in the Amazon EC2 User Guide.

*/ inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type that the reservation will cover (for example, * m1.small). For more information, see Instance * types in the Amazon EC2 User Guide.

*/ inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type that the reservation will cover (for example, * m1.small). For more information, see Instance * types in the Amazon EC2 User Guide.

*/ inline DescribeReservedInstancesOfferingsRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *

The instance type that the reservation will cover (for example, * m1.small). For more information, see Instance * types in the Amazon EC2 User Guide.

*/ inline DescribeReservedInstancesOfferingsRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *

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

*

Default: 94608000 (3 years)

*/ inline long long GetMaxDuration() const{ return m_maxDuration; } /** *

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

*

Default: 94608000 (3 years)

*/ inline bool MaxDurationHasBeenSet() const { return m_maxDurationHasBeenSet; } /** *

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

*

Default: 94608000 (3 years)

*/ inline void SetMaxDuration(long long value) { m_maxDurationHasBeenSet = true; m_maxDuration = value; } /** *

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

*

Default: 94608000 (3 years)

*/ inline DescribeReservedInstancesOfferingsRequest& WithMaxDuration(long long value) { SetMaxDuration(value); return *this;} /** *

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

*

Default: 20

*/ inline int GetMaxInstanceCount() const{ return m_maxInstanceCount; } /** *

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

*

Default: 20

*/ inline bool MaxInstanceCountHasBeenSet() const { return m_maxInstanceCountHasBeenSet; } /** *

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

*

Default: 20

*/ inline void SetMaxInstanceCount(int value) { m_maxInstanceCountHasBeenSet = true; m_maxInstanceCount = value; } /** *

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

*

Default: 20

*/ inline DescribeReservedInstancesOfferingsRequest& WithMaxInstanceCount(int value) { SetMaxInstanceCount(value); return *this;} /** *

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

*

Default: 2592000 (1 month)

*/ inline long long GetMinDuration() const{ return m_minDuration; } /** *

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

*

Default: 2592000 (1 month)

*/ inline bool MinDurationHasBeenSet() const { return m_minDurationHasBeenSet; } /** *

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

*

Default: 2592000 (1 month)

*/ inline void SetMinDuration(long long value) { m_minDurationHasBeenSet = true; m_minDuration = value; } /** *

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

*

Default: 2592000 (1 month)

*/ inline DescribeReservedInstancesOfferingsRequest& WithMinDuration(long long value) { SetMinDuration(value); return *this;} /** *

The offering class of the Reserved Instance. Can be standard or * convertible.

*/ inline const OfferingClassType& GetOfferingClass() const{ return m_offeringClass; } /** *

The offering class of the Reserved Instance. Can be standard or * convertible.

*/ inline bool OfferingClassHasBeenSet() const { return m_offeringClassHasBeenSet; } /** *

The offering class of the Reserved Instance. Can be standard or * convertible.

*/ inline void SetOfferingClass(const OfferingClassType& value) { m_offeringClassHasBeenSet = true; m_offeringClass = value; } /** *

The offering class of the Reserved Instance. Can be standard or * convertible.

*/ inline void SetOfferingClass(OfferingClassType&& value) { m_offeringClassHasBeenSet = true; m_offeringClass = std::move(value); } /** *

The offering class of the Reserved Instance. Can be standard or * convertible.

*/ inline DescribeReservedInstancesOfferingsRequest& WithOfferingClass(const OfferingClassType& value) { SetOfferingClass(value); return *this;} /** *

The offering class of the Reserved Instance. Can be standard or * convertible.

*/ inline DescribeReservedInstancesOfferingsRequest& WithOfferingClass(OfferingClassType&& value) { SetOfferingClass(std::move(value)); return *this;} /** *

The Reserved Instance product platform description. Instances that include * (Amazon VPC) in the description are for use with Amazon VPC.

*/ inline const RIProductDescription& GetProductDescription() const{ return m_productDescription; } /** *

The Reserved Instance product platform description. Instances that include * (Amazon VPC) in the description are for use with Amazon VPC.

*/ inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; } /** *

The Reserved Instance product platform description. Instances that include * (Amazon VPC) in the description are for use with Amazon VPC.

*/ inline void SetProductDescription(const RIProductDescription& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; } /** *

The Reserved Instance product platform description. Instances that include * (Amazon VPC) in the description are for use with Amazon VPC.

*/ inline void SetProductDescription(RIProductDescription&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); } /** *

The Reserved Instance product platform description. Instances that include * (Amazon VPC) in the description are for use with Amazon VPC.

*/ inline DescribeReservedInstancesOfferingsRequest& WithProductDescription(const RIProductDescription& value) { SetProductDescription(value); return *this;} /** *

The Reserved Instance product platform description. Instances that include * (Amazon VPC) in the description are for use with Amazon VPC.

*/ inline DescribeReservedInstancesOfferingsRequest& WithProductDescription(RIProductDescription&& value) { SetProductDescription(std::move(value)); return *this;} /** *

One or more Reserved Instances offering IDs.

*/ inline const Aws::Vector& GetReservedInstancesOfferingIds() const{ return m_reservedInstancesOfferingIds; } /** *

One or more Reserved Instances offering IDs.

*/ inline bool ReservedInstancesOfferingIdsHasBeenSet() const { return m_reservedInstancesOfferingIdsHasBeenSet; } /** *

One or more Reserved Instances offering IDs.

*/ inline void SetReservedInstancesOfferingIds(const Aws::Vector& value) { m_reservedInstancesOfferingIdsHasBeenSet = true; m_reservedInstancesOfferingIds = value; } /** *

One or more Reserved Instances offering IDs.

*/ inline void SetReservedInstancesOfferingIds(Aws::Vector&& value) { m_reservedInstancesOfferingIdsHasBeenSet = true; m_reservedInstancesOfferingIds = std::move(value); } /** *

One or more Reserved Instances offering IDs.

*/ inline DescribeReservedInstancesOfferingsRequest& WithReservedInstancesOfferingIds(const Aws::Vector& value) { SetReservedInstancesOfferingIds(value); return *this;} /** *

One or more Reserved Instances offering IDs.

*/ inline DescribeReservedInstancesOfferingsRequest& WithReservedInstancesOfferingIds(Aws::Vector&& value) { SetReservedInstancesOfferingIds(std::move(value)); return *this;} /** *

One or more Reserved Instances offering IDs.

*/ inline DescribeReservedInstancesOfferingsRequest& AddReservedInstancesOfferingIds(const Aws::String& value) { m_reservedInstancesOfferingIdsHasBeenSet = true; m_reservedInstancesOfferingIds.push_back(value); return *this; } /** *

One or more Reserved Instances offering IDs.

*/ inline DescribeReservedInstancesOfferingsRequest& AddReservedInstancesOfferingIds(Aws::String&& value) { m_reservedInstancesOfferingIdsHasBeenSet = true; m_reservedInstancesOfferingIds.push_back(std::move(value)); return *this; } /** *

One or more Reserved Instances offering IDs.

*/ inline DescribeReservedInstancesOfferingsRequest& AddReservedInstancesOfferingIds(const char* value) { m_reservedInstancesOfferingIdsHasBeenSet = true; m_reservedInstancesOfferingIds.push_back(value); return *this; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline DescribeReservedInstancesOfferingsRequest& WithDryRun(bool value) { SetDryRun(value); 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).

* Important: The host value cannot be used with this * parameter. Use the default or dedicated values * only.

Default: default

*/ inline const Tenancy& GetInstanceTenancy() const{ return m_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).

* Important: The host value cannot be used with this * parameter. Use the default or dedicated values * only.

Default: default

*/ inline bool InstanceTenancyHasBeenSet() const { return m_instanceTenancyHasBeenSet; } /** *

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

* Important: The host value cannot be used with this * parameter. Use the default or dedicated values * only.

Default: default

*/ inline void SetInstanceTenancy(const Tenancy& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = value; } /** *

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

* Important: The host value cannot be used with this * parameter. Use the default or dedicated values * only.

Default: default

*/ inline void SetInstanceTenancy(Tenancy&& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = std::move(value); } /** *

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

* Important: The host value cannot be used with this * parameter. Use the default or dedicated values * only.

Default: default

*/ inline DescribeReservedInstancesOfferingsRequest& WithInstanceTenancy(const Tenancy& value) { SetInstanceTenancy(value); 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).

* Important: The host value cannot be used with this * parameter. Use the default or dedicated values * only.

Default: default

*/ inline DescribeReservedInstancesOfferingsRequest& WithInstanceTenancy(Tenancy&& value) { SetInstanceTenancy(std::move(value)); 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

*/ inline int GetMaxResults() const{ return m_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

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

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

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

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

*/ inline DescribeReservedInstancesOfferingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token to retrieve the next page of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to retrieve the next page of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token to retrieve the next page of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token to retrieve the next page of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token to retrieve the next page of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token to retrieve the next page of results.

*/ inline DescribeReservedInstancesOfferingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to retrieve the next page of results.

*/ inline DescribeReservedInstancesOfferingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to retrieve the next page of results.

*/ inline DescribeReservedInstancesOfferingsRequest& WithNextToken(const char* value) { SetNextToken(value); 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.

*/ inline const OfferingTypeValues& GetOfferingType() const{ return m_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.

*/ inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; } /** *

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.

*/ inline void SetOfferingType(const OfferingTypeValues& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; } /** *

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.

*/ inline void SetOfferingType(OfferingTypeValues&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); } /** *

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.

*/ inline DescribeReservedInstancesOfferingsRequest& WithOfferingType(const OfferingTypeValues& value) { SetOfferingType(value); 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.

*/ inline DescribeReservedInstancesOfferingsRequest& WithOfferingType(OfferingTypeValues&& value) { SetOfferingType(std::move(value)); return *this;} private: Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; bool m_includeMarketplace; bool m_includeMarketplaceHasBeenSet = false; InstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; long long m_maxDuration; bool m_maxDurationHasBeenSet = false; int m_maxInstanceCount; bool m_maxInstanceCountHasBeenSet = false; long long m_minDuration; bool m_minDurationHasBeenSet = false; OfferingClassType m_offeringClass; bool m_offeringClassHasBeenSet = false; RIProductDescription m_productDescription; bool m_productDescriptionHasBeenSet = false; Aws::Vector m_reservedInstancesOfferingIds; bool m_reservedInstancesOfferingIdsHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; Tenancy m_instanceTenancy; bool m_instanceTenancyHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; OfferingTypeValues m_offeringType; bool m_offeringTypeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws