AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ByteMatchSet.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf-regional/model/ByteMatchTuple.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 WAFRegional
24{
25namespace Model
26{
27
51 {
52 public:
53 AWS_WAFREGIONAL_API ByteMatchSet() = default;
54 AWS_WAFREGIONAL_API ByteMatchSet(Aws::Utils::Json::JsonView jsonValue);
55 AWS_WAFREGIONAL_API ByteMatchSet& operator=(Aws::Utils::Json::JsonView jsonValue);
56 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
57
58
60
70 inline const Aws::String& GetByteMatchSetId() const { return m_byteMatchSetId; }
71 inline bool ByteMatchSetIdHasBeenSet() const { return m_byteMatchSetIdHasBeenSet; }
72 template<typename ByteMatchSetIdT = Aws::String>
73 void SetByteMatchSetId(ByteMatchSetIdT&& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = std::forward<ByteMatchSetIdT>(value); }
74 template<typename ByteMatchSetIdT = Aws::String>
75 ByteMatchSet& WithByteMatchSetId(ByteMatchSetIdT&& value) { SetByteMatchSetId(std::forward<ByteMatchSetIdT>(value)); return *this;}
77
79
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template<typename NameT = Aws::String>
86 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
87 template<typename NameT = Aws::String>
88 ByteMatchSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
90
92
97 inline const Aws::Vector<ByteMatchTuple>& GetByteMatchTuples() const { return m_byteMatchTuples; }
98 inline bool ByteMatchTuplesHasBeenSet() const { return m_byteMatchTuplesHasBeenSet; }
99 template<typename ByteMatchTuplesT = Aws::Vector<ByteMatchTuple>>
100 void SetByteMatchTuples(ByteMatchTuplesT&& value) { m_byteMatchTuplesHasBeenSet = true; m_byteMatchTuples = std::forward<ByteMatchTuplesT>(value); }
101 template<typename ByteMatchTuplesT = Aws::Vector<ByteMatchTuple>>
102 ByteMatchSet& WithByteMatchTuples(ByteMatchTuplesT&& value) { SetByteMatchTuples(std::forward<ByteMatchTuplesT>(value)); return *this;}
103 template<typename ByteMatchTuplesT = ByteMatchTuple>
104 ByteMatchSet& AddByteMatchTuples(ByteMatchTuplesT&& value) { m_byteMatchTuplesHasBeenSet = true; m_byteMatchTuples.emplace_back(std::forward<ByteMatchTuplesT>(value)); return *this; }
106 private:
107
108 Aws::String m_byteMatchSetId;
109 bool m_byteMatchSetIdHasBeenSet = false;
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
114 Aws::Vector<ByteMatchTuple> m_byteMatchTuples;
115 bool m_byteMatchTuplesHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace WAFRegional
120} // namespace Aws
ByteMatchSet & WithByteMatchTuples(ByteMatchTuplesT &&value)
ByteMatchSet & WithByteMatchSetId(ByteMatchSetIdT &&value)
const Aws::Vector< ByteMatchTuple > & GetByteMatchTuples() const
AWS_WAFREGIONAL_API ByteMatchSet()=default
ByteMatchSet & WithName(NameT &&value)
ByteMatchSet & AddByteMatchTuples(ByteMatchTuplesT &&value)
AWS_WAFREGIONAL_API ByteMatchSet(Aws::Utils::Json::JsonView jsonValue)
void SetByteMatchSetId(ByteMatchSetIdT &&value)
void SetByteMatchTuples(ByteMatchTuplesT &&value)
const Aws::String & GetByteMatchSetId() const
const Aws::String & GetName() const
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFREGIONAL_API ByteMatchSet & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue