AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
RateLimitQueryArgument.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/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/TextTransformation.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2 {
22namespace Model {
23
34 public:
35 AWS_WAFV2_API RateLimitQueryArgument() = default;
38 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
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) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
69 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
70 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
71 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
72 void SetTextTransformations(TextTransformationsT&& value) {
73 m_textTransformationsHasBeenSet = true;
74 m_textTransformations = std::forward<TextTransformationsT>(value);
75 }
76 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
77 RateLimitQueryArgument& WithTextTransformations(TextTransformationsT&& value) {
78 SetTextTransformations(std::forward<TextTransformationsT>(value));
79 return *this;
80 }
81 template <typename TextTransformationsT = TextTransformation>
82 RateLimitQueryArgument& AddTextTransformations(TextTransformationsT&& value) {
83 m_textTransformationsHasBeenSet = true;
84 m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_name;
90
91 Aws::Vector<TextTransformation> m_textTransformations;
92 bool m_nameHasBeenSet = false;
93 bool m_textTransformationsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace WAFV2
98} // namespace Aws
void SetTextTransformations(TextTransformationsT &&value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
AWS_WAFV2_API RateLimitQueryArgument(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API RateLimitQueryArgument & operator=(Aws::Utils::Json::JsonView jsonValue)
RateLimitQueryArgument & AddTextTransformations(TextTransformationsT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
RateLimitQueryArgument & WithTextTransformations(TextTransformationsT &&value)
AWS_WAFV2_API RateLimitQueryArgument()=default
RateLimitQueryArgument & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue