AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueryConditionItem.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/QueryConditionComparisonOperator.h>
9#include <aws/qconnect/model/QueryConditionFieldName.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QConnect
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_QCONNECT_API QueryConditionItem();
39 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const QueryConditionComparisonOperator& GetComparator() const{ return m_comparator; }
47 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
48 inline void SetComparator(const QueryConditionComparisonOperator& value) { m_comparatorHasBeenSet = true; m_comparator = value; }
49 inline void SetComparator(QueryConditionComparisonOperator&& value) { m_comparatorHasBeenSet = true; m_comparator = std::move(value); }
51 inline QueryConditionItem& WithComparator(QueryConditionComparisonOperator&& value) { SetComparator(std::move(value)); return *this;}
53
55
58 inline const QueryConditionFieldName& GetField() const{ return m_field; }
59 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
60 inline void SetField(const QueryConditionFieldName& value) { m_fieldHasBeenSet = true; m_field = value; }
61 inline void SetField(QueryConditionFieldName&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
62 inline QueryConditionItem& WithField(const QueryConditionFieldName& value) { SetField(value); return *this;}
63 inline QueryConditionItem& WithField(QueryConditionFieldName&& value) { SetField(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetValue() const{ return m_value; }
71 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
72 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
73 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
74 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
75 inline QueryConditionItem& WithValue(const Aws::String& value) { SetValue(value); return *this;}
76 inline QueryConditionItem& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
77 inline QueryConditionItem& WithValue(const char* value) { SetValue(value); return *this;}
79 private:
80
82 bool m_comparatorHasBeenSet = false;
83
85 bool m_fieldHasBeenSet = false;
86
87 Aws::String m_value;
88 bool m_valueHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace QConnect
93} // namespace Aws
void SetField(QueryConditionFieldName &&value)
void SetComparator(const QueryConditionComparisonOperator &value)
QueryConditionItem & WithValue(Aws::String &&value)
QueryConditionItem & WithField(const QueryConditionFieldName &value)
AWS_QCONNECT_API QueryConditionItem & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryConditionItem & WithComparator(QueryConditionComparisonOperator &&value)
QueryConditionItem & WithField(QueryConditionFieldName &&value)
const QueryConditionFieldName & GetField() const
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QCONNECT_API QueryConditionItem(Aws::Utils::Json::JsonView jsonValue)
const QueryConditionComparisonOperator & GetComparator() const
void SetField(const QueryConditionFieldName &value)
QueryConditionItem & WithValue(const Aws::String &value)
void SetValue(const Aws::String &value)
QueryConditionItem & WithComparator(const QueryConditionComparisonOperator &value)
QueryConditionItem & WithValue(const char *value)
void SetComparator(QueryConditionComparisonOperator &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue