AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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