AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 CreateRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateRuleRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
62 inline const Aws::String& GetMetricName() const{ return m_metricName; }
63 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
64 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
65 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
66 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
67 inline CreateRuleRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
68 inline CreateRuleRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
69 inline CreateRuleRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
71
73
76 inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
77 inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
78 inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
79 inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
80 inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
81 inline CreateRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
82 inline CreateRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
83 inline CreateRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
85
87
90 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
93 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
94 inline CreateRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
95 inline CreateRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
96 inline CreateRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
97 inline CreateRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
104 Aws::String m_metricName;
105 bool m_metricNameHasBeenSet = false;
106
107 Aws::String m_changeToken;
108 bool m_changeTokenHasBeenSet = false;
109
110 Aws::Vector<Tag> m_tags;
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace WAF
116} // namespace Aws
CreateRuleRequest & WithChangeToken(Aws::String &&value)
CreateRuleRequest & WithName(const char *value)
CreateRuleRequest & WithMetricName(Aws::String &&value)
CreateRuleRequest & AddTags(const Tag &value)
const Aws::String & GetMetricName() const
void SetTags(Aws::Vector< Tag > &&value)
void SetChangeToken(const Aws::String &value)
const Aws::String & GetChangeToken() const
CreateRuleRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRuleRequest & WithMetricName(const Aws::String &value)
CreateRuleRequest & WithChangeToken(const char *value)
void SetName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Vector< Tag > &value)
void SetMetricName(const char *value)
void SetMetricName(const Aws::String &value)
CreateRuleRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRuleRequest & WithName(const Aws::String &value)
CreateRuleRequest & WithName(Aws::String &&value)
AWS_WAF_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
void SetName(const Aws::String &value)
void SetChangeToken(const char *value)
void SetMetricName(Aws::String &&value)
CreateRuleRequest & AddTags(Tag &&value)
void SetChangeToken(Aws::String &&value)
CreateRuleRequest & WithMetricName(const char *value)
const Aws::String & GetName() const
CreateRuleRequest & WithChangeToken(const Aws::String &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