AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DocumentAttributeTarget.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9#include <aws/kendra/model/DocumentAttributeValue.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace kendra {
21namespace Model {
22
42 public:
43 AWS_KENDRA_API DocumentAttributeTarget() = default;
46 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
47
49
55 inline const Aws::String& GetTargetDocumentAttributeKey() const { return m_targetDocumentAttributeKey; }
56 inline bool TargetDocumentAttributeKeyHasBeenSet() const { return m_targetDocumentAttributeKeyHasBeenSet; }
57 template <typename TargetDocumentAttributeKeyT = Aws::String>
58 void SetTargetDocumentAttributeKey(TargetDocumentAttributeKeyT&& value) {
59 m_targetDocumentAttributeKeyHasBeenSet = true;
60 m_targetDocumentAttributeKey = std::forward<TargetDocumentAttributeKeyT>(value);
61 }
62 template <typename TargetDocumentAttributeKeyT = Aws::String>
63 DocumentAttributeTarget& WithTargetDocumentAttributeKey(TargetDocumentAttributeKeyT&& value) {
64 SetTargetDocumentAttributeKey(std::forward<TargetDocumentAttributeKeyT>(value));
65 return *this;
66 }
68
70
76 inline bool GetTargetDocumentAttributeValueDeletion() const { return m_targetDocumentAttributeValueDeletion; }
77 inline bool TargetDocumentAttributeValueDeletionHasBeenSet() const { return m_targetDocumentAttributeValueDeletionHasBeenSet; }
79 m_targetDocumentAttributeValueDeletionHasBeenSet = true;
80 m_targetDocumentAttributeValueDeletion = value;
81 }
84 return *this;
85 }
87
89
94 inline const DocumentAttributeValue& GetTargetDocumentAttributeValue() const { return m_targetDocumentAttributeValue; }
95 inline bool TargetDocumentAttributeValueHasBeenSet() const { return m_targetDocumentAttributeValueHasBeenSet; }
96 template <typename TargetDocumentAttributeValueT = DocumentAttributeValue>
97 void SetTargetDocumentAttributeValue(TargetDocumentAttributeValueT&& value) {
98 m_targetDocumentAttributeValueHasBeenSet = true;
99 m_targetDocumentAttributeValue = std::forward<TargetDocumentAttributeValueT>(value);
100 }
101 template <typename TargetDocumentAttributeValueT = DocumentAttributeValue>
102 DocumentAttributeTarget& WithTargetDocumentAttributeValue(TargetDocumentAttributeValueT&& value) {
103 SetTargetDocumentAttributeValue(std::forward<TargetDocumentAttributeValueT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_targetDocumentAttributeKey;
109
110 bool m_targetDocumentAttributeValueDeletion{false};
111
112 DocumentAttributeValue m_targetDocumentAttributeValue;
113 bool m_targetDocumentAttributeKeyHasBeenSet = false;
114 bool m_targetDocumentAttributeValueDeletionHasBeenSet = false;
115 bool m_targetDocumentAttributeValueHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace kendra
120} // namespace Aws
void SetTargetDocumentAttributeValue(TargetDocumentAttributeValueT &&value)
const Aws::String & GetTargetDocumentAttributeKey() const
const DocumentAttributeValue & GetTargetDocumentAttributeValue() const
AWS_KENDRA_API DocumentAttributeTarget()=default
DocumentAttributeTarget & WithTargetDocumentAttributeValue(TargetDocumentAttributeValueT &&value)
void SetTargetDocumentAttributeKey(TargetDocumentAttributeKeyT &&value)
DocumentAttributeTarget & WithTargetDocumentAttributeKey(TargetDocumentAttributeKeyT &&value)
DocumentAttributeTarget & WithTargetDocumentAttributeValueDeletion(bool value)
AWS_KENDRA_API DocumentAttributeTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API DocumentAttributeTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue