AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DocumentAttributeTarget.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/DocumentAttributeValue.h>
10#include <aws/qbusiness/model/AttributeValueOperator.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
49 {
50 public:
51 AWS_QBUSINESS_API DocumentAttributeTarget() = default;
54 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
64 inline const Aws::String& GetKey() const { return m_key; }
65 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
66 template<typename KeyT = Aws::String>
67 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
68 template<typename KeyT = Aws::String>
69 DocumentAttributeTarget& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
78 template<typename ValueT = DocumentAttributeValue>
79 DocumentAttributeTarget& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
81
83
88 inline AttributeValueOperator GetAttributeValueOperator() const { return m_attributeValueOperator; }
89 inline bool AttributeValueOperatorHasBeenSet() const { return m_attributeValueOperatorHasBeenSet; }
90 inline void SetAttributeValueOperator(AttributeValueOperator value) { m_attributeValueOperatorHasBeenSet = true; m_attributeValueOperator = value; }
93 private:
94
95 Aws::String m_key;
96 bool m_keyHasBeenSet = false;
97
99 bool m_valueHasBeenSet = false;
100
102 bool m_attributeValueOperatorHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace QBusiness
107} // 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