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

The summaries for the model package versions

*/ inline const Aws::Map& GetModelPackageSummaries() const{ return m_modelPackageSummaries; } /** *

The summaries for the model package versions

*/ inline void SetModelPackageSummaries(const Aws::Map& value) { m_modelPackageSummaries = value; } /** *

The summaries for the model package versions

*/ inline void SetModelPackageSummaries(Aws::Map&& value) { m_modelPackageSummaries = std::move(value); } /** *

The summaries for the model package versions

*/ inline BatchDescribeModelPackageResult& WithModelPackageSummaries(const Aws::Map& value) { SetModelPackageSummaries(value); return *this;} /** *

The summaries for the model package versions

*/ inline BatchDescribeModelPackageResult& WithModelPackageSummaries(Aws::Map&& value) { SetModelPackageSummaries(std::move(value)); return *this;} /** *

The summaries for the model package versions

*/ inline BatchDescribeModelPackageResult& AddModelPackageSummaries(const Aws::String& key, const BatchDescribeModelPackageSummary& value) { m_modelPackageSummaries.emplace(key, value); return *this; } /** *

The summaries for the model package versions

*/ inline BatchDescribeModelPackageResult& AddModelPackageSummaries(Aws::String&& key, const BatchDescribeModelPackageSummary& value) { m_modelPackageSummaries.emplace(std::move(key), value); return *this; } /** *

The summaries for the model package versions

*/ inline BatchDescribeModelPackageResult& AddModelPackageSummaries(const Aws::String& key, BatchDescribeModelPackageSummary&& value) { m_modelPackageSummaries.emplace(key, std::move(value)); return *this; } /** *

The summaries for the model package versions

*/ inline BatchDescribeModelPackageResult& AddModelPackageSummaries(Aws::String&& key, BatchDescribeModelPackageSummary&& value) { m_modelPackageSummaries.emplace(std::move(key), std::move(value)); return *this; } /** *

The summaries for the model package versions

*/ inline BatchDescribeModelPackageResult& AddModelPackageSummaries(const char* key, BatchDescribeModelPackageSummary&& value) { m_modelPackageSummaries.emplace(key, std::move(value)); return *this; } /** *

The summaries for the model package versions

*/ inline BatchDescribeModelPackageResult& AddModelPackageSummaries(const char* key, const BatchDescribeModelPackageSummary& value) { m_modelPackageSummaries.emplace(key, value); return *this; } /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline const Aws::Map& GetBatchDescribeModelPackageErrorMap() const{ return m_batchDescribeModelPackageErrorMap; } /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline void SetBatchDescribeModelPackageErrorMap(const Aws::Map& value) { m_batchDescribeModelPackageErrorMap = value; } /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline void SetBatchDescribeModelPackageErrorMap(Aws::Map&& value) { m_batchDescribeModelPackageErrorMap = std::move(value); } /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline BatchDescribeModelPackageResult& WithBatchDescribeModelPackageErrorMap(const Aws::Map& value) { SetBatchDescribeModelPackageErrorMap(value); return *this;} /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline BatchDescribeModelPackageResult& WithBatchDescribeModelPackageErrorMap(Aws::Map&& value) { SetBatchDescribeModelPackageErrorMap(std::move(value)); return *this;} /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline BatchDescribeModelPackageResult& AddBatchDescribeModelPackageErrorMap(const Aws::String& key, const BatchDescribeModelPackageError& value) { m_batchDescribeModelPackageErrorMap.emplace(key, value); return *this; } /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline BatchDescribeModelPackageResult& AddBatchDescribeModelPackageErrorMap(Aws::String&& key, const BatchDescribeModelPackageError& value) { m_batchDescribeModelPackageErrorMap.emplace(std::move(key), value); return *this; } /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline BatchDescribeModelPackageResult& AddBatchDescribeModelPackageErrorMap(const Aws::String& key, BatchDescribeModelPackageError&& value) { m_batchDescribeModelPackageErrorMap.emplace(key, std::move(value)); return *this; } /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline BatchDescribeModelPackageResult& AddBatchDescribeModelPackageErrorMap(Aws::String&& key, BatchDescribeModelPackageError&& value) { m_batchDescribeModelPackageErrorMap.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline BatchDescribeModelPackageResult& AddBatchDescribeModelPackageErrorMap(const char* key, BatchDescribeModelPackageError&& value) { m_batchDescribeModelPackageErrorMap.emplace(key, std::move(value)); return *this; } /** *

A map of the resource and BatchDescribeModelPackageError objects reporting * the error associated with describing the model package.

*/ inline BatchDescribeModelPackageResult& AddBatchDescribeModelPackageErrorMap(const char* key, const BatchDescribeModelPackageError& value) { m_batchDescribeModelPackageErrorMap.emplace(key, 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 BatchDescribeModelPackageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchDescribeModelPackageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchDescribeModelPackageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Map m_modelPackageSummaries; Aws::Map m_batchDescribeModelPackageErrorMap; Aws::String m_requestId; }; } // namespace Model } // namespace SageMaker } // namespace Aws