/** * 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 { /** *

See Also:

AWS * API Reference

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

The unique identifier of the reserved node offering you want to purchase.

*/ inline const Aws::String& GetReservedNodeOfferingId() const{ return m_reservedNodeOfferingId; } /** *

The unique identifier of the reserved node offering you want to purchase.

*/ inline bool ReservedNodeOfferingIdHasBeenSet() const { return m_reservedNodeOfferingIdHasBeenSet; } /** *

The unique identifier of the reserved node offering you want to purchase.

*/ inline void SetReservedNodeOfferingId(const Aws::String& value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId = value; } /** *

The unique identifier of the reserved node offering you want to purchase.

*/ inline void SetReservedNodeOfferingId(Aws::String&& value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId = std::move(value); } /** *

The unique identifier of the reserved node offering you want to purchase.

*/ inline void SetReservedNodeOfferingId(const char* value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId.assign(value); } /** *

The unique identifier of the reserved node offering you want to purchase.

*/ inline PurchaseReservedNodeOfferingRequest& WithReservedNodeOfferingId(const Aws::String& value) { SetReservedNodeOfferingId(value); return *this;} /** *

The unique identifier of the reserved node offering you want to purchase.

*/ inline PurchaseReservedNodeOfferingRequest& WithReservedNodeOfferingId(Aws::String&& value) { SetReservedNodeOfferingId(std::move(value)); return *this;} /** *

The unique identifier of the reserved node offering you want to purchase.

*/ inline PurchaseReservedNodeOfferingRequest& WithReservedNodeOfferingId(const char* value) { SetReservedNodeOfferingId(value); return *this;} /** *

The number of reserved nodes that you want to purchase.

Default: * 1

*/ inline int GetNodeCount() const{ return m_nodeCount; } /** *

The number of reserved nodes that you want to purchase.

Default: * 1

*/ inline bool NodeCountHasBeenSet() const { return m_nodeCountHasBeenSet; } /** *

The number of reserved nodes that you want to purchase.

Default: * 1

*/ inline void SetNodeCount(int value) { m_nodeCountHasBeenSet = true; m_nodeCount = value; } /** *

The number of reserved nodes that you want to purchase.

Default: * 1

*/ inline PurchaseReservedNodeOfferingRequest& WithNodeCount(int value) { SetNodeCount(value); return *this;} private: Aws::String m_reservedNodeOfferingId; bool m_reservedNodeOfferingIdHasBeenSet = false; int m_nodeCount; bool m_nodeCountHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws