AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const MatchFieldType& GetType() const{ return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(const MatchFieldType& value) { m_typeHasBeenSet = true; m_type = value; }
83 inline void SetType(MatchFieldType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
84 inline FieldToMatch& WithType(const MatchFieldType& value) { SetType(value); return *this;}
85 inline FieldToMatch& WithType(MatchFieldType&& value) { SetType(std::move(value)); return *this;}
87
89
99 inline const Aws::String& GetData() const{ return m_data; }
100 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
101 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
102 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
103 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
104 inline FieldToMatch& WithData(const Aws::String& value) { SetData(value); return *this;}
105 inline FieldToMatch& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
106 inline FieldToMatch& WithData(const char* value) { SetData(value); return *this;}
108 private:
109
110 MatchFieldType m_type;
111 bool m_typeHasBeenSet = false;
112
113 Aws::String m_data;
114 bool m_dataHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace WAFRegional
119} // namespace Aws
AWS_WAFREGIONAL_API FieldToMatch()
AWS_WAFREGIONAL_API FieldToMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetData() const
FieldToMatch & WithData(Aws::String &&value)
void SetData(Aws::String &&value)
void SetData(const Aws::String &value)
const MatchFieldType & GetType() const
FieldToMatch & WithType(MatchFieldType &&value)
void SetType(const MatchFieldType &value)
AWS_WAFREGIONAL_API FieldToMatch(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
FieldToMatch & WithData(const Aws::String &value)
void SetType(MatchFieldType &&value)
FieldToMatch & WithData(const char *value)
FieldToMatch & WithType(const MatchFieldType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue