AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RateLimitQueryArgument.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/model/TextTransformation.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFV2
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_WAFV2_API RateLimitQueryArgument() = default;
43 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 RateLimitQueryArgument& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::forward<TextTransformationsT>(value); }
73 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
74 RateLimitQueryArgument& WithTextTransformations(TextTransformationsT&& value) { SetTextTransformations(std::forward<TextTransformationsT>(value)); return *this;}
75 template<typename TextTransformationsT = TextTransformation>
76 RateLimitQueryArgument& AddTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value)); return *this; }
78 private:
79
80 Aws::String m_name;
81 bool m_nameHasBeenSet = false;
82
83 Aws::Vector<TextTransformation> m_textTransformations;
84 bool m_textTransformationsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace WAFV2
89} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue