/** * 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 CleanRooms { namespace Model { class BatchGetSchemaResult { public: AWS_CLEANROOMS_API BatchGetSchemaResult(); AWS_CLEANROOMS_API BatchGetSchemaResult(const Aws::AmazonWebServiceResult& result); AWS_CLEANROOMS_API BatchGetSchemaResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The retrieved list of schemas.

*/ inline const Aws::Vector& GetSchemas() const{ return m_schemas; } /** *

The retrieved list of schemas.

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

The retrieved list of schemas.

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

The retrieved list of schemas.

*/ inline BatchGetSchemaResult& WithSchemas(const Aws::Vector& value) { SetSchemas(value); return *this;} /** *

The retrieved list of schemas.

*/ inline BatchGetSchemaResult& WithSchemas(Aws::Vector&& value) { SetSchemas(std::move(value)); return *this;} /** *

The retrieved list of schemas.

*/ inline BatchGetSchemaResult& AddSchemas(const Schema& value) { m_schemas.push_back(value); return *this; } /** *

The retrieved list of schemas.

*/ inline BatchGetSchemaResult& AddSchemas(Schema&& value) { m_schemas.push_back(std::move(value)); return *this; } /** *

Error reasons for schemas that could not be retrieved. One error is returned * for every schema that could not be retrieved.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

Error reasons for schemas that could not be retrieved. One error is returned * for every schema that could not be retrieved.

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

Error reasons for schemas that could not be retrieved. One error is returned * for every schema that could not be retrieved.

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

Error reasons for schemas that could not be retrieved. One error is returned * for every schema that could not be retrieved.

*/ inline BatchGetSchemaResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

Error reasons for schemas that could not be retrieved. One error is returned * for every schema that could not be retrieved.

*/ inline BatchGetSchemaResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

Error reasons for schemas that could not be retrieved. One error is returned * for every schema that could not be retrieved.

*/ inline BatchGetSchemaResult& AddErrors(const BatchGetSchemaError& value) { m_errors.push_back(value); return *this; } /** *

Error reasons for schemas that could not be retrieved. One error is returned * for every schema that could not be retrieved.

*/ inline BatchGetSchemaResult& AddErrors(BatchGetSchemaError&& value) { m_errors.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 BatchGetSchemaResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetSchemaResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetSchemaResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_schemas; Aws::Vector m_errors; Aws::String m_requestId; }; } // namespace Model } // namespace CleanRooms } // namespace Aws