/** * 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 CreateReservedInstancesListing.

See * Also:

AWS * API Reference

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

Unique, case-sensitive identifier you provide to ensure idempotency of your * listings. This helps avoid duplicate listings. For more information, see Ensuring * Idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of your * listings. This helps avoid duplicate listings. For more information, see Ensuring * Idempotency.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of your * listings. This helps avoid duplicate listings. For more information, see Ensuring * Idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of your * listings. This helps avoid duplicate listings. For more information, see Ensuring * Idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of your * listings. This helps avoid duplicate listings. For more information, see Ensuring * Idempotency.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of your * listings. This helps avoid duplicate listings. For more information, see Ensuring * Idempotency.

*/ inline CreateReservedInstancesListingRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure idempotency of your * listings. This helps avoid duplicate listings. For more information, see Ensuring * Idempotency.

*/ inline CreateReservedInstancesListingRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure idempotency of your * listings. This helps avoid duplicate listings. For more information, see Ensuring * Idempotency.

*/ inline CreateReservedInstancesListingRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The number of instances that are a part of a Reserved Instance account to be * listed in the Reserved Instance Marketplace. This number should be less than or * equal to the instance count associated with the Reserved Instance ID specified * in this call.

*/ inline int GetInstanceCount() const{ return m_instanceCount; } /** *

The number of instances that are a part of a Reserved Instance account to be * listed in the Reserved Instance Marketplace. This number should be less than or * equal to the instance count associated with the Reserved Instance ID specified * in this call.

*/ inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; } /** *

The number of instances that are a part of a Reserved Instance account to be * listed in the Reserved Instance Marketplace. This number should be less than or * equal to the instance count associated with the Reserved Instance ID specified * in this call.

*/ inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; } /** *

The number of instances that are a part of a Reserved Instance account to be * listed in the Reserved Instance Marketplace. This number should be less than or * equal to the instance count associated with the Reserved Instance ID specified * in this call.

*/ inline CreateReservedInstancesListingRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} /** *

A list specifying the price of the Standard Reserved Instance for each month * remaining in the Reserved Instance term.

*/ inline const Aws::Vector& GetPriceSchedules() const{ return m_priceSchedules; } /** *

A list specifying the price of the Standard Reserved Instance for each month * remaining in the Reserved Instance term.

*/ inline bool PriceSchedulesHasBeenSet() const { return m_priceSchedulesHasBeenSet; } /** *

A list specifying the price of the Standard Reserved Instance for each month * remaining in the Reserved Instance term.

*/ inline void SetPriceSchedules(const Aws::Vector& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules = value; } /** *

A list specifying the price of the Standard Reserved Instance for each month * remaining in the Reserved Instance term.

*/ inline void SetPriceSchedules(Aws::Vector&& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules = std::move(value); } /** *

A list specifying the price of the Standard Reserved Instance for each month * remaining in the Reserved Instance term.

*/ inline CreateReservedInstancesListingRequest& WithPriceSchedules(const Aws::Vector& value) { SetPriceSchedules(value); return *this;} /** *

A list specifying the price of the Standard Reserved Instance for each month * remaining in the Reserved Instance term.

*/ inline CreateReservedInstancesListingRequest& WithPriceSchedules(Aws::Vector&& value) { SetPriceSchedules(std::move(value)); return *this;} /** *

A list specifying the price of the Standard Reserved Instance for each month * remaining in the Reserved Instance term.

*/ inline CreateReservedInstancesListingRequest& AddPriceSchedules(const PriceScheduleSpecification& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules.push_back(value); return *this; } /** *

A list specifying the price of the Standard Reserved Instance for each month * remaining in the Reserved Instance term.

*/ inline CreateReservedInstancesListingRequest& AddPriceSchedules(PriceScheduleSpecification&& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules.push_back(std::move(value)); return *this; } /** *

The ID of the active Standard Reserved Instance.

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

The ID of the active Standard Reserved Instance.

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

The ID of the active Standard Reserved Instance.

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

The ID of the active Standard Reserved Instance.

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

The ID of the active Standard Reserved Instance.

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

The ID of the active Standard Reserved Instance.

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

The ID of the active Standard Reserved Instance.

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

The ID of the active Standard Reserved Instance.

*/ inline CreateReservedInstancesListingRequest& WithReservedInstancesId(const char* value) { SetReservedInstancesId(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; int m_instanceCount; bool m_instanceCountHasBeenSet = false; Aws::Vector m_priceSchedules; bool m_priceSchedulesHasBeenSet = false; Aws::String m_reservedInstancesId; bool m_reservedInstancesIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws