AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DocumentAttributeTarget.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/model/DocumentAttributeValue.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace kendra
23{
24namespace Model
25{
26
46 {
47 public:
48 AWS_KENDRA_API DocumentAttributeTarget() = default;
51 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
61 inline const Aws::String& GetTargetDocumentAttributeKey() const { return m_targetDocumentAttributeKey; }
62 inline bool TargetDocumentAttributeKeyHasBeenSet() const { return m_targetDocumentAttributeKeyHasBeenSet; }
63 template<typename TargetDocumentAttributeKeyT = Aws::String>
64 void SetTargetDocumentAttributeKey(TargetDocumentAttributeKeyT&& value) { m_targetDocumentAttributeKeyHasBeenSet = true; m_targetDocumentAttributeKey = std::forward<TargetDocumentAttributeKeyT>(value); }
65 template<typename TargetDocumentAttributeKeyT = Aws::String>
66 DocumentAttributeTarget& WithTargetDocumentAttributeKey(TargetDocumentAttributeKeyT&& value) { SetTargetDocumentAttributeKey(std::forward<TargetDocumentAttributeKeyT>(value)); return *this;}
68
70
76 inline bool GetTargetDocumentAttributeValueDeletion() const { return m_targetDocumentAttributeValueDeletion; }
77 inline bool TargetDocumentAttributeValueDeletionHasBeenSet() const { return m_targetDocumentAttributeValueDeletionHasBeenSet; }
78 inline void SetTargetDocumentAttributeValueDeletion(bool value) { m_targetDocumentAttributeValueDeletionHasBeenSet = true; m_targetDocumentAttributeValueDeletion = value; }
81
83
88 inline const DocumentAttributeValue& GetTargetDocumentAttributeValue() const { return m_targetDocumentAttributeValue; }
89 inline bool TargetDocumentAttributeValueHasBeenSet() const { return m_targetDocumentAttributeValueHasBeenSet; }
90 template<typename TargetDocumentAttributeValueT = DocumentAttributeValue>
91 void SetTargetDocumentAttributeValue(TargetDocumentAttributeValueT&& value) { m_targetDocumentAttributeValueHasBeenSet = true; m_targetDocumentAttributeValue = std::forward<TargetDocumentAttributeValueT>(value); }
92 template<typename TargetDocumentAttributeValueT = DocumentAttributeValue>
93 DocumentAttributeTarget& WithTargetDocumentAttributeValue(TargetDocumentAttributeValueT&& value) { SetTargetDocumentAttributeValue(std::forward<TargetDocumentAttributeValueT>(value)); return *this;}
95 private:
96
97 Aws::String m_targetDocumentAttributeKey;
98 bool m_targetDocumentAttributeKeyHasBeenSet = false;
99
100 bool m_targetDocumentAttributeValueDeletion{false};
101 bool m_targetDocumentAttributeValueDeletionHasBeenSet = false;
102
103 DocumentAttributeValue m_targetDocumentAttributeValue;
104 bool m_targetDocumentAttributeValueHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace kendra
109} // 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