AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRuleGroupRequest.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/WAFRegionalRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/waf-regional/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAFRegional
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAFREGIONAL_API CreateRuleGroupRequest();
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_WAFREGIONAL_API Aws::String SerializePayload() const override;
35
36 AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateRuleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateRuleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateRuleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
63 inline const Aws::String& GetMetricName() const{ return m_metricName; }
64 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
65 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
66 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
67 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
68 inline CreateRuleGroupRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
69 inline CreateRuleGroupRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
70 inline CreateRuleGroupRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
72
74
77 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
78 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
79 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
80 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
81 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
82 inline CreateRuleGroupRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
83 inline CreateRuleGroupRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
84 inline CreateRuleGroupRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
86
88
91 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline CreateRuleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline CreateRuleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline CreateRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline CreateRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 Aws::String m_metricName;
106 bool m_metricNameHasBeenSet = false;
107
108 Aws::String m_changeToken;
109 bool m_changeTokenHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace WAFRegional
117} // namespace Aws
CreateRuleGroupRequest & AddTags(Tag &&value)
CreateRuleGroupRequest & WithName(const char *value)
CreateRuleGroupRequest & WithChangeToken(const char *value)
AWS_WAFREGIONAL_API Aws::String SerializePayload() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateRuleGroupRequest & WithChangeToken(Aws::String &&value)
CreateRuleGroupRequest & WithName(Aws::String &&value)
CreateRuleGroupRequest & AddTags(const Tag &value)
AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRuleGroupRequest & WithName(const Aws::String &value)
CreateRuleGroupRequest & WithMetricName(const Aws::String &value)
CreateRuleGroupRequest & WithMetricName(const char *value)
CreateRuleGroupRequest & WithMetricName(Aws::String &&value)
CreateRuleGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRuleGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRuleGroupRequest & WithChangeToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector