AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline RateLimitHeader& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline RateLimitHeader& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline RateLimitHeader& WithName(const char* value) { SetName(value); return *this;}
58
60
70 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const{ return m_textTransformations; }
71 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
72 inline void SetTextTransformations(const Aws::Vector<TextTransformation>& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = value; }
73 inline void SetTextTransformations(Aws::Vector<TextTransformation>&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::move(value); }
76 inline RateLimitHeader& AddTextTransformations(const TextTransformation& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(value); return *this; }
77 inline RateLimitHeader& AddTextTransformations(TextTransformation&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(std::move(value)); return *this; }
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::Vector<TextTransformation> m_textTransformations;
85 bool m_textTransformationsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace WAFV2
90} // namespace Aws
AWS_WAFV2_API RateLimitHeader(Aws::Utils::Json::JsonView jsonValue)
RateLimitHeader & WithTextTransformations(Aws::Vector< TextTransformation > &&value)
RateLimitHeader & WithName(const char *value)
void SetName(const char *value)
void SetTextTransformations(Aws::Vector< TextTransformation > &&value)
const Aws::String & GetName() const
RateLimitHeader & WithName(const Aws::String &value)
AWS_WAFV2_API RateLimitHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
RateLimitHeader & AddTextTransformations(const TextTransformation &value)
void SetName(const Aws::String &value)
void SetName(Aws::String &&value)
RateLimitHeader & AddTextTransformations(TextTransformation &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
RateLimitHeader & WithTextTransformations(const Aws::Vector< TextTransformation > &value)
RateLimitHeader & WithName(Aws::String &&value)
void SetTextTransformations(const Aws::Vector< TextTransformation > &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