AWS SDK for C++  1.9.129
AWS SDK for C++
CreateRuleGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WAFRegional
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateRuleGroup"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
73  inline CreateRuleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
79  inline CreateRuleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
85  inline CreateRuleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
86 
87 
96  inline const Aws::String& GetMetricName() const{ return m_metricName; }
97 
106  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
107 
116  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
117 
126  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
127 
136  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
137 
146  inline CreateRuleGroupRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
147 
156  inline CreateRuleGroupRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
157 
166  inline CreateRuleGroupRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
167 
168 
172  inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
173 
177  inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
178 
182  inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
183 
187  inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
188 
192  inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
193 
197  inline CreateRuleGroupRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
198 
202  inline CreateRuleGroupRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
203 
207  inline CreateRuleGroupRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
208 
209 
213  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
214 
218  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 
223  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
224 
228  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
229 
233  inline CreateRuleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
234 
238  inline CreateRuleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
239 
243  inline CreateRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
244 
248  inline CreateRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
249 
250  private:
251 
252  Aws::String m_name;
253  bool m_nameHasBeenSet;
254 
255  Aws::String m_metricName;
256  bool m_metricNameHasBeenSet;
257 
258  Aws::String m_changeToken;
259  bool m_changeTokenHasBeenSet;
260 
261  Aws::Vector<Tag> m_tags;
262  bool m_tagsHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace WAFRegional
267 } // namespace Aws
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:126
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithTags
CreateRuleGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateRuleGroupRequest.h:233
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithName
CreateRuleGroupRequest & WithName(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:73
Aws::WAFRegional::Model::CreateRuleGroupRequest::GetChangeToken
const Aws::String & GetChangeToken() const
Definition: CreateRuleGroupRequest.h:172
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFRegional::Model::CreateRuleGroupRequest::CreateRuleGroupRequest
CreateRuleGroupRequest()
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithName
CreateRuleGroupRequest & WithName(const char *value)
Definition: CreateRuleGroupRequest.h:85
Aws::WAFRegional::WAFRegionalRequest
Definition: WAFRegionalRequest.h:17
Tag.h
Aws::WAFRegional::Model::CreateRuleGroupRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: CreateRuleGroupRequest.h:106
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithChangeToken
CreateRuleGroupRequest & WithChangeToken(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:197
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFRegional::Model::CreateRuleGroupRequest::ChangeTokenHasBeenSet
bool ChangeTokenHasBeenSet() const
Definition: CreateRuleGroupRequest.h:177
AWS_WAFREGIONAL_API
#define AWS_WAFREGIONAL_API
Definition: WAFRegional_EXPORTS.h:28
WAFRegionalRequest.h
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:116
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithTags
CreateRuleGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateRuleGroupRequest.h:238
AWSVector.h
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithMetricName
CreateRuleGroupRequest & WithMetricName(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:146
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithChangeToken
CreateRuleGroupRequest & WithChangeToken(const char *value)
Definition: CreateRuleGroupRequest.h:207
Aws::WAFRegional::Model::CreateRuleGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFRegional::Model::CreateRuleGroupRequest::GetName
const Aws::String & GetName() const
Definition: CreateRuleGroupRequest.h:43
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetMetricName
void SetMetricName(const char *value)
Definition: CreateRuleGroupRequest.h:136
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithMetricName
CreateRuleGroupRequest & WithMetricName(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:156
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithChangeToken
CreateRuleGroupRequest & WithChangeToken(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:202
Aws::WAFRegional::Model::CreateRuleGroupRequest::AddTags
CreateRuleGroupRequest & AddTags(Tag &&value)
Definition: CreateRuleGroupRequest.h:248
Aws::WAFRegional::Model::CreateRuleGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateRuleGroupRequest.h:213
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithName
CreateRuleGroupRequest & WithName(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:79
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateRuleGroupRequest.h:228
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:61
AWSString.h
Aws::WAFRegional::Model::CreateRuleGroupRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateRuleGroupRequest.h:49
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetChangeToken
void SetChangeToken(const char *value)
Definition: CreateRuleGroupRequest.h:192
Aws::WAFRegional::Model::CreateRuleGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFRegional::Model::CreateRuleGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRuleGroupRequest.h:218
Aws::WAFRegional::Model::Tag
Definition: Tag.h:47
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetName
void SetName(const char *value)
Definition: CreateRuleGroupRequest.h:67
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetChangeToken
void SetChangeToken(Aws::String &&value)
Definition: CreateRuleGroupRequest.h:187
Aws
Definition: AccessManagementClient.h:15
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetChangeToken
void SetChangeToken(const Aws::String &value)
Definition: CreateRuleGroupRequest.h:182
Aws::WAFRegional::Model::CreateRuleGroupRequest::AddTags
CreateRuleGroupRequest & AddTags(const Tag &value)
Definition: CreateRuleGroupRequest.h:243
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFRegional::Model::CreateRuleGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateRuleGroupRequest.h:223
Aws::WAFRegional::Model::CreateRuleGroupRequest::WithMetricName
CreateRuleGroupRequest & WithMetricName(const char *value)
Definition: CreateRuleGroupRequest.h:166
Aws::WAFRegional::Model::CreateRuleGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRuleGroupRequest.h:32
Aws::WAFRegional::Model::CreateRuleGroupRequest::GetMetricName
const Aws::String & GetMetricName() const
Definition: CreateRuleGroupRequest.h:96
Aws::WAFRegional::Model::CreateRuleGroupRequest
Definition: CreateRuleGroupRequest.h:24