AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
BatchGetDocumentStatusResult.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kendra/model/BatchGetDocumentStatusResponseError.h>
11#include <aws/kendra/model/Status.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace kendra
27{
28namespace Model
29{
31 {
32 public:
33 AWS_KENDRA_API BatchGetDocumentStatusResult() = default;
36
37
39
44 inline const Aws::Vector<BatchGetDocumentStatusResponseError>& GetErrors() const { return m_errors; }
45 template<typename ErrorsT = Aws::Vector<BatchGetDocumentStatusResponseError>>
46 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
47 template<typename ErrorsT = Aws::Vector<BatchGetDocumentStatusResponseError>>
48 BatchGetDocumentStatusResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
49 template<typename ErrorsT = BatchGetDocumentStatusResponseError>
50 BatchGetDocumentStatusResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
52
54
59 inline const Aws::Vector<Status>& GetDocumentStatusList() const { return m_documentStatusList; }
60 template<typename DocumentStatusListT = Aws::Vector<Status>>
61 void SetDocumentStatusList(DocumentStatusListT&& value) { m_documentStatusListHasBeenSet = true; m_documentStatusList = std::forward<DocumentStatusListT>(value); }
62 template<typename DocumentStatusListT = Aws::Vector<Status>>
63 BatchGetDocumentStatusResult& WithDocumentStatusList(DocumentStatusListT&& value) { SetDocumentStatusList(std::forward<DocumentStatusListT>(value)); return *this;}
64 template<typename DocumentStatusListT = Status>
65 BatchGetDocumentStatusResult& AddDocumentStatusList(DocumentStatusListT&& value) { m_documentStatusListHasBeenSet = true; m_documentStatusList.emplace_back(std::forward<DocumentStatusListT>(value)); return *this; }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template<typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
73 template<typename RequestIdT = Aws::String>
74 BatchGetDocumentStatusResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
76 private:
77
79 bool m_errorsHasBeenSet = false;
80
81 Aws::Vector<Status> m_documentStatusList;
82 bool m_documentStatusListHasBeenSet = false;
83
84 Aws::String m_requestId;
85 bool m_requestIdHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace kendra
90} // 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