AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Predicate.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/PredicateType.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 WAF
23{
24namespace Model
25{
26
46 {
47 public:
48 AWS_WAF_API Predicate();
49 AWS_WAF_API Predicate(Aws::Utils::Json::JsonView jsonValue);
52
53
55
70 inline bool GetNegated() const{ return m_negated; }
71 inline bool NegatedHasBeenSet() const { return m_negatedHasBeenSet; }
72 inline void SetNegated(bool value) { m_negatedHasBeenSet = true; m_negated = value; }
73 inline Predicate& WithNegated(bool value) { SetNegated(value); return *this;}
75
77
81 inline const PredicateType& GetType() const{ return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(const PredicateType& value) { m_typeHasBeenSet = true; m_type = value; }
84 inline void SetType(PredicateType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
85 inline Predicate& WithType(const PredicateType& value) { SetType(value); return *this;}
86 inline Predicate& WithType(PredicateType&& value) { SetType(std::move(value)); return *this;}
88
90
95 inline const Aws::String& GetDataId() const{ return m_dataId; }
96 inline bool DataIdHasBeenSet() const { return m_dataIdHasBeenSet; }
97 inline void SetDataId(const Aws::String& value) { m_dataIdHasBeenSet = true; m_dataId = value; }
98 inline void SetDataId(Aws::String&& value) { m_dataIdHasBeenSet = true; m_dataId = std::move(value); }
99 inline void SetDataId(const char* value) { m_dataIdHasBeenSet = true; m_dataId.assign(value); }
100 inline Predicate& WithDataId(const Aws::String& value) { SetDataId(value); return *this;}
101 inline Predicate& WithDataId(Aws::String&& value) { SetDataId(std::move(value)); return *this;}
102 inline Predicate& WithDataId(const char* value) { SetDataId(value); return *this;}
104 private:
105
106 bool m_negated;
107 bool m_negatedHasBeenSet = false;
108
109 PredicateType m_type;
110 bool m_typeHasBeenSet = false;
111
112 Aws::String m_dataId;
113 bool m_dataIdHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace WAF
118} // namespace Aws
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const PredicateType &value)
Definition Predicate.h:83
void SetDataId(const Aws::String &value)
Definition Predicate.h:97
Predicate & WithNegated(bool value)
Definition Predicate.h:73
const PredicateType & GetType() const
Definition Predicate.h:81
void SetNegated(bool value)
Definition Predicate.h:72
Predicate & WithType(const PredicateType &value)
Definition Predicate.h:85
AWS_WAF_API Predicate & operator=(Aws::Utils::Json::JsonView jsonValue)
Predicate & WithType(PredicateType &&value)
Definition Predicate.h:86
void SetType(PredicateType &&value)
Definition Predicate.h:84
Predicate & WithDataId(const char *value)
Definition Predicate.h:102
bool TypeHasBeenSet() const
Definition Predicate.h:82
void SetDataId(const char *value)
Definition Predicate.h:99
Predicate & WithDataId(const Aws::String &value)
Definition Predicate.h:100
bool DataIdHasBeenSet() const
Definition Predicate.h:96
Predicate & WithDataId(Aws::String &&value)
Definition Predicate.h:101
const Aws::String & GetDataId() const
Definition Predicate.h:95
void SetDataId(Aws::String &&value)
Definition Predicate.h:98
bool NegatedHasBeenSet() const
Definition Predicate.h:71
AWS_WAF_API Predicate(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue