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/ModifyUsageLimitRequest.h

157 lines
5.4 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 <aws/redshift/model/UsageLimitBreachAction.h>
#include <utility>
namespace Aws
{
namespace Redshift
{
namespace Model
{
/**
*/
class AWS_REDSHIFT_API ModifyUsageLimitRequest : public RedshiftRequest
{
public:
ModifyUsageLimitRequest();
// 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 "ModifyUsageLimit"; }
Aws::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>The identifier of the usage limit to modify.</p>
*/
inline const Aws::String& GetUsageLimitId() const{ return m_usageLimitId; }
/**
* <p>The identifier of the usage limit to modify.</p>
*/
inline bool UsageLimitIdHasBeenSet() const { return m_usageLimitIdHasBeenSet; }
/**
* <p>The identifier of the usage limit to modify.</p>
*/
inline void SetUsageLimitId(const Aws::String& value) { m_usageLimitIdHasBeenSet = true; m_usageLimitId = value; }
/**
* <p>The identifier of the usage limit to modify.</p>
*/
inline void SetUsageLimitId(Aws::String&& value) { m_usageLimitIdHasBeenSet = true; m_usageLimitId = std::move(value); }
/**
* <p>The identifier of the usage limit to modify.</p>
*/
inline void SetUsageLimitId(const char* value) { m_usageLimitIdHasBeenSet = true; m_usageLimitId.assign(value); }
/**
* <p>The identifier of the usage limit to modify.</p>
*/
inline ModifyUsageLimitRequest& WithUsageLimitId(const Aws::String& value) { SetUsageLimitId(value); return *this;}
/**
* <p>The identifier of the usage limit to modify.</p>
*/
inline ModifyUsageLimitRequest& WithUsageLimitId(Aws::String&& value) { SetUsageLimitId(std::move(value)); return *this;}
/**
* <p>The identifier of the usage limit to modify.</p>
*/
inline ModifyUsageLimitRequest& WithUsageLimitId(const char* value) { SetUsageLimitId(value); return *this;}
/**
* <p>The new limit amount. For more information about this parameter, see
* <a>UsageLimit</a>. </p>
*/
inline long long GetAmount() const{ return m_amount; }
/**
* <p>The new limit amount. For more information about this parameter, see
* <a>UsageLimit</a>. </p>
*/
inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
/**
* <p>The new limit amount. For more information about this parameter, see
* <a>UsageLimit</a>. </p>
*/
inline void SetAmount(long long value) { m_amountHasBeenSet = true; m_amount = value; }
/**
* <p>The new limit amount. For more information about this parameter, see
* <a>UsageLimit</a>. </p>
*/
inline ModifyUsageLimitRequest& WithAmount(long long value) { SetAmount(value); return *this;}
/**
* <p>The new action that Amazon Redshift takes when the limit is reached. For more
* information about this parameter, see <a>UsageLimit</a>. </p>
*/
inline const UsageLimitBreachAction& GetBreachAction() const{ return m_breachAction; }
/**
* <p>The new action that Amazon Redshift takes when the limit is reached. For more
* information about this parameter, see <a>UsageLimit</a>. </p>
*/
inline bool BreachActionHasBeenSet() const { return m_breachActionHasBeenSet; }
/**
* <p>The new action that Amazon Redshift takes when the limit is reached. For more
* information about this parameter, see <a>UsageLimit</a>. </p>
*/
inline void SetBreachAction(const UsageLimitBreachAction& value) { m_breachActionHasBeenSet = true; m_breachAction = value; }
/**
* <p>The new action that Amazon Redshift takes when the limit is reached. For more
* information about this parameter, see <a>UsageLimit</a>. </p>
*/
inline void SetBreachAction(UsageLimitBreachAction&& value) { m_breachActionHasBeenSet = true; m_breachAction = std::move(value); }
/**
* <p>The new action that Amazon Redshift takes when the limit is reached. For more
* information about this parameter, see <a>UsageLimit</a>. </p>
*/
inline ModifyUsageLimitRequest& WithBreachAction(const UsageLimitBreachAction& value) { SetBreachAction(value); return *this;}
/**
* <p>The new action that Amazon Redshift takes when the limit is reached. For more
* information about this parameter, see <a>UsageLimit</a>. </p>
*/
inline ModifyUsageLimitRequest& WithBreachAction(UsageLimitBreachAction&& value) { SetBreachAction(std::move(value)); return *this;}
private:
Aws::String m_usageLimitId;
bool m_usageLimitIdHasBeenSet;
long long m_amount;
bool m_amountHasBeenSet;
UsageLimitBreachAction m_breachAction;
bool m_breachActionHasBeenSet;
};
} // namespace Model
} // namespace Redshift
} // namespace Aws