AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RegexPatternSet.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/Regex.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 RegexPatternSet() = 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 RegexPatternSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
63 inline const Aws::String& GetId() const { return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 template<typename IdT = Aws::String>
66 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
67 template<typename IdT = Aws::String>
68 RegexPatternSet& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetARN() const { return m_aRN; }
76 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
77 template<typename ARNT = Aws::String>
78 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
79 template<typename ARNT = Aws::String>
80 RegexPatternSet& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template<typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
91 template<typename DescriptionT = Aws::String>
92 RegexPatternSet& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
94
96
99 inline const Aws::Vector<Regex>& GetRegularExpressionList() const { return m_regularExpressionList; }
100 inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
101 template<typename RegularExpressionListT = Aws::Vector<Regex>>
102 void SetRegularExpressionList(RegularExpressionListT&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = std::forward<RegularExpressionListT>(value); }
103 template<typename RegularExpressionListT = Aws::Vector<Regex>>
104 RegexPatternSet& WithRegularExpressionList(RegularExpressionListT&& value) { SetRegularExpressionList(std::forward<RegularExpressionListT>(value)); return *this;}
105 template<typename RegularExpressionListT = Regex>
106 RegexPatternSet& AddRegularExpressionList(RegularExpressionListT&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.emplace_back(std::forward<RegularExpressionListT>(value)); return *this; }
108 private:
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
113 Aws::String m_id;
114 bool m_idHasBeenSet = false;
115
116 Aws::String m_aRN;
117 bool m_aRNHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 Aws::Vector<Regex> m_regularExpressionList;
123 bool m_regularExpressionListHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace WAFV2
128} // namespace Aws
AWS_WAFV2_API RegexPatternSet(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API RegexPatternSet()=default
AWS_WAFV2_API RegexPatternSet & operator=(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSet & WithDescription(DescriptionT &&value)
RegexPatternSet & WithId(IdT &&value)
void SetRegularExpressionList(RegularExpressionListT &&value)
RegexPatternSet & AddRegularExpressionList(RegularExpressionListT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetId() const
const Aws::String & GetName() const
const Aws::Vector< Regex > & GetRegularExpressionList() const
void SetDescription(DescriptionT &&value)
RegexPatternSet & WithName(NameT &&value)
const Aws::String & GetARN() const
RegexPatternSet & WithARN(ARNT &&value)
RegexPatternSet & WithRegularExpressionList(RegularExpressionListT &&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