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

See Also:

AWS * API Reference

*/ class DescribeReservedDBInstancesOfferingsRequest : public RDSRequest { public: AWS_RDS_API DescribeReservedDBInstancesOfferingsRequest(); // 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 "DescribeReservedDBInstancesOfferings"; } AWS_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The offering identifier filter value. Specify this parameter to show only the * available offering that matches the specified reservation identifier.

*

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline const Aws::String& GetReservedDBInstancesOfferingId() const{ return m_reservedDBInstancesOfferingId; } /** *

The offering identifier filter value. Specify this parameter to show only the * available offering that matches the specified reservation identifier.

*

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline bool ReservedDBInstancesOfferingIdHasBeenSet() const { return m_reservedDBInstancesOfferingIdHasBeenSet; } /** *

The offering identifier filter value. Specify this parameter to show only the * available offering that matches the specified reservation identifier.

*

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline void SetReservedDBInstancesOfferingId(const Aws::String& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = value; } /** *

The offering identifier filter value. Specify this parameter to show only the * available offering that matches the specified reservation identifier.

*

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline void SetReservedDBInstancesOfferingId(Aws::String&& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = std::move(value); } /** *

The offering identifier filter value. Specify this parameter to show only the * available offering that matches the specified reservation identifier.

*

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline void SetReservedDBInstancesOfferingId(const char* value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId.assign(value); } /** *

The offering identifier filter value. Specify this parameter to show only the * available offering that matches the specified reservation identifier.

*

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithReservedDBInstancesOfferingId(const Aws::String& value) { SetReservedDBInstancesOfferingId(value); return *this;} /** *

The offering identifier filter value. Specify this parameter to show only the * available offering that matches the specified reservation identifier.

*

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithReservedDBInstancesOfferingId(Aws::String&& value) { SetReservedDBInstancesOfferingId(std::move(value)); return *this;} /** *

The offering identifier filter value. Specify this parameter to show only the * available offering that matches the specified reservation identifier.

*

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithReservedDBInstancesOfferingId(const char* value) { SetReservedDBInstancesOfferingId(value); return *this;} /** *

The DB instance class filter value. Specify this parameter to show only the * available offerings matching the specified DB instance class.

*/ inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; } /** *

The DB instance class filter value. Specify this parameter to show only the * available offerings matching the specified DB instance class.

*/ inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; } /** *

The DB instance class filter value. Specify this parameter to show only the * available offerings matching the specified DB instance class.

*/ inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; } /** *

The DB instance class filter value. Specify this parameter to show only the * available offerings matching the specified DB instance class.

*/ inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); } /** *

The DB instance class filter value. Specify this parameter to show only the * available offerings matching the specified DB instance class.

*/ inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); } /** *

The DB instance class filter value. Specify this parameter to show only the * available offerings matching the specified DB instance class.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithDBInstanceClass(const Aws::String& value) { SetDBInstanceClass(value); return *this;} /** *

The DB instance class filter value. Specify this parameter to show only the * available offerings matching the specified DB instance class.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;} /** *

The DB instance class filter value. Specify this parameter to show only the * available offerings matching the specified DB instance class.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;} /** *

Duration filter value, specified in years or seconds. Specify this parameter * to show only reservations for this duration.

Valid Values: 1 | 3 | * 31536000 | 94608000

*/ inline const Aws::String& GetDuration() const{ return m_duration; } /** *

Duration filter value, specified in years or seconds. Specify this parameter * to show only reservations for this duration.

Valid Values: 1 | 3 | * 31536000 | 94608000

*/ inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } /** *

Duration filter value, specified in years or seconds. Specify this parameter * to show only reservations for this duration.

Valid Values: 1 | 3 | * 31536000 | 94608000

*/ inline void SetDuration(const Aws::String& value) { m_durationHasBeenSet = true; m_duration = value; } /** *

Duration filter value, specified in years or seconds. Specify this parameter * to show only reservations for this duration.

Valid Values: 1 | 3 | * 31536000 | 94608000

*/ inline void SetDuration(Aws::String&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); } /** *

Duration filter value, specified in years or seconds. Specify this parameter * to show only reservations for this duration.

Valid Values: 1 | 3 | * 31536000 | 94608000

*/ inline void SetDuration(const char* value) { m_durationHasBeenSet = true; m_duration.assign(value); } /** *

Duration filter value, specified in years or seconds. Specify this parameter * to show only reservations for this duration.

Valid Values: 1 | 3 | * 31536000 | 94608000

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithDuration(const Aws::String& value) { SetDuration(value); return *this;} /** *

Duration filter value, specified in years or seconds. Specify this parameter * to show only reservations for this duration.

Valid Values: 1 | 3 | * 31536000 | 94608000

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithDuration(Aws::String&& value) { SetDuration(std::move(value)); return *this;} /** *

Duration filter value, specified in years or seconds. Specify this parameter * to show only reservations for this duration.

Valid Values: 1 | 3 | * 31536000 | 94608000

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithDuration(const char* value) { SetDuration(value); return *this;} /** *

Product description filter value. Specify this parameter to show only the * available offerings that contain the specified product description.

*

The results show offerings that partially match the filter value.

*/ inline const Aws::String& GetProductDescription() const{ return m_productDescription; } /** *

Product description filter value. Specify this parameter to show only the * available offerings that contain the specified product description.

*

The results show offerings that partially match the filter value.

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

Product description filter value. Specify this parameter to show only the * available offerings that contain the specified product description.

*

The results show offerings that partially match the filter value.

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

Product description filter value. Specify this parameter to show only the * available offerings that contain the specified product description.

*

The results show offerings that partially match the filter value.

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

Product description filter value. Specify this parameter to show only the * available offerings that contain the specified product description.

*

The results show offerings that partially match the filter value.

*/ inline void SetProductDescription(const char* value) { m_productDescriptionHasBeenSet = true; m_productDescription.assign(value); } /** *

Product description filter value. Specify this parameter to show only the * available offerings that contain the specified product description.

*

The results show offerings that partially match the filter value.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithProductDescription(const Aws::String& value) { SetProductDescription(value); return *this;} /** *

Product description filter value. Specify this parameter to show only the * available offerings that contain the specified product description.

*

The results show offerings that partially match the filter value.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithProductDescription(Aws::String&& value) { SetProductDescription(std::move(value)); return *this;} /** *

Product description filter value. Specify this parameter to show only the * available offerings that contain the specified product description.

*

The results show offerings that partially match the filter value.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithProductDescription(const char* value) { SetProductDescription(value); return *this;} /** *

The offering type filter value. Specify this parameter to show only the * available offerings matching the specified offering type.

Valid Values: * "Partial Upfront" | "All Upfront" | "No Upfront"

*/ inline const Aws::String& GetOfferingType() const{ return m_offeringType; } /** *

The offering type filter value. Specify this parameter to show only the * available offerings matching the specified offering type.

Valid Values: * "Partial Upfront" | "All Upfront" | "No Upfront"

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

The offering type filter value. Specify this parameter to show only the * available offerings matching the specified offering type.

Valid Values: * "Partial Upfront" | "All Upfront" | "No Upfront"

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

The offering type filter value. Specify this parameter to show only the * available offerings matching the specified offering type.

Valid Values: * "Partial Upfront" | "All Upfront" | "No Upfront"

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

The offering type filter value. Specify this parameter to show only the * available offerings matching the specified offering type.

Valid Values: * "Partial Upfront" | "All Upfront" | "No Upfront"

*/ inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); } /** *

The offering type filter value. Specify this parameter to show only the * available offerings matching the specified offering type.

Valid Values: * "Partial Upfront" | "All Upfront" | "No Upfront"

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;} /** *

The offering type filter value. Specify this parameter to show only the * available offerings matching the specified offering type.

Valid Values: * "Partial Upfront" | "All Upfront" | "No Upfront"

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;} /** *

The offering type filter value. Specify this parameter to show only the * available offerings matching the specified offering type.

Valid Values: * "Partial Upfront" | "All Upfront" | "No Upfront"

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithOfferingType(const char* value) { SetOfferingType(value); return *this;} /** *

A value that indicates whether to show only those reservations that support * Multi-AZ.

*/ inline bool GetMultiAZ() const{ return m_multiAZ; } /** *

A value that indicates whether to show only those reservations that support * Multi-AZ.

*/ inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; } /** *

A value that indicates whether to show only those reservations that support * Multi-AZ.

*/ inline void SetMultiAZ(bool value) { m_multiAZHasBeenSet = true; m_multiAZ = value; } /** *

A value that indicates whether to show only those reservations that support * Multi-AZ.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithMultiAZ(bool value) { SetMultiAZ(value); return *this;} /** *

This parameter isn't currently supported.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

This parameter isn't currently supported.

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

This parameter isn't currently supported.

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

This parameter isn't currently supported.

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

This parameter isn't currently supported.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

This parameter isn't currently supported.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

This parameter isn't currently supported.

*/ inline DescribeReservedDBInstancesOfferingsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

