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

A list of container definitions that describe the different containers that * make up an AutoML candidate. For more information, see * ContainerDefinition.

See Also:

AWS * API Reference

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

The Amazon Elastic Container Registry (Amazon ECR) path of the container. For * more information, see * ContainerDefinition.

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

The Amazon Elastic Container Registry (Amazon ECR) path of the container. For * more information, see * ContainerDefinition.

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

The Amazon Elastic Container Registry (Amazon ECR) path of the container. For * more information, see * ContainerDefinition.

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

The Amazon Elastic Container Registry (Amazon ECR) path of the container. For * more information, see * ContainerDefinition.

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

The Amazon Elastic Container Registry (Amazon ECR) path of the container. For * more information, see * ContainerDefinition.

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

The Amazon Elastic Container Registry (Amazon ECR) path of the container. For * more information, see * ContainerDefinition.

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

The Amazon Elastic Container Registry (Amazon ECR) path of the container. For * more information, see * ContainerDefinition.

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

The Amazon Elastic Container Registry (Amazon ECR) path of the container. For * more information, see * ContainerDefinition.

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

The location of the model artifacts. For more information, see * ContainerDefinition.

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

The location of the model artifacts. For more information, see * ContainerDefinition.

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

The location of the model artifacts. For more information, see * ContainerDefinition.

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

The location of the model artifacts. For more information, see * ContainerDefinition.

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

The location of the model artifacts. For more information, see * ContainerDefinition.

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

The location of the model artifacts. For more information, see * ContainerDefinition.

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

The location of the model artifacts. For more information, see * ContainerDefinition.

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

The location of the model artifacts. For more information, see * ContainerDefinition.

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

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline const Aws::Map& GetEnvironment() const{ return m_environment; } /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; } /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline void SetEnvironment(const Aws::Map& value) { m_environmentHasBeenSet = true; m_environment = value; } /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline void SetEnvironment(Aws::Map&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); } /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline AutoMLContainerDefinition& WithEnvironment(const Aws::Map& value) { SetEnvironment(value); return *this;} /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline AutoMLContainerDefinition& WithEnvironment(Aws::Map&& value) { SetEnvironment(std::move(value)); return *this;} /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline AutoMLContainerDefinition& AddEnvironment(const Aws::String& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; } /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline AutoMLContainerDefinition& AddEnvironment(Aws::String&& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; } /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline AutoMLContainerDefinition& AddEnvironment(const Aws::String& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; } /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline AutoMLContainerDefinition& AddEnvironment(Aws::String&& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), std::move(value)); return *this; } /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline AutoMLContainerDefinition& AddEnvironment(const char* key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; } /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline AutoMLContainerDefinition& AddEnvironment(Aws::String&& key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; } /** *

The environment variables to set in the container. For more information, see * * ContainerDefinition.

*/ inline AutoMLContainerDefinition& AddEnvironment(const char* key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; } private: Aws::String m_image; bool m_imageHasBeenSet = false; Aws::String m_modelDataUrl; bool m_modelDataUrlHasBeenSet = false; Aws::Map m_environment; bool m_environmentHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws