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

Summary of the deployment configuration of a model.

See Also:

* AWS * API Reference

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

The name of the Amazon SageMaker Model entity.

*/ inline const Aws::String& GetModelName() const{ return m_modelName; } /** *

The name of the Amazon SageMaker Model entity.

*/ inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; } /** *

The name of the Amazon SageMaker Model entity.

*/ inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; } /** *

The name of the Amazon SageMaker Model entity.

*/ inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); } /** *

The name of the Amazon SageMaker Model entity.

*/ inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); } /** *

The name of the Amazon SageMaker Model entity.

*/ inline ModelVariantConfigSummary& WithModelName(const Aws::String& value) { SetModelName(value); return *this;} /** *

The name of the Amazon SageMaker Model entity.

*/ inline ModelVariantConfigSummary& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;} /** *

The name of the Amazon SageMaker Model entity.

*/ inline ModelVariantConfigSummary& WithModelName(const char* value) { SetModelName(value); return *this;} /** *

The name of the variant.

*/ inline const Aws::String& GetVariantName() const{ return m_variantName; } /** *

The name of the variant.

*/ inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; } /** *

The name of the variant.

*/ inline void SetVariantName(const Aws::String& value) { m_variantNameHasBeenSet = true; m_variantName = value; } /** *

The name of the variant.

*/ inline void SetVariantName(Aws::String&& value) { m_variantNameHasBeenSet = true; m_variantName = std::move(value); } /** *

The name of the variant.

*/ inline void SetVariantName(const char* value) { m_variantNameHasBeenSet = true; m_variantName.assign(value); } /** *

The name of the variant.

*/ inline ModelVariantConfigSummary& WithVariantName(const Aws::String& value) { SetVariantName(value); return *this;} /** *

The name of the variant.

*/ inline ModelVariantConfigSummary& WithVariantName(Aws::String&& value) { SetVariantName(std::move(value)); return *this;} /** *

The name of the variant.

*/ inline ModelVariantConfigSummary& WithVariantName(const char* value) { SetVariantName(value); return *this;} /** *

The configuration of the infrastructure that the model has been deployed * to.

*/ inline const ModelInfrastructureConfig& GetInfrastructureConfig() const{ return m_infrastructureConfig; } /** *

The configuration of the infrastructure that the model has been deployed * to.

*/ inline bool InfrastructureConfigHasBeenSet() const { return m_infrastructureConfigHasBeenSet; } /** *

The configuration of the infrastructure that the model has been deployed * to.

*/ inline void SetInfrastructureConfig(const ModelInfrastructureConfig& value) { m_infrastructureConfigHasBeenSet = true; m_infrastructureConfig = value; } /** *

The configuration of the infrastructure that the model has been deployed * to.

*/ inline void SetInfrastructureConfig(ModelInfrastructureConfig&& value) { m_infrastructureConfigHasBeenSet = true; m_infrastructureConfig = std::move(value); } /** *

The configuration of the infrastructure that the model has been deployed * to.

*/ inline ModelVariantConfigSummary& WithInfrastructureConfig(const ModelInfrastructureConfig& value) { SetInfrastructureConfig(value); return *this;} /** *

The configuration of the infrastructure that the model has been deployed * to.

*/ inline ModelVariantConfigSummary& WithInfrastructureConfig(ModelInfrastructureConfig&& value) { SetInfrastructureConfig(std::move(value)); return *this;} /** *

The status of deployment for the model variant on the hosted inference * endpoint.

  • Creating - Amazon SageMaker is * preparing the model variant on the hosted inference endpoint.

  • *

    InService - The model variant is running on the hosted * inference endpoint.

  • Updating - Amazon SageMaker * is updating the model variant on the hosted inference endpoint.

  • *

    Deleting - Amazon SageMaker is deleting the model variant on * the hosted inference endpoint.

  • Deleted - The * model variant has been deleted on the hosted inference endpoint. This can only * happen after stopping the experiment.

*/ inline const ModelVariantStatus& GetStatus() const{ return m_status; } /** *

The status of deployment for the model variant on the hosted inference * endpoint.

  • Creating - Amazon SageMaker is * preparing the model variant on the hosted inference endpoint.

  • *

    InService - The model variant is running on the hosted * inference endpoint.

  • Updating - Amazon SageMaker * is updating the model variant on the hosted inference endpoint.

  • *

    Deleting - Amazon SageMaker is deleting the model variant on * the hosted inference endpoint.

  • Deleted - The * model variant has been deleted on the hosted inference endpoint. This can only * happen after stopping the experiment.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of deployment for the model variant on the hosted inference * endpoint.

  • Creating - Amazon SageMaker is * preparing the model variant on the hosted inference endpoint.

  • *

    InService - The model variant is running on the hosted * inference endpoint.

  • Updating - Amazon SageMaker * is updating the model variant on the hosted inference endpoint.

  • *

    Deleting - Amazon SageMaker is deleting the model variant on * the hosted inference endpoint.

  • Deleted - The * model variant has been deleted on the hosted inference endpoint. This can only * happen after stopping the experiment.

*/ inline void SetStatus(const ModelVariantStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of deployment for the model variant on the hosted inference * endpoint.

  • Creating - Amazon SageMaker is * preparing the model variant on the hosted inference endpoint.

  • *

    InService - The model variant is running on the hosted * inference endpoint.

  • Updating - Amazon SageMaker * is updating the model variant on the hosted inference endpoint.

  • *

    Deleting - Amazon SageMaker is deleting the model variant on * the hosted inference endpoint.

  • Deleted - The * model variant has been deleted on the hosted inference endpoint. This can only * happen after stopping the experiment.

*/ inline void SetStatus(ModelVariantStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of deployment for the model variant on the hosted inference * endpoint.

  • Creating - Amazon SageMaker is * preparing the model variant on the hosted inference endpoint.

  • *

    InService - The model variant is running on the hosted * inference endpoint.

  • Updating - Amazon SageMaker * is updating the model variant on the hosted inference endpoint.

  • *

    Deleting - Amazon SageMaker is deleting the model variant on * the hosted inference endpoint.

  • Deleted - The * model variant has been deleted on the hosted inference endpoint. This can only * happen after stopping the experiment.

*/ inline ModelVariantConfigSummary& WithStatus(const ModelVariantStatus& value) { SetStatus(value); return *this;} /** *

The status of deployment for the model variant on the hosted inference * endpoint.

  • Creating - Amazon SageMaker is * preparing the model variant on the hosted inference endpoint.

  • *

    InService - The model variant is running on the hosted * inference endpoint.

  • Updating - Amazon SageMaker * is updating the model variant on the hosted inference endpoint.

  • *

    Deleting - Amazon SageMaker is deleting the model variant on * the hosted inference endpoint.

  • Deleted - The * model variant has been deleted on the hosted inference endpoint. This can only * happen after stopping the experiment.

*/ inline ModelVariantConfigSummary& WithStatus(ModelVariantStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_modelName; bool m_modelNameHasBeenSet = false; Aws::String m_variantName; bool m_variantNameHasBeenSet = false; ModelInfrastructureConfig m_infrastructureConfig; bool m_infrastructureConfigHasBeenSet = false; ModelVariantStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws