AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchGetDocumentStatusResult.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/BatchGetDocumentStatusResponseError.h>
11#include <aws/kendra/model/Status.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace kendra {
25namespace Model {
27 public:
28 AWS_KENDRA_API BatchGetDocumentStatusResult() = default;
31
33
38 inline const Aws::Vector<BatchGetDocumentStatusResponseError>& GetErrors() const { return m_errors; }
39 template <typename ErrorsT = Aws::Vector<BatchGetDocumentStatusResponseError>>
40 void SetErrors(ErrorsT&& value) {
41 m_errorsHasBeenSet = true;
42 m_errors = std::forward<ErrorsT>(value);
43 }
44 template <typename ErrorsT = Aws::Vector<BatchGetDocumentStatusResponseError>>
46 SetErrors(std::forward<ErrorsT>(value));
47 return *this;
48 }
49 template <typename ErrorsT = BatchGetDocumentStatusResponseError>
51 m_errorsHasBeenSet = true;
52 m_errors.emplace_back(std::forward<ErrorsT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::Vector<Status>& GetDocumentStatusList() const { return m_documentStatusList; }
64 template <typename DocumentStatusListT = Aws::Vector<Status>>
65 void SetDocumentStatusList(DocumentStatusListT&& value) {
66 m_documentStatusListHasBeenSet = true;
67 m_documentStatusList = std::forward<DocumentStatusListT>(value);
68 }
69 template <typename DocumentStatusListT = Aws::Vector<Status>>
71 SetDocumentStatusList(std::forward<DocumentStatusListT>(value));
72 return *this;
73 }
74 template <typename DocumentStatusListT = Status>
76 m_documentStatusListHasBeenSet = true;
77 m_documentStatusList.emplace_back(std::forward<DocumentStatusListT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 private:
98
99 Aws::Vector<Status> m_documentStatusList;
100
101 Aws::String m_requestId;
102 bool m_errorsHasBeenSet = false;
103 bool m_documentStatusListHasBeenSet = false;
104 bool m_requestIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace kendra
109} // namespace Aws
AWS_KENDRA_API BatchGetDocumentStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetDocumentStatusResult & WithRequestId(RequestIdT &&value)
AWS_KENDRA_API BatchGetDocumentStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetDocumentStatusResult & WithErrors(ErrorsT &&value)
BatchGetDocumentStatusResult & WithDocumentStatusList(DocumentStatusListT &&value)
const Aws::Vector< BatchGetDocumentStatusResponseError > & GetErrors() const
BatchGetDocumentStatusResult & AddErrors(ErrorsT &&value)
AWS_KENDRA_API BatchGetDocumentStatusResult()=default
BatchGetDocumentStatusResult & AddDocumentStatusList(DocumentStatusListT &&value)
const Aws::Vector< Status > & GetDocumentStatusList() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue