AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FieldToMatch.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/MatchFieldType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFRegional
23{
24namespace Model
25{
26
41 {
42 public:
43 AWS_WAFREGIONAL_API FieldToMatch() = default;
44 AWS_WAFREGIONAL_API FieldToMatch(Aws::Utils::Json::JsonView jsonValue);
45 AWS_WAFREGIONAL_API FieldToMatch& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
80 inline MatchFieldType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(MatchFieldType value) { m_typeHasBeenSet = true; m_type = value; }
83 inline FieldToMatch& WithType(MatchFieldType value) { SetType(value); return *this;}
85
87
97 inline const Aws::String& GetData() const { return m_data; }
98 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
99 template<typename DataT = Aws::String>
100 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
101 template<typename DataT = Aws::String>
102 FieldToMatch& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
104 private:
105
107 bool m_typeHasBeenSet = false;
108
109 Aws::String m_data;
110 bool m_dataHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace WAFRegional
115} // namespace Aws
FieldToMatch & WithData(DataT &&value)
AWS_WAFREGIONAL_API FieldToMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetData() const
void SetType(MatchFieldType value)
AWS_WAFREGIONAL_API FieldToMatch()=default
AWS_WAFREGIONAL_API FieldToMatch(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
FieldToMatch & WithType(MatchFieldType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue