AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
PropertyPredicate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/Comparator.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29 public:
30 AWS_GLUE_API PropertyPredicate() = default;
34
36
39 inline const Aws::String& GetKey() const { return m_key; }
40 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
41 template <typename KeyT = Aws::String>
42 void SetKey(KeyT&& value) {
43 m_keyHasBeenSet = true;
44 m_key = std::forward<KeyT>(value);
45 }
46 template <typename KeyT = Aws::String>
47 PropertyPredicate& WithKey(KeyT&& value) {
48 SetKey(std::forward<KeyT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetValue() const { return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 template <typename ValueT = Aws::String>
60 void SetValue(ValueT&& value) {
61 m_valueHasBeenSet = true;
62 m_value = std::forward<ValueT>(value);
63 }
64 template <typename ValueT = Aws::String>
65 PropertyPredicate& WithValue(ValueT&& value) {
66 SetValue(std::forward<ValueT>(value));
67 return *this;
68 }
70
72
75 inline Comparator GetComparator() const { return m_comparator; }
76 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
77 inline void SetComparator(Comparator value) {
78 m_comparatorHasBeenSet = true;
79 m_comparator = value;
80 }
82 SetComparator(value);
83 return *this;
84 }
86 private:
87 Aws::String m_key;
88
89 Aws::String m_value;
90
91 Comparator m_comparator{Comparator::NOT_SET};
92 bool m_keyHasBeenSet = false;
93 bool m_valueHasBeenSet = false;
94 bool m_comparatorHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Glue
99} // namespace Aws
const Aws::String & GetKey() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API PropertyPredicate(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API PropertyPredicate()=default
PropertyPredicate & WithValue(ValueT &&value)
AWS_GLUE_API PropertyPredicate & operator=(Aws::Utils::Json::JsonView jsonValue)
PropertyPredicate & WithComparator(Comparator value)
PropertyPredicate & WithKey(KeyT &&value)
const Aws::String & GetValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue