/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace OpenSearchServerless { namespace Model { class BatchGetCollectionResult { public: AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult(); AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult(const Aws::AmazonWebServiceResult& result); AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Details about each collection.

*/ inline const Aws::Vector& GetCollectionDetails() const{ return m_collectionDetails; } /** *

Details about each collection.

*/ inline void SetCollectionDetails(const Aws::Vector& value) { m_collectionDetails = value; } /** *

Details about each collection.

*/ inline void SetCollectionDetails(Aws::Vector&& value) { m_collectionDetails = std::move(value); } /** *

Details about each collection.

*/ inline BatchGetCollectionResult& WithCollectionDetails(const Aws::Vector& value) { SetCollectionDetails(value); return *this;} /** *

Details about each collection.

*/ inline BatchGetCollectionResult& WithCollectionDetails(Aws::Vector&& value) { SetCollectionDetails(std::move(value)); return *this;} /** *

Details about each collection.

*/ inline BatchGetCollectionResult& AddCollectionDetails(const CollectionDetail& value) { m_collectionDetails.push_back(value); return *this; } /** *

Details about each collection.

*/ inline BatchGetCollectionResult& AddCollectionDetails(CollectionDetail&& value) { m_collectionDetails.push_back(std::move(value)); return *this; } /** *

Error information for the request.

*/ inline const Aws::Vector& GetCollectionErrorDetails() const{ return m_collectionErrorDetails; } /** *

Error information for the request.

*/ inline void SetCollectionErrorDetails(const Aws::Vector& value) { m_collectionErrorDetails = value; } /** *

Error information for the request.

*/ inline void SetCollectionErrorDetails(Aws::Vector&& value) { m_collectionErrorDetails = std::move(value); } /** *

Error information for the request.

*/ inline BatchGetCollectionResult& WithCollectionErrorDetails(const Aws::Vector& value) { SetCollectionErrorDetails(value); return *this;} /** *

Error information for the request.

*/ inline BatchGetCollectionResult& WithCollectionErrorDetails(Aws::Vector&& value) { SetCollectionErrorDetails(std::move(value)); return *this;} /** *

Error information for the request.

*/ inline BatchGetCollectionResult& AddCollectionErrorDetails(const CollectionErrorDetail& value) { m_collectionErrorDetails.push_back(value); return *this; } /** *

Error information for the request.

*/ inline BatchGetCollectionResult& AddCollectionErrorDetails(CollectionErrorDetail&& value) { m_collectionErrorDetails.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchGetCollectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetCollectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetCollectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_collectionDetails; Aws::Vector m_collectionErrorDetails; Aws::String m_requestId; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws