AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
QueryConditionItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/QueryConditionComparisonOperator.h>
10#include <aws/qconnect/model/QueryConditionFieldName.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QConnect {
22namespace Model {
23
30 public:
31 AWS_QCONNECT_API QueryConditionItem() = default;
34 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline QueryConditionFieldName GetField() const { return m_field; }
41 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
42 inline void SetField(QueryConditionFieldName value) {
43 m_fieldHasBeenSet = true;
44 m_field = value;
45 }
47 SetField(value);
48 return *this;
49 }
51
53
56 inline QueryConditionComparisonOperator GetComparator() const { return m_comparator; }
57 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
59 m_comparatorHasBeenSet = true;
60 m_comparator = value;
61 }
63 SetComparator(value);
64 return *this;
65 }
67
69
72 inline const Aws::String& GetValue() const { return m_value; }
73 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
74 template <typename ValueT = Aws::String>
75 void SetValue(ValueT&& value) {
76 m_valueHasBeenSet = true;
77 m_value = std::forward<ValueT>(value);
78 }
79 template <typename ValueT = Aws::String>
81 SetValue(std::forward<ValueT>(value));
82 return *this;
83 }
85 private:
87
89
90 Aws::String m_value;
91 bool m_fieldHasBeenSet = false;
92 bool m_comparatorHasBeenSet = false;
93 bool m_valueHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace QConnect
98} // namespace Aws
AWS_QCONNECT_API QueryConditionItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetField(QueryConditionFieldName value)
QueryConditionComparisonOperator GetComparator() const
QueryConditionFieldName GetField() const
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
QueryConditionItem & WithValue(ValueT &&value)
void SetComparator(QueryConditionComparisonOperator value)
AWS_QCONNECT_API QueryConditionItem(Aws::Utils::Json::JsonView jsonValue)
QueryConditionItem & WithField(QueryConditionFieldName value)
AWS_QCONNECT_API QueryConditionItem()=default
QueryConditionItem & WithComparator(QueryConditionComparisonOperator value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue