/** * 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 whether the model container is in Amazon ECR or a private Docker * registry in your Amazon Virtual Private Cloud (VPC).

See Also:

* AWS * API Reference

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

Set this to one of the following values:

  • * Platform - The model image is hosted in Amazon ECR.

  • *

    VPC - The model image is hosted in a private Docker registry in * your VPC.

*/ inline const RepositoryAccessMode& GetRepositoryAccessMode() const{ return m_repositoryAccessMode; } /** *

Set this to one of the following values:

  • * Platform - The model image is hosted in Amazon ECR.

  • *

    VPC - The model image is hosted in a private Docker registry in * your VPC.

*/ inline bool RepositoryAccessModeHasBeenSet() const { return m_repositoryAccessModeHasBeenSet; } /** *

Set this to one of the following values:

  • * Platform - The model image is hosted in Amazon ECR.

  • *

    VPC - The model image is hosted in a private Docker registry in * your VPC.

*/ inline void SetRepositoryAccessMode(const RepositoryAccessMode& value) { m_repositoryAccessModeHasBeenSet = true; m_repositoryAccessMode = value; } /** *

Set this to one of the following values:

  • * Platform - The model image is hosted in Amazon ECR.

  • *

    VPC - The model image is hosted in a private Docker registry in * your VPC.

*/ inline void SetRepositoryAccessMode(RepositoryAccessMode&& value) { m_repositoryAccessModeHasBeenSet = true; m_repositoryAccessMode = std::move(value); } /** *

Set this to one of the following values:

  • * Platform - The model image is hosted in Amazon ECR.

  • *

    VPC - The model image is hosted in a private Docker registry in * your VPC.

*/ inline ImageConfig& WithRepositoryAccessMode(const RepositoryAccessMode& value) { SetRepositoryAccessMode(value); return *this;} /** *

Set this to one of the following values:

  • * Platform - The model image is hosted in Amazon ECR.

  • *

    VPC - The model image is hosted in a private Docker registry in * your VPC.

*/ inline ImageConfig& WithRepositoryAccessMode(RepositoryAccessMode&& value) { SetRepositoryAccessMode(std::move(value)); return *this;} private: RepositoryAccessMode m_repositoryAccessMode; bool m_repositoryAccessModeHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws