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

Contains the parameters for CancelReservedInstancesListing.

See * Also:

AWS * API Reference

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

The ID of the Reserved Instance listing.

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

The ID of the Reserved Instance listing.

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

The ID of the Reserved Instance listing.

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

The ID of the Reserved Instance listing.

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

The ID of the Reserved Instance listing.

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

The ID of the Reserved Instance listing.

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

The ID of the Reserved Instance listing.

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

The ID of the Reserved Instance listing.

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