AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RateLimitHeader.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
37 {
38 public:
39 AWS_WAFV2_API RateLimitHeader() = default;
42 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 RateLimitHeader& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::forward<TextTransformationsT>(value); }
72 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
73 RateLimitHeader& WithTextTransformations(TextTransformationsT&& value) { SetTextTransformations(std::forward<TextTransformationsT>(value)); return *this;}
74 template<typename TextTransformationsT = TextTransformation>
75 RateLimitHeader& AddTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value)); return *this; }
77 private:
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81
82 Aws::Vector<TextTransformation> m_textTransformations;
83 bool m_textTransformationsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace WAFV2
88} // 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::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