This parameter isn't currently supported.

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

The maximum number of records to include in the response. If more than the * MaxRecords value is available, a pagination token called a marker * is included in the response so you can retrieve the remaining results.

*

Default: 100

Constraints: Minimum 20, maximum 100.

*/ inline int GetMaxRecords() const{ return m_maxRecords; } /** *

The maximum number of records to include in the response. If more than the * MaxRecords value is available, a pagination token called a marker * is included in the response so you can retrieve the remaining results.

*

Default: 100

Constraints: Minimum 20, maximum 100.

*/ inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; } /** *

The maximum number of records to include in the response. If more than the * MaxRecords value is available, a pagination token called a marker * is included in the response so you can retrieve the remaining results.

*

Default: 100

Constraints: Minimum 20, maximum 100.

*/ inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; } /** *

The maximum number of records to include in the response. If more than the * MaxRecords value is available, a pagination token called a marker * is included in the response so you can retrieve the remaining results.

*

Default: 100

Constraints: Minimum 20, maximum 100.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;} /** *

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the marker, up * to the value specified by MaxRecords.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the marker, up * to the value specified by MaxRecords.

*/ inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } /** *

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the marker, up * to the value specified by MaxRecords.

*/ inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } /** *

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the marker, up * to the value specified by MaxRecords.

*/ inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } /** *

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the marker, up * to the value specified by MaxRecords.

*/ inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } /** *

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the marker, up * to the value specified by MaxRecords.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the marker, up * to the value specified by MaxRecords.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the marker, up * to the value specified by MaxRecords.

*/ inline DescribeReservedDBInstancesOfferingsRequest& WithMarker(const char* value) { SetMarker(value); return *this;} private: Aws::String m_reservedDBInstancesOfferingId; bool m_reservedDBInstancesOfferingIdHasBeenSet = false; Aws::String m_dBInstanceClass; bool m_dBInstanceClassHasBeenSet = false; Aws::String m_duration; bool m_durationHasBeenSet = false; Aws::String m_productDescription; bool m_productDescriptionHasBeenSet = false; Aws::String m_offeringType; bool m_offeringTypeHasBeenSet = false; bool m_multiAZ; bool m_multiAZHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxRecords; bool m_maxRecordsHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws