/** * 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 { /** *

Describes the Docker container for the model package.

See * Also:

AWS * API Reference

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

The DNS host name for the Docker container.

*/ inline const Aws::String& GetContainerHostname() const{ return m_containerHostname; } /** *

The DNS host name for the Docker container.

*/ inline bool ContainerHostnameHasBeenSet() const { return m_containerHostnameHasBeenSet; } /** *

The DNS host name for the Docker container.

*/ inline void SetContainerHostname(const Aws::String& value) { m_containerHostnameHasBeenSet = true; m_containerHostname = value; } /** *

The DNS host name for the Docker container.

*/ inline void SetContainerHostname(Aws::String&& value) { m_containerHostnameHasBeenSet = true; m_containerHostname = std::move(value); } /** *

The DNS host name for the Docker container.

*/ inline void SetContainerHostname(const char* value) { m_containerHostnameHasBeenSet = true; m_containerHostname.assign(value); } /** *

The DNS host name for the Docker container.

*/ inline ModelPackageContainerDefinition& WithContainerHostname(const Aws::String& value) { SetContainerHostname(value); return *this;} /** *

The DNS host name for the Docker container.

*/ inline ModelPackageContainerDefinition& WithContainerHostname(Aws::String&& value) { SetContainerHostname(std::move(value)); return *this;} /** *

The DNS host name for the Docker container.

*/ inline ModelPackageContainerDefinition& WithContainerHostname(const char* value) { SetContainerHostname(value); return *this;} /** *

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is * stored.

If you are using your own custom algorithm instead of an * algorithm provided by Amazon SageMaker, the inference code must meet Amazon * SageMaker requirements. Amazon SageMaker supports both * registry/repository[:tag] and * registry/repository[@digest] image path formats. For more * information, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline const Aws::String& GetImage() const{ return m_image; } /** *

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is * stored.

If you are using your own custom algorithm instead of an * algorithm provided by Amazon SageMaker, the inference code must meet Amazon * SageMaker requirements. Amazon SageMaker supports both * registry/repository[:tag] and * registry/repository[@digest] image path formats. For more * information, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } /** *

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is * stored.

If you are using your own custom algorithm instead of an * algorithm provided by Amazon SageMaker, the inference code must meet Amazon * SageMaker requirements. Amazon SageMaker supports both * registry/repository[:tag] and * registry/repository[@digest] image path formats. For more * information, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; } /** *

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is * stored.

If you are using your own custom algorithm instead of an * algorithm provided by Amazon SageMaker, the inference code must meet Amazon * SageMaker requirements. Amazon SageMaker supports both * registry/repository[:tag] and * registry/repository[@digest] image path formats. For more * information, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } /** *

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is * stored.

If you are using your own custom algorithm instead of an * algorithm provided by Amazon SageMaker, the inference code must meet Amazon * SageMaker requirements. Amazon SageMaker supports both * registry/repository[:tag] and * registry/repository[@digest] image path formats. For more * information, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); } /** *

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is * stored.

If you are using your own custom algorithm instead of an * algorithm provided by Amazon SageMaker, the inference code must meet Amazon * SageMaker requirements. Amazon SageMaker supports both * registry/repository[:tag] and * registry/repository[@digest] image path formats. For more * information, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline ModelPackageContainerDefinition& WithImage(const Aws::String& value) { SetImage(value); return *this;} /** *

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is * stored.

If you are using your own custom algorithm instead of an * algorithm provided by Amazon SageMaker, the inference code must meet Amazon * SageMaker requirements. Amazon SageMaker supports both * registry/repository[:tag] and * registry/repository[@digest] image path formats. For more * information, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline ModelPackageContainerDefinition& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;} /** *

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is * stored.

If you are using your own custom algorithm instead of an * algorithm provided by Amazon SageMaker, the inference code must meet Amazon * SageMaker requirements. Amazon SageMaker supports both * registry/repository[:tag] and * registry/repository[@digest] image path formats. For more * information, see Using * Your Own Algorithms with Amazon SageMaker.

*/ inline ModelPackageContainerDefinition& WithImage(const char* value) { SetImage(value); return *this;} /** *

An MD5 hash of the training algorithm that identifies the Docker image used * for training.

*/ inline const Aws::String& GetImageDigest() const{ return m_imageDigest; } /** *

An MD5 hash of the training algorithm that identifies the Docker image used * for training.

*/ inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; } /** *

An MD5 hash of the training algorithm that identifies the Docker image used * for training.

*/ inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; } /** *

An MD5 hash of the training algorithm that identifies the Docker image used * for training.

*/ inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); } /** *

An MD5 hash of the training algorithm that identifies the Docker image used * for training.

*/ inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); } /** *

An MD5 hash of the training algorithm that identifies the Docker image used * for training.

*/ inline ModelPackageContainerDefinition& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;} /** *

An MD5 hash of the training algorithm that identifies the Docker image used * for training.

*/ inline ModelPackageContainerDefinition& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;} /** *

An MD5 hash of the training algorithm that identifies the Docker image used * for training.

*/ inline ModelPackageContainerDefinition& WithImageDigest(const char* value) { SetImageDigest(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).

*/ 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).

*/ 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).

*/ 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).

*/ 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).

*/ 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).

*/ inline ModelPackageContainerDefinition& 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).

*/ inline ModelPackageContainerDefinition& 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).

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

The AWS Marketplace product ID of the model package.

*/ inline const Aws::String& GetProductId() const{ return m_productId; } /** *

The AWS Marketplace product ID of the model package.

*/ inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; } /** *

The AWS Marketplace product ID of the model package.

*/ inline void SetProductId(const Aws::String& value) { m_productIdHasBeenSet = true; m_productId = value; } /** *

The AWS Marketplace product ID of the model package.

*/ inline void SetProductId(Aws::String&& value) { m_productIdHasBeenSet = true; m_productId = std::move(value); } /** *

The AWS Marketplace product ID of the model package.

*/ inline void SetProductId(const char* value) { m_productIdHasBeenSet = true; m_productId.assign(value); } /** *

The AWS Marketplace product ID of the model package.

*/ inline ModelPackageContainerDefinition& WithProductId(const Aws::String& value) { SetProductId(value); return *this;} /** *

The AWS Marketplace product ID of the model package.

*/ inline ModelPackageContainerDefinition& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;} /** *

The AWS Marketplace product ID of the model package.

*/ inline ModelPackageContainerDefinition& WithProductId(const char* value) { SetProductId(value); return *this;} private: Aws::String m_containerHostname; bool m_containerHostnameHasBeenSet; Aws::String m_image; bool m_imageHasBeenSet; Aws::String m_imageDigest; bool m_imageDigestHasBeenSet; Aws::String m_modelDataUrl; bool m_modelDataUrlHasBeenSet; Aws::String m_productId; bool m_productIdHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws