AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DocumentAttributeCondition.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/DocumentEnrichmentConditionOperator.h>
10#include <aws/qbusiness/model/DocumentAttributeValue.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 QBusiness
24{
25namespace Model
26{
27
46 {
47 public:
48 AWS_QBUSINESS_API DocumentAttributeCondition() = default;
51 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
62 inline const Aws::String& GetKey() const { return m_key; }
63 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
64 template<typename KeyT = Aws::String>
65 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
66 template<typename KeyT = Aws::String>
67 DocumentAttributeCondition& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
69
71
78 inline DocumentEnrichmentConditionOperator GetOperator() const { return m_operator; }
79 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
80 inline void SetOperator(DocumentEnrichmentConditionOperator value) { m_operatorHasBeenSet = true; m_operator = value; }
83
85
86 inline const DocumentAttributeValue& GetValue() const { return m_value; }
87 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
88 template<typename ValueT = DocumentAttributeValue>
89 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
90 template<typename ValueT = DocumentAttributeValue>
91 DocumentAttributeCondition& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
93 private:
94
95 Aws::String m_key;
96 bool m_keyHasBeenSet = false;
97
99 bool m_operatorHasBeenSet = false;
100
101 DocumentAttributeValue m_value;
102 bool m_valueHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace QBusiness
107} // 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