/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Specifies an algorithm that was used to create the model package. The * algorithm must be either an algorithm resource in your SageMaker account or an * algorithm in Amazon Web Services Marketplace that you are subscribed * to.

See Also:

AWS * API Reference

*/ class SourceAlgorithm { public: AWS_SAGEMAKER_API SourceAlgorithm(); AWS_SAGEMAKER_API SourceAlgorithm(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API SourceAlgorithm& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon S3 path where the model artifacts, which result from model * training, are stored. This path must point to a single gzip * compressed tar archive (.tar.gz suffix).

The model * artifacts must be in an S3 bucket that is in the same Amazon Web Services region * as the algorithm.

*/ inline const Aws::String& GetModelDataUrl() const{ return m_modelDataUrl; } /** *

The Amazon S3 path where the model artifacts, which result from model * training, are stored. This path must point to a single gzip * compressed tar archive (.tar.gz suffix).

The model * artifacts must be in an S3 bucket that is in the same Amazon Web Services region * as the algorithm.

*/ inline bool ModelDataUrlHasBeenSet() const { return m_modelDataUrlHasBeenSet; } /** *

The Amazon S3 path where the model artifacts, which result from model * training, are stored. This path must point to a single gzip * compressed tar archive (.tar.gz suffix).

The model * artifacts must be in an S3 bucket that is in the same Amazon Web Services region * as the algorithm.

*/ inline void SetModelDataUrl(const Aws::String& value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl = value; } /** *

The Amazon S3 path where the model artifacts, which result from model * training, are stored. This path must point to a single gzip * compressed tar archive (.tar.gz suffix).

The model * artifacts must be in an S3 bucket that is in the same Amazon Web Services region * as the algorithm.

*/ inline void SetModelDataUrl(Aws::String&& value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl = std::move(value); } /** *

The Amazon S3 path where the model artifacts, which result from model * training, are stored. This path must point to a single gzip * compressed tar archive (.tar.gz suffix).

The model * artifacts must be in an S3 bucket that is in the same Amazon Web Services region * as the algorithm.

*/ inline void SetModelDataUrl(const char* value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl.assign(value); } /** *

The Amazon S3 path where the model artifacts, which result from model * training, are stored. This path must point to a single gzip * compressed tar archive (.tar.gz suffix).

The model * artifacts must be in an S3 bucket that is in the same Amazon Web Services region * as the algorithm.

*/ inline SourceAlgorithm& WithModelDataUrl(const Aws::String& value) { SetModelDataUrl(value); return *this;} /** *

The Amazon S3 path where the model artifacts, which result from model * training, are stored. This path must point to a single gzip * compressed tar archive (.tar.gz suffix).

The model * artifacts must be in an S3 bucket that is in the same Amazon Web Services region * as the algorithm.

*/ inline SourceAlgorithm& WithModelDataUrl(Aws::String&& value) { SetModelDataUrl(std::move(value)); return *this;} /** *

The Amazon S3 path where the model artifacts, which result from model * training, are stored. This path must point to a single gzip * compressed tar archive (.tar.gz suffix).

The model * artifacts must be in an S3 bucket that is in the same Amazon Web Services region * as the algorithm.

*/ inline SourceAlgorithm& WithModelDataUrl(const char* value) { SetModelDataUrl(value); return *this;} /** *

The name of an algorithm that was used to create the model package. The * algorithm must be either an algorithm resource in your SageMaker account or an * algorithm in Amazon Web Services Marketplace that you are subscribed to.

*/ inline const Aws::String& GetAlgorithmName() const{ return m_algorithmName; } /** *

The name of an algorithm that was used to create the model package. The * algorithm must be either an algorithm resource in your SageMaker account or an * algorithm in Amazon Web Services Marketplace that you are subscribed to.

*/ inline bool AlgorithmNameHasBeenSet() const { return m_algorithmNameHasBeenSet; } /** *

The name of an algorithm that was used to create the model package. The * algorithm must be either an algorithm resource in your SageMaker account or an * algorithm in Amazon Web Services Marketplace that you are subscribed to.

*/ inline void SetAlgorithmName(const Aws::String& value) { m_algorithmNameHasBeenSet = true; m_algorithmName = value; } /** *

The name of an algorithm that was used to create the model package. The * algorithm must be either an algorithm resource in your SageMaker account or an * algorithm in Amazon Web Services Marketplace that you are subscribed to.

*/ inline void SetAlgorithmName(Aws::String&& value) { m_algorithmNameHasBeenSet = true; m_algorithmName = std::move(value); } /** *

The name of an algorithm that was used to create the model package. The * algorithm must be either an algorithm resource in your SageMaker account or an * algorithm in Amazon Web Services Marketplace that you are subscribed to.

*/ inline void SetAlgorithmName(const char* value) { m_algorithmNameHasBeenSet = true; m_algorithmName.assign(value); } /** *

The name of an algorithm that was used to create the model package. The * algorithm must be either an algorithm resource in your SageMaker account or an * algorithm in Amazon Web Services Marketplace that you are subscribed to.

*/ inline SourceAlgorithm& WithAlgorithmName(const Aws::String& value) { SetAlgorithmName(value); return *this;} /** *

The name of an algorithm that was used to create the model package. The * algorithm must be either an algorithm resource in your SageMaker account or an * algorithm in Amazon Web Services Marketplace that you are subscribed to.

*/ inline SourceAlgorithm& WithAlgorithmName(Aws::String&& value) { SetAlgorithmName(std::move(value)); return *this;} /** *

The name of an algorithm that was used to create the model package. The * algorithm must be either an algorithm resource in your SageMaker account or an * algorithm in Amazon Web Services Marketplace that you are subscribed to.

*/ inline SourceAlgorithm& WithAlgorithmName(const char* value) { SetAlgorithmName(value); return *this;} private: Aws::String m_modelDataUrl; bool m_modelDataUrlHasBeenSet = false; Aws::String m_algorithmName; bool m_algorithmNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws