AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DocumentAttributeCondition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9#include <aws/qbusiness/model/DocumentAttributeValue.h>
10#include <aws/qbusiness/model/DocumentEnrichmentConditionOperator.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness {
22namespace Model {
23
42 public:
43 AWS_QBUSINESS_API DocumentAttributeCondition() = default;
46 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
47
49
56 inline const Aws::String& GetKey() const { return m_key; }
57 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
58 template <typename KeyT = Aws::String>
59 void SetKey(KeyT&& value) {
60 m_keyHasBeenSet = true;
61 m_key = std::forward<KeyT>(value);
62 }
63 template <typename KeyT = Aws::String>
65 SetKey(std::forward<KeyT>(value));
66 return *this;
67 }
69
71
78 inline DocumentEnrichmentConditionOperator GetOperator() const { return m_operator; }
79 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
81 m_operatorHasBeenSet = true;
82 m_operator = value;
83 }
85 SetOperator(value);
86 return *this;
87 }
89
91
92 inline const DocumentAttributeValue& GetValue() const { return m_value; }
93 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
94 template <typename ValueT = DocumentAttributeValue>
95 void SetValue(ValueT&& value) {
96 m_valueHasBeenSet = true;
97 m_value = std::forward<ValueT>(value);
98 }
99 template <typename ValueT = DocumentAttributeValue>
101 SetValue(std::forward<ValueT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_key;
107
109
110 DocumentAttributeValue m_value;
111 bool m_keyHasBeenSet = false;
112 bool m_operatorHasBeenSet = false;
113 bool m_valueHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace QBusiness
118} // namespace Aws
DocumentEnrichmentConditionOperator GetOperator() const
void SetOperator(DocumentEnrichmentConditionOperator value)
AWS_QBUSINESS_API DocumentAttributeCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API DocumentAttributeCondition(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API DocumentAttributeCondition()=default
DocumentAttributeCondition & WithValue(ValueT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentAttributeCondition & WithKey(KeyT &&value)
DocumentAttributeCondition & WithOperator(DocumentEnrichmentConditionOperator 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