AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateUsageLimitRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/Tag.h>
12#include <aws/redshift/model/UsageLimitBreachAction.h>
13#include <aws/redshift/model/UsageLimitFeatureType.h>
14#include <aws/redshift/model/UsageLimitLimitType.h>
15#include <aws/redshift/model/UsageLimitPeriod.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Redshift {
21namespace Model {
22
26 public:
27 AWS_REDSHIFT_API CreateUsageLimitRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateUsageLimit"; }
34
35 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
45 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
46 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
47 template <typename ClusterIdentifierT = Aws::String>
48 void SetClusterIdentifier(ClusterIdentifierT&& value) {
49 m_clusterIdentifierHasBeenSet = true;
50 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
51 }
52 template <typename ClusterIdentifierT = Aws::String>
53 CreateUsageLimitRequest& WithClusterIdentifier(ClusterIdentifierT&& value) {
54 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
55 return *this;
56 }
58
60
63 inline UsageLimitFeatureType GetFeatureType() const { return m_featureType; }
64 inline bool FeatureTypeHasBeenSet() const { return m_featureTypeHasBeenSet; }
66 m_featureTypeHasBeenSet = true;
67 m_featureType = value;
68 }
70 SetFeatureType(value);
71 return *this;
72 }
74
76
87 inline UsageLimitLimitType GetLimitType() const { return m_limitType; }
88 inline bool LimitTypeHasBeenSet() const { return m_limitTypeHasBeenSet; }
89 inline void SetLimitType(UsageLimitLimitType value) {
90 m_limitTypeHasBeenSet = true;
91 m_limitType = value;
92 }
94 SetLimitType(value);
95 return *this;
96 }
98
100
104 inline long long GetAmount() const { return m_amount; }
105 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
106 inline void SetAmount(long long value) {
107 m_amountHasBeenSet = true;
108 m_amount = value;
109 }
110 inline CreateUsageLimitRequest& WithAmount(long long value) {
111 SetAmount(value);
112 return *this;
113 }
115
117
121 inline UsageLimitPeriod GetPeriod() const { return m_period; }
122 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
123 inline void SetPeriod(UsageLimitPeriod value) {
124 m_periodHasBeenSet = true;
125 m_period = value;
126 }
128 SetPeriod(value);
129 return *this;
130 }
132
134
138 inline UsageLimitBreachAction GetBreachAction() const { return m_breachAction; }
139 inline bool BreachActionHasBeenSet() const { return m_breachActionHasBeenSet; }
141 m_breachActionHasBeenSet = true;
142 m_breachAction = value;
143 }
145 SetBreachAction(value);
146 return *this;
147 }
149
151
154 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template <typename TagsT = Aws::Vector<Tag>>
157 void SetTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags = std::forward<TagsT>(value);
160 }
161 template <typename TagsT = Aws::Vector<Tag>>
163 SetTags(std::forward<TagsT>(value));
164 return *this;
165 }
166 template <typename TagsT = Tag>
168 m_tagsHasBeenSet = true;
169 m_tags.emplace_back(std::forward<TagsT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_clusterIdentifier;
175
177
179
180 long long m_amount{0};
181
183
185
186 Aws::Vector<Tag> m_tags;
187 bool m_clusterIdentifierHasBeenSet = false;
188 bool m_featureTypeHasBeenSet = false;
189 bool m_limitTypeHasBeenSet = false;
190 bool m_amountHasBeenSet = false;
191 bool m_periodHasBeenSet = false;
192 bool m_breachActionHasBeenSet = false;
193 bool m_tagsHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace Redshift
198} // namespace Aws
CreateUsageLimitRequest & WithBreachAction(UsageLimitBreachAction value)
CreateUsageLimitRequest & AddTags(TagsT &&value)
CreateUsageLimitRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
CreateUsageLimitRequest & WithLimitType(UsageLimitLimitType value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_REDSHIFT_API CreateUsageLimitRequest()=default
CreateUsageLimitRequest & WithPeriod(UsageLimitPeriod value)
CreateUsageLimitRequest & WithAmount(long long value)
virtual const char * GetServiceRequestName() const override
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateUsageLimitRequest & WithTags(TagsT &&value)
void SetClusterIdentifier(ClusterIdentifierT &&value)
CreateUsageLimitRequest & WithFeatureType(UsageLimitFeatureType value)
void SetBreachAction(UsageLimitBreachAction value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector