AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
FieldToMatch.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/waf/WAF_EXPORTS.h>
9#include <aws/waf/model/MatchFieldType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAF {
21namespace Model {
22
37 public:
38 AWS_WAF_API FieldToMatch() = default;
42
44
74 inline MatchFieldType GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(MatchFieldType value) {
77 m_typeHasBeenSet = true;
78 m_type = value;
79 }
81 SetType(value);
82 return *this;
83 }
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) {
101 m_dataHasBeenSet = true;
102 m_data = std::forward<DataT>(value);
103 }
104 template <typename DataT = Aws::String>
105 FieldToMatch& WithData(DataT&& value) {
106 SetData(std::forward<DataT>(value));
107 return *this;
108 }
110 private:
112
113 Aws::String m_data;
114 bool m_typeHasBeenSet = false;
115 bool m_dataHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace WAF
120} // namespace Aws
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetData(DataT &&value)
const Aws::String & GetData() const
AWS_WAF_API FieldToMatch()=default
AWS_WAF_API FieldToMatch(Aws::Utils::Json::JsonView jsonValue)
void SetType(MatchFieldType value)
AWS_WAF_API FieldToMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
MatchFieldType GetType() const
FieldToMatch & WithType(MatchFieldType value)
FieldToMatch & WithData(DataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue