7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/model/UsageLimitBreachAction.h>
9#include <aws/redshift-serverless/model/UsageLimitPeriod.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/redshift-serverless/model/UsageLimitUsageType.h>
24namespace RedshiftServerless
49 inline long long GetAmount()
const{
return m_amount; }
51 inline void SetAmount(
long long value) { m_amountHasBeenSet =
true; m_amount = value; }
90 inline void SetResourceArn(
const char* value) { m_resourceArnHasBeenSet =
true; m_resourceArn.assign(value); }
105 inline void SetUsageLimitArn(
const char* value) { m_usageLimitArnHasBeenSet =
true; m_usageLimitArn.assign(value); }
119 inline void SetUsageLimitId(
const char* value) { m_usageLimitIdHasBeenSet =
true; m_usageLimitId.assign(value); }
139 bool m_amountHasBeenSet =
false;
142 bool m_breachActionHasBeenSet =
false;
145 bool m_periodHasBeenSet =
false;
148 bool m_resourceArnHasBeenSet =
false;
151 bool m_usageLimitArnHasBeenSet =
false;
154 bool m_usageLimitIdHasBeenSet =
false;
157 bool m_usageTypeHasBeenSet =
false;
UsageLimit & WithUsageType(const UsageLimitUsageType &value)
long long GetAmount() const
void SetUsageType(UsageLimitUsageType &&value)
UsageLimit & WithPeriod(UsageLimitPeriod &&value)
UsageLimit & WithBreachAction(UsageLimitBreachAction &&value)
const UsageLimitBreachAction & GetBreachAction() const
UsageLimit & WithUsageType(UsageLimitUsageType &&value)
UsageLimit & WithResourceArn(const char *value)
void SetPeriod(const UsageLimitPeriod &value)
const Aws::String & GetResourceArn() const
AWS_REDSHIFTSERVERLESS_API UsageLimit()
const Aws::String & GetUsageLimitArn() const
void SetBreachAction(const UsageLimitBreachAction &value)
void SetAmount(long long value)
void SetUsageLimitArn(const char *value)
bool UsageLimitArnHasBeenSet() const
const Aws::String & GetUsageLimitId() const
UsageLimit & WithUsageLimitArn(Aws::String &&value)
void SetUsageLimitArn(Aws::String &&value)
void SetUsageLimitArn(const Aws::String &value)
const UsageLimitUsageType & GetUsageType() const
UsageLimit & WithUsageLimitId(const Aws::String &value)
bool PeriodHasBeenSet() const
void SetResourceArn(Aws::String &&value)
bool UsageLimitIdHasBeenSet() const
UsageLimit & WithBreachAction(const UsageLimitBreachAction &value)
void SetResourceArn(const Aws::String &value)
UsageLimit & WithUsageLimitId(Aws::String &&value)
void SetResourceArn(const char *value)
void SetUsageLimitId(const Aws::String &value)
void SetPeriod(UsageLimitPeriod &&value)
bool BreachActionHasBeenSet() const
bool AmountHasBeenSet() const
void SetUsageLimitId(const char *value)
UsageLimit & WithUsageLimitId(const char *value)
UsageLimit & WithResourceArn(const Aws::String &value)
UsageLimit & WithUsageLimitArn(const char *value)
void SetUsageType(const UsageLimitUsageType &value)
UsageLimit & WithAmount(long long value)
UsageLimit & WithPeriod(const UsageLimitPeriod &value)
bool ResourceArnHasBeenSet() const
UsageLimit & WithUsageLimitArn(const Aws::String &value)
UsageLimit & WithResourceArn(Aws::String &&value)
const UsageLimitPeriod & GetPeriod() const
void SetBreachAction(UsageLimitBreachAction &&value)
AWS_REDSHIFTSERVERLESS_API UsageLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUsageLimitId(Aws::String &&value)
AWS_REDSHIFTSERVERLESS_API UsageLimit(Aws::Utils::Json::JsonView jsonValue)
bool UsageTypeHasBeenSet() const
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue