AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchGetCollectionResult.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearchserverless/model/CollectionDetail.h>
11#include <aws/opensearchserverless/model/CollectionErrorDetail.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 OpenSearchServerless
27{
28namespace Model
29{
31 {
32 public:
33 AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult() = default;
36
37
39
42 inline const Aws::Vector<CollectionDetail>& GetCollectionDetails() const { return m_collectionDetails; }
43 template<typename CollectionDetailsT = Aws::Vector<CollectionDetail>>
44 void SetCollectionDetails(CollectionDetailsT&& value) { m_collectionDetailsHasBeenSet = true; m_collectionDetails = std::forward<CollectionDetailsT>(value); }
45 template<typename CollectionDetailsT = Aws::Vector<CollectionDetail>>
46 BatchGetCollectionResult& WithCollectionDetails(CollectionDetailsT&& value) { SetCollectionDetails(std::forward<CollectionDetailsT>(value)); return *this;}
47 template<typename CollectionDetailsT = CollectionDetail>
48 BatchGetCollectionResult& AddCollectionDetails(CollectionDetailsT&& value) { m_collectionDetailsHasBeenSet = true; m_collectionDetails.emplace_back(std::forward<CollectionDetailsT>(value)); return *this; }
50
52
55 inline const Aws::Vector<CollectionErrorDetail>& GetCollectionErrorDetails() const { return m_collectionErrorDetails; }
56 template<typename CollectionErrorDetailsT = Aws::Vector<CollectionErrorDetail>>
57 void SetCollectionErrorDetails(CollectionErrorDetailsT&& value) { m_collectionErrorDetailsHasBeenSet = true; m_collectionErrorDetails = std::forward<CollectionErrorDetailsT>(value); }
58 template<typename CollectionErrorDetailsT = Aws::Vector<CollectionErrorDetail>>
59 BatchGetCollectionResult& WithCollectionErrorDetails(CollectionErrorDetailsT&& value) { SetCollectionErrorDetails(std::forward<CollectionErrorDetailsT>(value)); return *this;}
60 template<typename CollectionErrorDetailsT = CollectionErrorDetail>
61 BatchGetCollectionResult& AddCollectionErrorDetails(CollectionErrorDetailsT&& value) { m_collectionErrorDetailsHasBeenSet = true; m_collectionErrorDetails.emplace_back(std::forward<CollectionErrorDetailsT>(value)); return *this; }
63
65
66 inline const Aws::String& GetRequestId() const { return m_requestId; }
67 template<typename RequestIdT = Aws::String>
68 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
69 template<typename RequestIdT = Aws::String>
70 BatchGetCollectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
72 private:
73
74 Aws::Vector<CollectionDetail> m_collectionDetails;
75 bool m_collectionDetailsHasBeenSet = false;
76
77 Aws::Vector<CollectionErrorDetail> m_collectionErrorDetails;
78 bool m_collectionErrorDetailsHasBeenSet = false;
79
80 Aws::String m_requestId;
81 bool m_requestIdHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace OpenSearchServerless
86} // 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