AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DocumentAttributeTarget.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/AttributeValueOperator.h>
10#include <aws/qbusiness/model/DocumentAttributeValue.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
45 public:
46 AWS_QBUSINESS_API DocumentAttributeTarget() = default;
49 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
58 inline const Aws::String& GetKey() const { return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 template <typename KeyT = Aws::String>
61 void SetKey(KeyT&& value) {
62 m_keyHasBeenSet = true;
63 m_key = std::forward<KeyT>(value);
64 }
65 template <typename KeyT = Aws::String>
67 SetKey(std::forward<KeyT>(value));
68 return *this;
69 }
71
73
74 inline const DocumentAttributeValue& GetValue() const { return m_value; }
75 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
76 template <typename ValueT = DocumentAttributeValue>
77 void SetValue(ValueT&& value) {
78 m_valueHasBeenSet = true;
79 m_value = std::forward<ValueT>(value);
80 }
81 template <typename ValueT = DocumentAttributeValue>
83 SetValue(std::forward<ValueT>(value));
84 return *this;
85 }
87
89
94 inline AttributeValueOperator GetAttributeValueOperator() const { return m_attributeValueOperator; }
95 inline bool AttributeValueOperatorHasBeenSet() const { return m_attributeValueOperatorHasBeenSet; }
97 m_attributeValueOperatorHasBeenSet = true;
98 m_attributeValueOperator = value;
99 }
102 return *this;
103 }
105 private:
106 Aws::String m_key;
107
109
111 bool m_keyHasBeenSet = false;
112 bool m_valueHasBeenSet = false;
113 bool m_attributeValueOperatorHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace QBusiness
118} // namespace Aws
DocumentAttributeTarget & WithAttributeValueOperator(AttributeValueOperator value)
AWS_QBUSINESS_API DocumentAttributeTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentAttributeTarget & WithKey(KeyT &&value)
void SetAttributeValueOperator(AttributeValueOperator value)
AWS_QBUSINESS_API DocumentAttributeTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API DocumentAttributeTarget()=default
const DocumentAttributeValue & GetValue() const
DocumentAttributeTarget & WithValue(ValueT &&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