AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateUsageLimitRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/redshift-serverless/model/UsageLimitBreachAction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RedshiftServerless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFTSERVERLESS_API UpdateUsageLimitRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateUsageLimit"; }
32
33 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
45 inline long long GetAmount() const{ return m_amount; }
46 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
47 inline void SetAmount(long long value) { m_amountHasBeenSet = true; m_amount = value; }
48 inline UpdateUsageLimitRequest& WithAmount(long long value) { SetAmount(value); return *this;}
50
52
56 inline const UsageLimitBreachAction& GetBreachAction() const{ return m_breachAction; }
57 inline bool BreachActionHasBeenSet() const { return m_breachActionHasBeenSet; }
58 inline void SetBreachAction(const UsageLimitBreachAction& value) { m_breachActionHasBeenSet = true; m_breachAction = value; }
59 inline void SetBreachAction(UsageLimitBreachAction&& value) { m_breachActionHasBeenSet = true; m_breachAction = std::move(value); }
61 inline UpdateUsageLimitRequest& WithBreachAction(UsageLimitBreachAction&& value) { SetBreachAction(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetUsageLimitId() const{ return m_usageLimitId; }
69 inline bool UsageLimitIdHasBeenSet() const { return m_usageLimitIdHasBeenSet; }
70 inline void SetUsageLimitId(const Aws::String& value) { m_usageLimitIdHasBeenSet = true; m_usageLimitId = value; }
71 inline void SetUsageLimitId(Aws::String&& value) { m_usageLimitIdHasBeenSet = true; m_usageLimitId = std::move(value); }
72 inline void SetUsageLimitId(const char* value) { m_usageLimitIdHasBeenSet = true; m_usageLimitId.assign(value); }
73 inline UpdateUsageLimitRequest& WithUsageLimitId(const Aws::String& value) { SetUsageLimitId(value); return *this;}
74 inline UpdateUsageLimitRequest& WithUsageLimitId(Aws::String&& value) { SetUsageLimitId(std::move(value)); return *this;}
75 inline UpdateUsageLimitRequest& WithUsageLimitId(const char* value) { SetUsageLimitId(value); return *this;}
77 private:
78
79 long long m_amount;
80 bool m_amountHasBeenSet = false;
81
82 UsageLimitBreachAction m_breachAction;
83 bool m_breachActionHasBeenSet = false;
84
85 Aws::String m_usageLimitId;
86 bool m_usageLimitIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace RedshiftServerless
91} // namespace Aws
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateUsageLimitRequest & WithBreachAction(const UsageLimitBreachAction &value)
UpdateUsageLimitRequest & WithBreachAction(UsageLimitBreachAction &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
UpdateUsageLimitRequest & WithUsageLimitId(Aws::String &&value)
UpdateUsageLimitRequest & WithAmount(long long value)
UpdateUsageLimitRequest & WithUsageLimitId(const char *value)
UpdateUsageLimitRequest & WithUsageLimitId(const Aws::String &value)
void SetBreachAction(const UsageLimitBreachAction &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String