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

Describes the status of the production variant.

See Also:

AWS * API Reference

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

The endpoint variant status which describes the current deployment stage * status or operational status.

  • Creating: Creating * inference resources for the production variant.

  • * Deleting: Terminating inference resources for the production * variant.

  • Updating: Updating capacity for the * production variant.

  • ActivatingTraffic: Turning * on traffic for the production variant.

  • Baking: * Waiting period to monitor the CloudWatch alarms in the automatic rollback * configuration.

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

The endpoint variant status which describes the current deployment stage * status or operational status.

  • Creating: Creating * inference resources for the production variant.

  • * Deleting: Terminating inference resources for the production * variant.

  • Updating: Updating capacity for the * production variant.

  • ActivatingTraffic: Turning * on traffic for the production variant.

  • Baking: * Waiting period to monitor the CloudWatch alarms in the automatic rollback * configuration.

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

The endpoint variant status which describes the current deployment stage * status or operational status.

  • Creating: Creating * inference resources for the production variant.

  • * Deleting: Terminating inference resources for the production * variant.

  • Updating: Updating capacity for the * production variant.

  • ActivatingTraffic: Turning * on traffic for the production variant.

  • Baking: * Waiting period to monitor the CloudWatch alarms in the automatic rollback * configuration.

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

The endpoint variant status which describes the current deployment stage * status or operational status.

  • Creating: Creating * inference resources for the production variant.

  • * Deleting: Terminating inference resources for the production * variant.

  • Updating: Updating capacity for the * production variant.

  • ActivatingTraffic: Turning * on traffic for the production variant.

  • Baking: * Waiting period to monitor the CloudWatch alarms in the automatic rollback * configuration.

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

The endpoint variant status which describes the current deployment stage * status or operational status.

  • Creating: Creating * inference resources for the production variant.

  • * Deleting: Terminating inference resources for the production * variant.

  • Updating: Updating capacity for the * production variant.

  • ActivatingTraffic: Turning * on traffic for the production variant.

  • Baking: * Waiting period to monitor the CloudWatch alarms in the automatic rollback * configuration.

*/ inline ProductionVariantStatus& WithStatus(const VariantStatus& value) { SetStatus(value); return *this;} /** *

The endpoint variant status which describes the current deployment stage * status or operational status.

  • Creating: Creating * inference resources for the production variant.

  • * Deleting: Terminating inference resources for the production * variant.

  • Updating: Updating capacity for the * production variant.

  • ActivatingTraffic: Turning * on traffic for the production variant.

  • Baking: * Waiting period to monitor the CloudWatch alarms in the automatic rollback * configuration.

*/ inline ProductionVariantStatus& WithStatus(VariantStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A message that describes the status of the production variant.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

A message that describes the status of the production variant.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

A message that describes the status of the production variant.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

A message that describes the status of the production variant.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

A message that describes the status of the production variant.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

A message that describes the status of the production variant.

*/ inline ProductionVariantStatus& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

A message that describes the status of the production variant.

*/ inline ProductionVariantStatus& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

A message that describes the status of the production variant.

*/ inline ProductionVariantStatus& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

The start time of the current status change.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start time of the current status change.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start time of the current status change.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start time of the current status change.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start time of the current status change.

*/ inline ProductionVariantStatus& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start time of the current status change.

*/ inline ProductionVariantStatus& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} private: VariantStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws