AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CreateRuleGroupRequest.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/waf/WAFRequest.h>
10#include <aws/waf/WAF_EXPORTS.h>
11#include <aws/waf/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WAF {
17namespace Model {
18
22 public:
23 AWS_WAF_API CreateRuleGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateRuleGroup"; }
30
31 AWS_WAF_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
63 inline const Aws::String& GetMetricName() const { return m_metricName; }
64 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
65 template <typename MetricNameT = Aws::String>
66 void SetMetricName(MetricNameT&& value) {
67 m_metricNameHasBeenSet = true;
68 m_metricName = std::forward<MetricNameT>(value);
69 }
70 template <typename MetricNameT = Aws::String>
71 CreateRuleGroupRequest& WithMetricName(MetricNameT&& value) {
72 SetMetricName(std::forward<MetricNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
82 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
83 template <typename ChangeTokenT = Aws::String>
84 void SetChangeToken(ChangeTokenT&& value) {
85 m_changeTokenHasBeenSet = true;
86 m_changeToken = std::forward<ChangeTokenT>(value);
87 }
88 template <typename ChangeTokenT = Aws::String>
89 CreateRuleGroupRequest& WithChangeToken(ChangeTokenT&& value) {
90 SetChangeToken(std::forward<ChangeTokenT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template <typename TagsT = Aws::Vector<Tag>>
102 void SetTags(TagsT&& value) {
103 m_tagsHasBeenSet = true;
104 m_tags = std::forward<TagsT>(value);
105 }
106 template <typename TagsT = Aws::Vector<Tag>>
108 SetTags(std::forward<TagsT>(value));
109 return *this;
110 }
111 template <typename TagsT = Tag>
113 m_tagsHasBeenSet = true;
114 m_tags.emplace_back(std::forward<TagsT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_name;
120
121 Aws::String m_metricName;
122
123 Aws::String m_changeToken;
124
125 Aws::Vector<Tag> m_tags;
126 bool m_nameHasBeenSet = false;
127 bool m_metricNameHasBeenSet = false;
128 bool m_changeTokenHasBeenSet = false;
129 bool m_tagsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace WAF
134} // namespace Aws
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRuleGroupRequest & AddTags(TagsT &&value)
CreateRuleGroupRequest & WithName(NameT &&value)
CreateRuleGroupRequest & WithTags(TagsT &&value)
CreateRuleGroupRequest & WithMetricName(MetricNameT &&value)
CreateRuleGroupRequest & WithChangeToken(ChangeTokenT &&value)
AWS_WAF_API CreateRuleGroupRequest()=default
const Aws::Vector< Tag > & GetTags() const
AWS_WAF_API Aws::String SerializePayload() const override
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