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

See Also:

* AWS * API Reference

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

The IDs of the Reserved Instances to modify.

*/ inline const Aws::Vector& GetReservedInstancesIds() const{ return m_reservedInstancesIds; } /** *

The IDs of the Reserved Instances to modify.

*/ inline bool ReservedInstancesIdsHasBeenSet() const { return m_reservedInstancesIdsHasBeenSet; } /** *

The IDs of the Reserved Instances to modify.

*/ inline void SetReservedInstancesIds(const Aws::Vector& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = value; } /** *

The IDs of the Reserved Instances to modify.

*/ inline void SetReservedInstancesIds(Aws::Vector&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = std::move(value); } /** *

The IDs of the Reserved Instances to modify.

*/ inline ModifyReservedInstancesRequest& WithReservedInstancesIds(const Aws::Vector& value) { SetReservedInstancesIds(value); return *this;} /** *

The IDs of the Reserved Instances to modify.

*/ inline ModifyReservedInstancesRequest& WithReservedInstancesIds(Aws::Vector&& value) { SetReservedInstancesIds(std::move(value)); return *this;} /** *

The IDs of the Reserved Instances to modify.

*/ inline ModifyReservedInstancesRequest& AddReservedInstancesIds(const Aws::String& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; } /** *

The IDs of the Reserved Instances to modify.

*/ inline ModifyReservedInstancesRequest& AddReservedInstancesIds(Aws::String&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(std::move(value)); return *this; } /** *

The IDs of the Reserved Instances to modify.

*/ inline ModifyReservedInstancesRequest& AddReservedInstancesIds(const char* value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; } /** *

A unique, case-sensitive token you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

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

A unique, case-sensitive token you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

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

A unique, case-sensitive token you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

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

A unique, case-sensitive token you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

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

A unique, case-sensitive token you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

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

A unique, case-sensitive token you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

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

A unique, case-sensitive token you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

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

A unique, case-sensitive token you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

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

The configuration settings for the Reserved Instances to modify.

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

The configuration settings for the Reserved Instances to modify.

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

The configuration settings for the Reserved Instances to modify.

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

The configuration settings for the Reserved Instances to modify.

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

The configuration settings for the Reserved Instances to modify.

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

The configuration settings for the Reserved Instances to modify.

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

The configuration settings for the Reserved Instances to modify.

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

The configuration settings for the Reserved Instances to modify.

*/ inline ModifyReservedInstancesRequest& AddTargetConfigurations(ReservedInstancesConfiguration&& value) { m_targetConfigurationsHasBeenSet = true; m_targetConfigurations.push_back(std::move(value)); return *this; } private: Aws::Vector m_reservedInstancesIds; bool m_reservedInstancesIdsHasBeenSet; Aws::String m_clientToken; bool m_clientTokenHasBeenSet; Aws::Vector m_targetConfigurations; bool m_targetConfigurationsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws