AWS SDK for C++  1.9.104
AWS SDK for C++
Predicate.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAF
23 {
24 namespace Model
25 {
26 
46  {
47  public:
52 
53 
69  inline bool GetNegated() const{ return m_negated; }
70 
86  inline bool NegatedHasBeenSet() const { return m_negatedHasBeenSet; }
87 
103  inline void SetNegated(bool value) { m_negatedHasBeenSet = true; m_negated = value; }
104 
120  inline Predicate& WithNegated(bool value) { SetNegated(value); return *this;}
121 
122 
127  inline const PredicateType& GetType() const{ return m_type; }
128 
133  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
134 
139  inline void SetType(const PredicateType& value) { m_typeHasBeenSet = true; m_type = value; }
140 
145  inline void SetType(PredicateType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
146 
151  inline Predicate& WithType(const PredicateType& value) { SetType(value); return *this;}
152 
157  inline Predicate& WithType(PredicateType&& value) { SetType(std::move(value)); return *this;}
158 
159 
165  inline const Aws::String& GetDataId() const{ return m_dataId; }
166 
172  inline bool DataIdHasBeenSet() const { return m_dataIdHasBeenSet; }
173 
179  inline void SetDataId(const Aws::String& value) { m_dataIdHasBeenSet = true; m_dataId = value; }
180 
186  inline void SetDataId(Aws::String&& value) { m_dataIdHasBeenSet = true; m_dataId = std::move(value); }
187 
193  inline void SetDataId(const char* value) { m_dataIdHasBeenSet = true; m_dataId.assign(value); }
194 
200  inline Predicate& WithDataId(const Aws::String& value) { SetDataId(value); return *this;}
201 
207  inline Predicate& WithDataId(Aws::String&& value) { SetDataId(std::move(value)); return *this;}
208 
214  inline Predicate& WithDataId(const char* value) { SetDataId(value); return *this;}
215 
216  private:
217 
218  bool m_negated;
219  bool m_negatedHasBeenSet;
220 
221  PredicateType m_type;
222  bool m_typeHasBeenSet;
223 
224  Aws::String m_dataId;
225  bool m_dataIdHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace WAF
230 } // namespace Aws
Aws::WAF::Model::Predicate::WithDataId
Predicate & WithDataId(const Aws::String &value)
Definition: Predicate.h:200
Aws::WAF::Model::Predicate
Definition: Predicate.h:46
Aws::WAF::Model::Predicate::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Predicate.h:133
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::Predicate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAF::Model::Predicate::WithDataId
Predicate & WithDataId(const char *value)
Definition: Predicate.h:214
Aws::WAF::Model::Predicate::GetNegated
bool GetNegated() const
Definition: Predicate.h:69
Aws::WAF::Model::Predicate::NegatedHasBeenSet
bool NegatedHasBeenSet() const
Definition: Predicate.h:86
Aws::WAF::Model::Predicate::operator=
Predicate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::Predicate::Predicate
Predicate()
Aws::WAF::Model::Predicate::SetDataId
void SetDataId(const Aws::String &value)
Definition: Predicate.h:179
Aws::WAF::Model::Predicate::SetType
void SetType(const PredicateType &value)
Definition: Predicate.h:139
Aws::WAF::Model::Predicate::DataIdHasBeenSet
bool DataIdHasBeenSet() const
Definition: Predicate.h:172
Aws::WAF::Model::Predicate::SetNegated
void SetNegated(bool value)
Definition: Predicate.h:103
Aws::WAF::Model::Predicate::WithType
Predicate & WithType(PredicateType &&value)
Definition: Predicate.h:157
Aws::WAF::Model::Predicate::WithDataId
Predicate & WithDataId(Aws::String &&value)
Definition: Predicate.h:207
Aws::WAF::Model::Predicate::Predicate
Predicate(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::Predicate::GetDataId
const Aws::String & GetDataId() const
Definition: Predicate.h:165
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
PredicateType.h
WAF_EXPORTS.h
Aws::WAF::Model::Predicate::SetType
void SetType(PredicateType &&value)
Definition: Predicate.h:145
Aws::WAF::Model::Predicate::SetDataId
void SetDataId(Aws::String &&value)
Definition: Predicate.h:186
Aws::WAF::Model::Predicate::WithType
Predicate & WithType(const PredicateType &value)
Definition: Predicate.h:151
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::Predicate::WithNegated
Predicate & WithNegated(bool value)
Definition: Predicate.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::Predicate::SetDataId
void SetDataId(const char *value)
Definition: Predicate.h:193
Aws::WAF::Model::Predicate::GetType
const PredicateType & GetType() const
Definition: Predicate.h:127
Aws::WAF::Model::PredicateType
PredicateType
Definition: PredicateType.h:17