AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DocumentInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/DocumentAttribute.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace kendra {
22namespace Model {
23
31 public:
32 AWS_KENDRA_API DocumentInfo() = default;
33 AWS_KENDRA_API DocumentInfo(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDocumentId() const { return m_documentId; }
42 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
43 template <typename DocumentIdT = Aws::String>
44 void SetDocumentId(DocumentIdT&& value) {
45 m_documentIdHasBeenSet = true;
46 m_documentId = std::forward<DocumentIdT>(value);
47 }
48 template <typename DocumentIdT = Aws::String>
49 DocumentInfo& WithDocumentId(DocumentIdT&& value) {
50 SetDocumentId(std::forward<DocumentIdT>(value));
51 return *this;
52 }
54
56
67 inline const Aws::Vector<DocumentAttribute>& GetAttributes() const { return m_attributes; }
68 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
69 template <typename AttributesT = Aws::Vector<DocumentAttribute>>
70 void SetAttributes(AttributesT&& value) {
71 m_attributesHasBeenSet = true;
72 m_attributes = std::forward<AttributesT>(value);
73 }
74 template <typename AttributesT = Aws::Vector<DocumentAttribute>>
75 DocumentInfo& WithAttributes(AttributesT&& value) {
76 SetAttributes(std::forward<AttributesT>(value));
77 return *this;
78 }
79 template <typename AttributesT = DocumentAttribute>
80 DocumentInfo& AddAttributes(AttributesT&& value) {
81 m_attributesHasBeenSet = true;
82 m_attributes.emplace_back(std::forward<AttributesT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_documentId;
88
90 bool m_documentIdHasBeenSet = false;
91 bool m_attributesHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace kendra
96} // namespace Aws
DocumentInfo & AddAttributes(AttributesT &&value)
AWS_KENDRA_API DocumentInfo()=default
const Aws::Vector< DocumentAttribute > & GetAttributes() const
void SetDocumentId(DocumentIdT &&value)
DocumentInfo & WithAttributes(AttributesT &&value)
AWS_KENDRA_API DocumentInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttributes(AttributesT &&value)
AWS_KENDRA_API DocumentInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDocumentId() const
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentInfo & WithDocumentId(DocumentIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue