AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DocumentInfo.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/model/DocumentAttribute.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 kendra
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_KENDRA_API DocumentInfo() = default;
38 AWS_KENDRA_API DocumentInfo(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDocumentId() const { return m_documentId; }
48 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
49 template<typename DocumentIdT = Aws::String>
50 void SetDocumentId(DocumentIdT&& value) { m_documentIdHasBeenSet = true; m_documentId = std::forward<DocumentIdT>(value); }
51 template<typename DocumentIdT = Aws::String>
52 DocumentInfo& WithDocumentId(DocumentIdT&& value) { SetDocumentId(std::forward<DocumentIdT>(value)); return *this;}
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) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
71 template<typename AttributesT = Aws::Vector<DocumentAttribute>>
72 DocumentInfo& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
73 template<typename AttributesT = DocumentAttribute>
74 DocumentInfo& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
76 private:
77
78 Aws::String m_documentId;
79 bool m_documentIdHasBeenSet = false;
80
82 bool m_attributesHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace kendra
87} // 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