AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRuleRequest.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/WAFRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/waf/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAF
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAF_API CreateRuleRequest() = default;
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 "CreateRule"; }
33
34 AWS_WAF_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateRuleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
60 inline const Aws::String& GetMetricName() const { return m_metricName; }
61 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
62 template<typename MetricNameT = Aws::String>
63 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
64 template<typename MetricNameT = Aws::String>
65 CreateRuleRequest& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetChangeToken() const { return m_changeToken; }
73 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
74 template<typename ChangeTokenT = Aws::String>
75 void SetChangeToken(ChangeTokenT&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::forward<ChangeTokenT>(value); }
76 template<typename ChangeTokenT = Aws::String>
77 CreateRuleRequest& WithChangeToken(ChangeTokenT&& value) { SetChangeToken(std::forward<ChangeTokenT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template<typename TagsT = Aws::Vector<Tag>>
87 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
88 template<typename TagsT = Aws::Vector<Tag>>
89 CreateRuleRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
90 template<typename TagsT = Tag>
91 CreateRuleRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
93 private:
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::String m_metricName;
99 bool m_metricNameHasBeenSet = false;
100
101 Aws::String m_changeToken;
102 bool m_changeTokenHasBeenSet = false;
103
104 Aws::Vector<Tag> m_tags;
105 bool m_tagsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace WAF
110} // namespace Aws
void SetChangeToken(ChangeTokenT &&value)
const Aws::String & GetMetricName() const
CreateRuleRequest & WithChangeToken(ChangeTokenT &&value)
const Aws::String & GetChangeToken() const
virtual const char * GetServiceRequestName() const override
CreateRuleRequest & WithMetricName(MetricNameT &&value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WAF_API CreateRuleRequest()=default
AWS_WAF_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
CreateRuleRequest & AddTags(TagsT &&value)
CreateRuleRequest & WithTags(TagsT &&value)
CreateRuleRequest & WithName(NameT &&value)
const Aws::String & GetName() const
void SetMetricName(MetricNameT &&value)
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