AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
RateLimitHeader.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
33 public:
34 AWS_WAFV2_API RateLimitHeader() = default;
37 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 RateLimitHeader& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
68 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
69 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
70 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
71 void SetTextTransformations(TextTransformationsT&& value) {
72 m_textTransformationsHasBeenSet = true;
73 m_textTransformations = std::forward<TextTransformationsT>(value);
74 }
75 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
76 RateLimitHeader& WithTextTransformations(TextTransformationsT&& value) {
77 SetTextTransformations(std::forward<TextTransformationsT>(value));
78 return *this;
79 }
80 template <typename TextTransformationsT = TextTransformation>
81 RateLimitHeader& AddTextTransformations(TextTransformationsT&& value) {
82 m_textTransformationsHasBeenSet = true;
83 m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_name;
89
90 Aws::Vector<TextTransformation> m_textTransformations;
91 bool m_nameHasBeenSet = false;
92 bool m_textTransformationsHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace WAFV2
97} // namespace Aws
AWS_WAFV2_API RateLimitHeader()=default
RateLimitHeader & WithTextTransformations(TextTransformationsT &&value)
AWS_WAFV2_API RateLimitHeader(Aws::Utils::Json::JsonView jsonValue)
void SetTextTransformations(TextTransformationsT &&value)
RateLimitHeader & AddTextTransformations(TextTransformationsT &&value)
const Aws::String & GetName() const
AWS_WAFV2_API RateLimitHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
RateLimitHeader & WithName(NameT &&value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue