This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-redshift/include/aws/redshift/model/PurchaseReservedNodeOfferingRequest.h

119 lines
4.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/redshift/Redshift_EXPORTS.h>
#include <aws/redshift/RedshiftRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Redshift
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PurchaseReservedNodeOfferingMessage">AWS
* API Reference</a></p>
*/
class AWS_REDSHIFT_API PurchaseReservedNodeOfferingRequest : public RedshiftRequest
{
public:
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::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>The unique identifier of the reserved node offering you want to purchase.</p>
*/
inline const Aws::String& GetReservedNodeOfferingId() const{ return m_reservedNodeOfferingId; }
/**
* <p>The unique identifier of the reserved node offering you want to purchase.</p>
*/
inline bool ReservedNodeOfferingIdHasBeenSet() const { return m_reservedNodeOfferingIdHasBeenSet; }
/**
* <p>The unique identifier of the reserved node offering you want to purchase.</p>
*/
inline void SetReservedNodeOfferingId(const Aws::String& value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId = value; }
/**
* <p>The unique identifier of the reserved node offering you want to purchase.</p>
*/
inline void SetReservedNodeOfferingId(Aws::String&& value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId = std::move(value); }
/**
* <p>The unique identifier of the reserved node offering you want to purchase.</p>
*/
inline void SetReservedNodeOfferingId(const char* value) { m_reservedNodeOfferingIdHasBeenSet = true; m_reservedNodeOfferingId.assign(value); }
/**
* <p>The unique identifier of the reserved node offering you want to purchase.</p>
*/
inline PurchaseReservedNodeOfferingRequest& WithReservedNodeOfferingId(const Aws::String& value) { SetReservedNodeOfferingId(value); return *this;}
/**
* <p>The unique identifier of the reserved node offering you want to purchase.</p>
*/
inline PurchaseReservedNodeOfferingRequest& WithReservedNodeOfferingId(Aws::String&& value) { SetReservedNodeOfferingId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the reserved node offering you want to purchase.</p>
*/
inline PurchaseReservedNodeOfferingRequest& WithReservedNodeOfferingId(const char* value) { SetReservedNodeOfferingId(value); return *this;}
/**
* <p>The number of reserved nodes that you want to purchase.</p> <p>Default:
* <code>1</code> </p>
*/
inline int GetNodeCount() const{ return m_nodeCount; }
/**
* <p>The number of reserved nodes that you want to purchase.</p> <p>Default:
* <code>1</code> </p>
*/
inline bool NodeCountHasBeenSet() const { return m_nodeCountHasBeenSet; }
/**
* <p>The number of reserved nodes that you want to purchase.</p> <p>Default:
* <code>1</code> </p>
*/
inline void SetNodeCount(int value) { m_nodeCountHasBeenSet = true; m_nodeCount = value; }
/**
* <p>The number of reserved nodes that you want to purchase.</p> <p>Default:
* <code>1</code> </p>
*/
inline PurchaseReservedNodeOfferingRequest& WithNodeCount(int value) { SetNodeCount(value); return *this;}
private:
Aws::String m_reservedNodeOfferingId;
bool m_reservedNodeOfferingIdHasBeenSet;
int m_nodeCount;
bool m_nodeCountHasBeenSet;
};
} // namespace Model
} // namespace Redshift
} // namespace Aws