AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchGetCollectionResult.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/opensearchserverless/OpenSearchServerless_EXPORTS.h>
10#include <aws/opensearchserverless/model/CollectionDetail.h>
11#include <aws/opensearchserverless/model/CollectionErrorDetail.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 OpenSearchServerless {
25namespace Model {
27 public:
28 AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult() = default;
31
33
36 inline const Aws::Vector<CollectionDetail>& GetCollectionDetails() const { return m_collectionDetails; }
37 template <typename CollectionDetailsT = Aws::Vector<CollectionDetail>>
38 void SetCollectionDetails(CollectionDetailsT&& value) {
39 m_collectionDetailsHasBeenSet = true;
40 m_collectionDetails = std::forward<CollectionDetailsT>(value);
41 }
42 template <typename CollectionDetailsT = Aws::Vector<CollectionDetail>>
43 BatchGetCollectionResult& WithCollectionDetails(CollectionDetailsT&& value) {
44 SetCollectionDetails(std::forward<CollectionDetailsT>(value));
45 return *this;
46 }
47 template <typename CollectionDetailsT = CollectionDetail>
48 BatchGetCollectionResult& AddCollectionDetails(CollectionDetailsT&& value) {
49 m_collectionDetailsHasBeenSet = true;
50 m_collectionDetails.emplace_back(std::forward<CollectionDetailsT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<CollectionErrorDetail>& GetCollectionErrorDetails() const { return m_collectionErrorDetails; }
60 template <typename CollectionErrorDetailsT = Aws::Vector<CollectionErrorDetail>>
61 void SetCollectionErrorDetails(CollectionErrorDetailsT&& value) {
62 m_collectionErrorDetailsHasBeenSet = true;
63 m_collectionErrorDetails = std::forward<CollectionErrorDetailsT>(value);
64 }
65 template <typename CollectionErrorDetailsT = Aws::Vector<CollectionErrorDetail>>
66 BatchGetCollectionResult& WithCollectionErrorDetails(CollectionErrorDetailsT&& value) {
67 SetCollectionErrorDetails(std::forward<CollectionErrorDetailsT>(value));
68 return *this;
69 }
70 template <typename CollectionErrorDetailsT = CollectionErrorDetail>
71 BatchGetCollectionResult& AddCollectionErrorDetails(CollectionErrorDetailsT&& value) {
72 m_collectionErrorDetailsHasBeenSet = true;
73 m_collectionErrorDetails.emplace_back(std::forward<CollectionErrorDetailsT>(value));
74 return *this;
75 }
77
79
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 template <typename RequestIdT = Aws::String>
82 void SetRequestId(RequestIdT&& value) {
83 m_requestIdHasBeenSet = true;
84 m_requestId = std::forward<RequestIdT>(value);
85 }
86 template <typename RequestIdT = Aws::String>
88 SetRequestId(std::forward<RequestIdT>(value));
89 return *this;
90 }
92 private:
93 Aws::Vector<CollectionDetail> m_collectionDetails;
94
95 Aws::Vector<CollectionErrorDetail> m_collectionErrorDetails;
96
97 Aws::String m_requestId;
98 bool m_collectionDetailsHasBeenSet = false;
99 bool m_collectionErrorDetailsHasBeenSet = false;
100 bool m_requestIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace OpenSearchServerless
105} // 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