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-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/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 WAFRegional
23{
24namespace Model
25{
26
46 {
47 public:
48 AWS_WAFREGIONAL_API Predicate();
49 AWS_WAFREGIONAL_API Predicate(Aws::Utils::Json::JsonView jsonValue);
50 AWS_WAFREGIONAL_API Predicate& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
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 WAFRegional
118} // namespace Aws
Predicate & WithDataId(const Aws::String &value)
Definition Predicate.h:100
AWS_WAFREGIONAL_API Predicate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(PredicateType &&value)
Definition Predicate.h:84
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
Predicate & WithNegated(bool value)
Definition Predicate.h:73
void SetDataId(const Aws::String &value)
Definition Predicate.h:97
AWS_WAFREGIONAL_API Predicate()
void SetDataId(Aws::String &&value)
Definition Predicate.h:98
const Aws::String & GetDataId() const
Definition Predicate.h:95
void SetDataId(const char *value)
Definition Predicate.h:99
AWS_WAFREGIONAL_API Predicate(Aws::Utils::Json::JsonView jsonValue)
const PredicateType & GetType() const
Definition Predicate.h:81
Predicate & WithType(PredicateType &&value)
Definition Predicate.h:86
Predicate & WithType(const PredicateType &value)
Definition Predicate.h:85
void SetType(const PredicateType &value)
Definition Predicate.h:83
Predicate & WithDataId(Aws::String &&value)
Definition Predicate.h:101
Predicate & WithDataId(const char *value)
Definition Predicate.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue