/** * 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 EC2 { namespace Model { /** *

Contains the parameters for DescribeReservedInstancesListings.

See * Also:

AWS * API Reference

*/ class DescribeReservedInstancesListingsRequest : public EC2Request { public: AWS_EC2_API DescribeReservedInstancesListingsRequest(); // 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 "DescribeReservedInstancesListings"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

One or more filters.

  • reserved-instances-id - * The ID of the Reserved Instances.

  • * reserved-instances-listing-id - The ID of the Reserved Instances * listing.

  • status - The status of the Reserved * Instance listing (pending | active | * cancelled | closed).

  • * status-message - The reason for the status.

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

One or more filters.

  • reserved-instances-id - * The ID of the Reserved Instances.

  • * reserved-instances-listing-id - The ID of the Reserved Instances * listing.

  • status - The status of the Reserved * Instance listing (pending | active | * cancelled | closed).

  • * status-message - The reason for the status.

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

One or more filters.

  • reserved-instances-id - * The ID of the Reserved Instances.

  • * reserved-instances-listing-id - The ID of the Reserved Instances * listing.

  • status - The status of the Reserved * Instance listing (pending | active | * cancelled | closed).

  • * status-message - The reason for the status.

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

One or more filters.

  • reserved-instances-id - * The ID of the Reserved Instances.

  • * reserved-instances-listing-id - The ID of the Reserved Instances * listing.

  • status - The status of the Reserved * Instance listing (pending | active | * cancelled | closed).

  • * status-message - The reason for the status.

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

One or more filters.

  • reserved-instances-id - * The ID of the Reserved Instances.

  • * reserved-instances-listing-id - The ID of the Reserved Instances * listing.

  • status - The status of the Reserved * Instance listing (pending | active | * cancelled | closed).

  • * status-message - The reason for the status.

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

One or more filters.

  • reserved-instances-id - * The ID of the Reserved Instances.

  • * reserved-instances-listing-id - The ID of the Reserved Instances * listing.

  • status - The status of the Reserved * Instance listing (pending | active | * cancelled | closed).

  • * status-message - The reason for the status.

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

One or more filters.

  • reserved-instances-id - * The ID of the Reserved Instances.

  • * reserved-instances-listing-id - The ID of the Reserved Instances * listing.

  • status - The status of the Reserved * Instance listing (pending | active | * cancelled | closed).

  • * status-message - The reason for the status.

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

One or more filters.

  • reserved-instances-id - * The ID of the Reserved Instances.

  • * reserved-instances-listing-id - The ID of the Reserved Instances * listing.

  • status - The status of the Reserved * Instance listing (pending | active | * cancelled | closed).

  • * status-message - The reason for the status.

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

One or more Reserved Instance IDs.

*/ inline const Aws::String& GetReservedInstancesId() const{ return m_reservedInstancesId; } /** *

One or more Reserved Instance IDs.

*/ inline bool ReservedInstancesIdHasBeenSet() const { return m_reservedInstancesIdHasBeenSet; } /** *

One or more Reserved Instance IDs.

*/ inline void SetReservedInstancesId(const Aws::String& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = value; } /** *

One or more Reserved Instance IDs.

*/ inline void SetReservedInstancesId(Aws::String&& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = std::move(value); } /** *

One or more Reserved Instance IDs.

*/ inline void SetReservedInstancesId(const char* value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId.assign(value); } /** *

One or more Reserved Instance IDs.

*/ inline DescribeReservedInstancesListingsRequest& WithReservedInstancesId(const Aws::String& value) { SetReservedInstancesId(value); return *this;} /** *

One or more Reserved Instance IDs.

*/ inline DescribeReservedInstancesListingsRequest& WithReservedInstancesId(Aws::String&& value) { SetReservedInstancesId(std::move(value)); return *this;} /** *

One or more Reserved Instance IDs.

*/ inline DescribeReservedInstancesListingsRequest& WithReservedInstancesId(const char* value) { SetReservedInstancesId(value); return *this;} /** *

One or more Reserved Instance listing IDs.

*/ inline const Aws::String& GetReservedInstancesListingId() const{ return m_reservedInstancesListingId; } /** *

One or more Reserved Instance listing IDs.

*/ inline bool ReservedInstancesListingIdHasBeenSet() const { return m_reservedInstancesListingIdHasBeenSet; } /** *

One or more Reserved Instance listing IDs.

*/ inline void SetReservedInstancesListingId(const Aws::String& value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId = value; } /** *

One or more Reserved Instance listing IDs.

*/ inline void SetReservedInstancesListingId(Aws::String&& value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId = std::move(value); } /** *

One or more Reserved Instance listing IDs.

*/ inline void SetReservedInstancesListingId(const char* value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId.assign(value); } /** *

One or more Reserved Instance listing IDs.

*/ inline DescribeReservedInstancesListingsRequest& WithReservedInstancesListingId(const Aws::String& value) { SetReservedInstancesListingId(value); return *this;} /** *

One or more Reserved Instance listing IDs.

*/ inline DescribeReservedInstancesListingsRequest& WithReservedInstancesListingId(Aws::String&& value) { SetReservedInstancesListingId(std::move(value)); return *this;} /** *

One or more Reserved Instance listing IDs.

*/ inline DescribeReservedInstancesListingsRequest& WithReservedInstancesListingId(const char* value) { SetReservedInstancesListingId(value); return *this;} private: Aws::Vector m_filters; bool m_filtersHasBeenSet = false; Aws::String m_reservedInstancesId; bool m_reservedInstancesIdHasBeenSet = false; Aws::String m_reservedInstancesListingId; bool m_reservedInstancesListingIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws