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

See * Also:

AWS * API Reference

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

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 GetReservedInstancesExchangeQuoteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The IDs of the Convertible Reserved Instances to exchange.

*/ inline const Aws::Vector& GetReservedInstanceIds() const{ return m_reservedInstanceIds; } /** *

The IDs of the Convertible Reserved Instances to exchange.

*/ inline bool ReservedInstanceIdsHasBeenSet() const { return m_reservedInstanceIdsHasBeenSet; } /** *

The IDs of the Convertible Reserved Instances to exchange.

*/ inline void SetReservedInstanceIds(const Aws::Vector& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds = value; } /** *

The IDs of the Convertible Reserved Instances to exchange.

*/ inline void SetReservedInstanceIds(Aws::Vector&& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds = std::move(value); } /** *

The IDs of the Convertible Reserved Instances to exchange.

*/ inline GetReservedInstancesExchangeQuoteRequest& WithReservedInstanceIds(const Aws::Vector& value) { SetReservedInstanceIds(value); return *this;} /** *

The IDs of the Convertible Reserved Instances to exchange.

*/ inline GetReservedInstancesExchangeQuoteRequest& WithReservedInstanceIds(Aws::Vector&& value) { SetReservedInstanceIds(std::move(value)); return *this;} /** *

The IDs of the Convertible Reserved Instances to exchange.

*/ inline GetReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(const Aws::String& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(value); return *this; } /** *

The IDs of the Convertible Reserved Instances to exchange.

*/ inline GetReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(Aws::String&& value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(std::move(value)); return *this; } /** *

The IDs of the Convertible Reserved Instances to exchange.

*/ inline GetReservedInstancesExchangeQuoteRequest& AddReservedInstanceIds(const char* value) { m_reservedInstanceIdsHasBeenSet = true; m_reservedInstanceIds.push_back(value); return *this; } /** *

The configuration of the target Convertible Reserved Instance to exchange for * your current Convertible Reserved Instances.

*/ inline const Aws::Vector& GetTargetConfigurations() const{ return m_targetConfigurations; } /** *

The configuration of the target Convertible Reserved Instance to exchange for * your current Convertible Reserved Instances.

*/ inline bool TargetConfigurationsHasBeenSet() const { return m_targetConfigurationsHasBeenSet; } /** *

The configuration of the target Convertible Reserved Instance to exchange for * your current Convertible Reserved Instances.

*/ inline void SetTargetConfigurations(const Aws::Vector& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = value; } /** *

The configuration of the target Convertible Reserved Instance to exchange for * your current Convertible Reserved Instances.

*/ inline void SetTargetConfigurations(Aws::Vector&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations = std::move(value); } /** *

The configuration of the target Convertible Reserved Instance to exchange for * your current Convertible Reserved Instances.

*/ inline GetReservedInstancesExchangeQuoteRequest& WithTargetConfigurations(const Aws::Vector& value) { SetTargetConfigurations(value); return *this;} /** *

The configuration of the target Convertible Reserved Instance to exchange for * your current Convertible Reserved Instances.

*/ inline GetReservedInstancesExchangeQuoteRequest& WithTargetConfigurations(Aws::Vector&& value) { SetTargetConfigurations(std::move(value)); return *this;} /** *

The configuration of the target Convertible Reserved Instance to exchange for * your current Convertible Reserved Instances.

*/ inline GetReservedInstancesExchangeQuoteRequest& AddTargetConfigurations(const TargetConfigurationRequest& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(value); return *this; } /** *

The configuration of the target Convertible Reserved Instance to exchange for * your current Convertible Reserved Instances.

*/ inline GetReservedInstancesExchangeQuoteRequest& AddTargetConfigurations(TargetConfigurationRequest&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(std::move(value)); return *this; } private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::Vector m_reservedInstanceIds; bool m_reservedInstanceIdsHasBeenSet = false; Aws::Vector m_targetConfigurations; bool m_targetConfigurationsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws