AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
36
37
39
42 inline const Aws::Vector<CollectionDetail>& GetCollectionDetails() const{ return m_collectionDetails; }
43 inline void SetCollectionDetails(const Aws::Vector<CollectionDetail>& value) { m_collectionDetails = value; }
44 inline void SetCollectionDetails(Aws::Vector<CollectionDetail>&& value) { m_collectionDetails = std::move(value); }
47 inline BatchGetCollectionResult& AddCollectionDetails(const CollectionDetail& value) { m_collectionDetails.push_back(value); return *this; }
48 inline BatchGetCollectionResult& AddCollectionDetails(CollectionDetail&& value) { m_collectionDetails.push_back(std::move(value)); return *this; }
50
52
55 inline const Aws::Vector<CollectionErrorDetail>& GetCollectionErrorDetails() const{ return m_collectionErrorDetails; }
56 inline void SetCollectionErrorDetails(const Aws::Vector<CollectionErrorDetail>& value) { m_collectionErrorDetails = value; }
57 inline void SetCollectionErrorDetails(Aws::Vector<CollectionErrorDetail>&& value) { m_collectionErrorDetails = std::move(value); }
60 inline BatchGetCollectionResult& AddCollectionErrorDetails(const CollectionErrorDetail& value) { m_collectionErrorDetails.push_back(value); return *this; }
61 inline BatchGetCollectionResult& AddCollectionErrorDetails(CollectionErrorDetail&& value) { m_collectionErrorDetails.push_back(std::move(value)); return *this; }
63
65
66 inline const Aws::String& GetRequestId() const{ return m_requestId; }
67 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
68 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
69 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
70 inline BatchGetCollectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
71 inline BatchGetCollectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
72 inline BatchGetCollectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
74 private:
75
76 Aws::Vector<CollectionDetail> m_collectionDetails;
77
78 Aws::Vector<CollectionErrorDetail> m_collectionErrorDetails;
79
80 Aws::String m_requestId;
81 };
82
83} // namespace Model
84} // namespace OpenSearchServerless
85} // namespace Aws
BatchGetCollectionResult & AddCollectionErrorDetails(CollectionErrorDetail &&value)
BatchGetCollectionResult & WithRequestId(Aws::String &&value)
void SetCollectionDetails(const Aws::Vector< CollectionDetail > &value)
BatchGetCollectionResult & WithCollectionErrorDetails(const Aws::Vector< CollectionErrorDetail > &value)
AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetCollectionResult & WithRequestId(const Aws::String &value)
BatchGetCollectionResult & WithCollectionDetails(const Aws::Vector< CollectionDetail > &value)
void SetCollectionErrorDetails(const Aws::Vector< CollectionErrorDetail > &value)
BatchGetCollectionResult & AddCollectionDetails(CollectionDetail &&value)
BatchGetCollectionResult & WithCollectionErrorDetails(Aws::Vector< CollectionErrorDetail > &&value)
void SetCollectionErrorDetails(Aws::Vector< CollectionErrorDetail > &&value)
BatchGetCollectionResult & WithCollectionDetails(Aws::Vector< CollectionDetail > &&value)
AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetCollectionResult & WithRequestId(const char *value)
const Aws::Vector< CollectionErrorDetail > & GetCollectionErrorDetails() const
BatchGetCollectionResult & AddCollectionDetails(const CollectionDetail &value)
BatchGetCollectionResult & AddCollectionErrorDetails(const CollectionErrorDetail &value)
void SetCollectionDetails(Aws::Vector< CollectionDetail > &&value)
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