/** * 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 Redshift { namespace Model { /** */ class AcceptReservedNodeExchangeRequest : public RedshiftRequest { public: AWS_REDSHIFT_API AcceptReservedNodeExchangeRequest(); // 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 "AcceptReservedNodeExchange"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

A string representing the node identifier of the DC1 Reserved Node to be * exchanged.

*/ inline const Aws::String& GetReservedNodeId() const{ return m_reservedNodeId; } /** *

A string representing the node identifier of the DC1 Reserved Node to be * exchanged.

*/ inline bool ReservedNodeIdHasBeenSet() const { return m_reservedNodeIdHasBeenSet; } /** *

A string representing the node identifier of the DC1 Reserved Node to be * exchanged.

*/ inline void SetReservedNodeId(const Aws::String& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = value; } /** *

A string representing the node identifier of the DC1 Reserved Node to be * exchanged.

*/ inline void SetReservedNodeId(Aws::String&& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = std::move(value); } /** *

A string representing the node identifier of the DC1 Reserved Node to be * exchanged.

*/ inline void SetReservedNodeId(const char* value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId.assign(value); } /** *

A string representing the node identifier of the DC1 Reserved Node to be * exchanged.

*/ inline AcceptReservedNodeExchangeRequest& WithReservedNodeId(const Aws::String& value) { SetReservedNodeId(value); return *this;} /** *

A string representing the node identifier of the DC1 Reserved Node to be * exchanged.

*/ inline AcceptReservedNodeExchangeRequest& WithReservedNodeId(Aws::String&& value) { SetReservedNodeId(std::move(value)); return *this;} /** *

A string representing the node identifier of the DC1 Reserved Node to be * exchanged.

*/ inline AcceptReservedNodeExchangeRequest& WithReservedNodeId(const char* value) { SetReservedNodeId(value); return *this;} /** *

The unique identifier of the DC2 Reserved Node offering to be used for the * exchange. You can obtain the value for the parameter by calling * GetReservedNodeExchangeOfferings

*/ inline const Aws::String& GetTargetReservedNodeOfferingId() const{ return m_targetReservedNodeOfferingId; } /** *

The unique identifier of the DC2 Reserved Node offering to be used for the * exchange. You can obtain the value for the parameter by calling * GetReservedNodeExchangeOfferings

*/ inline bool TargetReservedNodeOfferingIdHasBeenSet() const { return m_targetReservedNodeOfferingIdHasBeenSet; } /** *

The unique identifier of the DC2 Reserved Node offering to be used for the * exchange. You can obtain the value for the parameter by calling * GetReservedNodeExchangeOfferings

*/ inline void SetTargetReservedNodeOfferingId(const Aws::String& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = value; } /** *

The unique identifier of the DC2 Reserved Node offering to be used for the * exchange. You can obtain the value for the parameter by calling * GetReservedNodeExchangeOfferings

*/ inline void SetTargetReservedNodeOfferingId(Aws::String&& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = std::move(value); } /** *

The unique identifier of the DC2 Reserved Node offering to be used for the * exchange. You can obtain the value for the parameter by calling * GetReservedNodeExchangeOfferings

*/ inline void SetTargetReservedNodeOfferingId(const char* value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId.assign(value); } /** *

The unique identifier of the DC2 Reserved Node offering to be used for the * exchange. You can obtain the value for the parameter by calling * GetReservedNodeExchangeOfferings

*/ inline AcceptReservedNodeExchangeRequest& WithTargetReservedNodeOfferingId(const Aws::String& value) { SetTargetReservedNodeOfferingId(value); return *this;} /** *

The unique identifier of the DC2 Reserved Node offering to be used for the * exchange. You can obtain the value for the parameter by calling * GetReservedNodeExchangeOfferings

*/ inline AcceptReservedNodeExchangeRequest& WithTargetReservedNodeOfferingId(Aws::String&& value) { SetTargetReservedNodeOfferingId(std::move(value)); return *this;} /** *

The unique identifier of the DC2 Reserved Node offering to be used for the * exchange. You can obtain the value for the parameter by calling * GetReservedNodeExchangeOfferings

*/ inline AcceptReservedNodeExchangeRequest& WithTargetReservedNodeOfferingId(const char* value) { SetTargetReservedNodeOfferingId(value); return *this;} private: Aws::String m_reservedNodeId; bool m_reservedNodeIdHasBeenSet = false; Aws::String m_targetReservedNodeOfferingId; bool m_targetReservedNodeOfferingIdHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws