AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
BatchGetCollectionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
11#include <aws/opensearchserverless/model/CollectionDetail.h>
12#include <aws/opensearchserverless/model/CollectionErrorDetail.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchServerless {
26namespace Model {
28 public:
29 AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult() = default;
32
34
37 inline const Aws::Vector<CollectionDetail>& GetCollectionDetails() const { return m_collectionDetails; }
38 template <typename CollectionDetailsT = Aws::Vector<CollectionDetail>>
39 void SetCollectionDetails(CollectionDetailsT&& value) {
40 m_collectionDetailsHasBeenSet = true;
41 m_collectionDetails = std::forward<CollectionDetailsT>(value);
42 }
43 template <typename CollectionDetailsT = Aws::Vector<CollectionDetail>>
44 BatchGetCollectionResult& WithCollectionDetails(CollectionDetailsT&& value) {
45 SetCollectionDetails(std::forward<CollectionDetailsT>(value));
46 return *this;
47 }
48 template <typename CollectionDetailsT = CollectionDetail>
49 BatchGetCollectionResult& AddCollectionDetails(CollectionDetailsT&& value) {
50 m_collectionDetailsHasBeenSet = true;
51 m_collectionDetails.emplace_back(std::forward<CollectionDetailsT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<CollectionErrorDetail>& GetCollectionErrorDetails() const { return m_collectionErrorDetails; }
61 template <typename CollectionErrorDetailsT = Aws::Vector<CollectionErrorDetail>>
62 void SetCollectionErrorDetails(CollectionErrorDetailsT&& value) {
63 m_collectionErrorDetailsHasBeenSet = true;
64 m_collectionErrorDetails = std::forward<CollectionErrorDetailsT>(value);
65 }
66 template <typename CollectionErrorDetailsT = Aws::Vector<CollectionErrorDetail>>
67 BatchGetCollectionResult& WithCollectionErrorDetails(CollectionErrorDetailsT&& value) {
68 SetCollectionErrorDetails(std::forward<CollectionErrorDetailsT>(value));
69 return *this;
70 }
71 template <typename CollectionErrorDetailsT = CollectionErrorDetail>
72 BatchGetCollectionResult& AddCollectionErrorDetails(CollectionErrorDetailsT&& value) {
73 m_collectionErrorDetailsHasBeenSet = true;
74 m_collectionErrorDetails.emplace_back(std::forward<CollectionErrorDetailsT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
94
95 private:
96 Aws::Vector<CollectionDetail> m_collectionDetails;
97
98 Aws::Vector<CollectionErrorDetail> m_collectionErrorDetails;
99
100 Aws::String m_requestId;
101 Aws::Http::HttpResponseCode m_HttpResponseCode;
102 bool m_collectionDetailsHasBeenSet = false;
103 bool m_collectionErrorDetailsHasBeenSet = false;
104 bool m_requestIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace OpenSearchServerless
109} // namespace Aws
BatchGetCollectionResult & AddCollectionDetails(CollectionDetailsT &&value)
AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetCollectionResult & WithCollectionErrorDetails(CollectionErrorDetailsT &&value)
AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult()=default
BatchGetCollectionResult & WithCollectionDetails(CollectionDetailsT &&value)
AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetCollectionResult & WithRequestId(RequestIdT &&value)
BatchGetCollectionResult & AddCollectionErrorDetails(CollectionErrorDetailsT &&value)
const Aws::Vector< CollectionErrorDetail > & GetCollectionErrorDetails() const
const Aws::Vector< CollectionDetail > & GetCollectionDetails() 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