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

A schedule for a model monitoring job. For information about model monitor, * see Amazon * SageMaker Model Monitor.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the monitoring schedule.

*/ inline const Aws::String& GetMonitoringScheduleArn() const{ return m_monitoringScheduleArn; } /** *

The Amazon Resource Name (ARN) of the monitoring schedule.

*/ inline bool MonitoringScheduleArnHasBeenSet() const { return m_monitoringScheduleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the monitoring schedule.

*/ inline void SetMonitoringScheduleArn(const Aws::String& value) { m_monitoringScheduleArnHasBeenSet = true; m_monitoringScheduleArn = value; } /** *

The Amazon Resource Name (ARN) of the monitoring schedule.

*/ inline void SetMonitoringScheduleArn(Aws::String&& value) { m_monitoringScheduleArnHasBeenSet = true; m_monitoringScheduleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the monitoring schedule.

*/ inline void SetMonitoringScheduleArn(const char* value) { m_monitoringScheduleArnHasBeenSet = true; m_monitoringScheduleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the monitoring schedule.

*/ inline MonitoringSchedule& WithMonitoringScheduleArn(const Aws::String& value) { SetMonitoringScheduleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the monitoring schedule.

*/ inline MonitoringSchedule& WithMonitoringScheduleArn(Aws::String&& value) { SetMonitoringScheduleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the monitoring schedule.

*/ inline MonitoringSchedule& WithMonitoringScheduleArn(const char* value) { SetMonitoringScheduleArn(value); return *this;} /** *

The name of the monitoring schedule.

*/ inline const Aws::String& GetMonitoringScheduleName() const{ return m_monitoringScheduleName; } /** *

The name of the monitoring schedule.

*/ inline bool MonitoringScheduleNameHasBeenSet() const { return m_monitoringScheduleNameHasBeenSet; } /** *

The name of the monitoring schedule.

*/ inline void SetMonitoringScheduleName(const Aws::String& value) { m_monitoringScheduleNameHasBeenSet = true; m_monitoringScheduleName = value; } /** *

The name of the monitoring schedule.

*/ inline void SetMonitoringScheduleName(Aws::String&& value) { m_monitoringScheduleNameHasBeenSet = true; m_monitoringScheduleName = std::move(value); } /** *

The name of the monitoring schedule.

*/ inline void SetMonitoringScheduleName(const char* value) { m_monitoringScheduleNameHasBeenSet = true; m_monitoringScheduleName.assign(value); } /** *

The name of the monitoring schedule.

*/ inline MonitoringSchedule& WithMonitoringScheduleName(const Aws::String& value) { SetMonitoringScheduleName(value); return *this;} /** *

The name of the monitoring schedule.

*/ inline MonitoringSchedule& WithMonitoringScheduleName(Aws::String&& value) { SetMonitoringScheduleName(std::move(value)); return *this;} /** *

The name of the monitoring schedule.

*/ inline MonitoringSchedule& WithMonitoringScheduleName(const char* value) { SetMonitoringScheduleName(value); return *this;} /** *

The status of the monitoring schedule. This can be one of the following * values.

  • PENDING - The schedule is pending being * created.

  • FAILED - The schedule failed.

  • *
  • SCHEDULED - The schedule was successfully created.

    *
  • STOPPED - The schedule was stopped.

*/ inline const ScheduleStatus& GetMonitoringScheduleStatus() const{ return m_monitoringScheduleStatus; } /** *

The status of the monitoring schedule. This can be one of the following * values.

  • PENDING - The schedule is pending being * created.

  • FAILED - The schedule failed.

  • *
  • SCHEDULED - The schedule was successfully created.

    *
  • STOPPED - The schedule was stopped.

*/ inline bool MonitoringScheduleStatusHasBeenSet() const { return m_monitoringScheduleStatusHasBeenSet; } /** *

The status of the monitoring schedule. This can be one of the following * values.

  • PENDING - The schedule is pending being * created.

  • FAILED - The schedule failed.

  • *
  • SCHEDULED - The schedule was successfully created.

    *
  • STOPPED - The schedule was stopped.

*/ inline void SetMonitoringScheduleStatus(const ScheduleStatus& value) { m_monitoringScheduleStatusHasBeenSet = true; m_monitoringScheduleStatus = value; } /** *

The status of the monitoring schedule. This can be one of the following * values.

  • PENDING - The schedule is pending being * created.

  • FAILED - The schedule failed.

  • *
  • SCHEDULED - The schedule was successfully created.

    *
  • STOPPED - The schedule was stopped.

*/ inline void SetMonitoringScheduleStatus(ScheduleStatus&& value) { m_monitoringScheduleStatusHasBeenSet = true; m_monitoringScheduleStatus = std::move(value); } /** *

The status of the monitoring schedule. This can be one of the following * values.

  • PENDING - The schedule is pending being * created.

  • FAILED - The schedule failed.

  • *
  • SCHEDULED - The schedule was successfully created.

    *
  • STOPPED - The schedule was stopped.

*/ inline MonitoringSchedule& WithMonitoringScheduleStatus(const ScheduleStatus& value) { SetMonitoringScheduleStatus(value); return *this;} /** *

The status of the monitoring schedule. This can be one of the following * values.

  • PENDING - The schedule is pending being * created.

  • FAILED - The schedule failed.

  • *
  • SCHEDULED - The schedule was successfully created.

    *
  • STOPPED - The schedule was stopped.

*/ inline MonitoringSchedule& WithMonitoringScheduleStatus(ScheduleStatus&& value) { SetMonitoringScheduleStatus(std::move(value)); return *this;} /** *

The type of the monitoring job definition to schedule.

*/ inline const MonitoringType& GetMonitoringType() const{ return m_monitoringType; } /** *

The type of the monitoring job definition to schedule.

*/ inline bool MonitoringTypeHasBeenSet() const { return m_monitoringTypeHasBeenSet; } /** *

The type of the monitoring job definition to schedule.

*/ inline void SetMonitoringType(const MonitoringType& value) { m_monitoringTypeHasBeenSet = true; m_monitoringType = value; } /** *

The type of the monitoring job definition to schedule.

*/ inline void SetMonitoringType(MonitoringType&& value) { m_monitoringTypeHasBeenSet = true; m_monitoringType = std::move(value); } /** *

The type of the monitoring job definition to schedule.

*/ inline MonitoringSchedule& WithMonitoringType(const MonitoringType& value) { SetMonitoringType(value); return *this;} /** *

The type of the monitoring job definition to schedule.

*/ inline MonitoringSchedule& WithMonitoringType(MonitoringType&& value) { SetMonitoringType(std::move(value)); return *this;} /** *

If the monitoring schedule failed, the reason it failed.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

If the monitoring schedule failed, the reason it failed.

*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *

If the monitoring schedule failed, the reason it failed.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *

If the monitoring schedule failed, the reason it failed.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *

If the monitoring schedule failed, the reason it failed.

*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *

If the monitoring schedule failed, the reason it failed.

*/ inline MonitoringSchedule& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

If the monitoring schedule failed, the reason it failed.

*/ inline MonitoringSchedule& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

If the monitoring schedule failed, the reason it failed.

*/ inline MonitoringSchedule& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

The time that the monitoring schedule was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The time that the monitoring schedule was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The time that the monitoring schedule was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The time that the monitoring schedule was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The time that the monitoring schedule was created.

*/ inline MonitoringSchedule& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The time that the monitoring schedule was created.

*/ inline MonitoringSchedule& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The last time the monitoring schedule was changed.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The last time the monitoring schedule was changed.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The last time the monitoring schedule was changed.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The last time the monitoring schedule was changed.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

The last time the monitoring schedule was changed.

*/ inline MonitoringSchedule& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The last time the monitoring schedule was changed.

*/ inline MonitoringSchedule& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} inline const MonitoringScheduleConfig& GetMonitoringScheduleConfig() const{ return m_monitoringScheduleConfig; } inline bool MonitoringScheduleConfigHasBeenSet() const { return m_monitoringScheduleConfigHasBeenSet; } inline void SetMonitoringScheduleConfig(const MonitoringScheduleConfig& value) { m_monitoringScheduleConfigHasBeenSet = true; m_monitoringScheduleConfig = value; } inline void SetMonitoringScheduleConfig(MonitoringScheduleConfig&& value) { m_monitoringScheduleConfigHasBeenSet = true; m_monitoringScheduleConfig = std::move(value); } inline MonitoringSchedule& WithMonitoringScheduleConfig(const MonitoringScheduleConfig& value) { SetMonitoringScheduleConfig(value); return *this;} inline MonitoringSchedule& WithMonitoringScheduleConfig(MonitoringScheduleConfig&& value) { SetMonitoringScheduleConfig(std::move(value)); return *this;} /** *

The endpoint that hosts the model being monitored.

*/ inline const Aws::String& GetEndpointName() const{ return m_endpointName; } /** *

The endpoint that hosts the model being monitored.

*/ inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; } /** *

The endpoint that hosts the model being monitored.

*/ inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; } /** *

The endpoint that hosts the model being monitored.

*/ inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); } /** *

The endpoint that hosts the model being monitored.

*/ inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); } /** *

The endpoint that hosts the model being monitored.

*/ inline MonitoringSchedule& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;} /** *

The endpoint that hosts the model being monitored.

*/ inline MonitoringSchedule& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;} /** *

The endpoint that hosts the model being monitored.

*/ inline MonitoringSchedule& WithEndpointName(const char* value) { SetEndpointName(value); return *this;} inline const MonitoringExecutionSummary& GetLastMonitoringExecutionSummary() const{ return m_lastMonitoringExecutionSummary; } inline bool LastMonitoringExecutionSummaryHasBeenSet() const { return m_lastMonitoringExecutionSummaryHasBeenSet; } inline void SetLastMonitoringExecutionSummary(const MonitoringExecutionSummary& value) { m_lastMonitoringExecutionSummaryHasBeenSet = true; m_lastMonitoringExecutionSummary = value; } inline void SetLastMonitoringExecutionSummary(MonitoringExecutionSummary&& value) { m_lastMonitoringExecutionSummaryHasBeenSet = true; m_lastMonitoringExecutionSummary = std::move(value); } inline MonitoringSchedule& WithLastMonitoringExecutionSummary(const MonitoringExecutionSummary& value) { SetLastMonitoringExecutionSummary(value); return *this;} inline MonitoringSchedule& WithLastMonitoringExecutionSummary(MonitoringExecutionSummary&& value) { SetLastMonitoringExecutionSummary(std::move(value)); return *this;} /** *

A list of the tags associated with the monitoring schedlue. For more * information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of the tags associated with the monitoring schedlue. For more * information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of the tags associated with the monitoring schedlue. For more * information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of the tags associated with the monitoring schedlue. For more * information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of the tags associated with the monitoring schedlue. For more * information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline MonitoringSchedule& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of the tags associated with the monitoring schedlue. For more * information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline MonitoringSchedule& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of the tags associated with the monitoring schedlue. For more * information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline MonitoringSchedule& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of the tags associated with the monitoring schedlue. For more * information, see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline MonitoringSchedule& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_monitoringScheduleArn; bool m_monitoringScheduleArnHasBeenSet = false; Aws::String m_monitoringScheduleName; bool m_monitoringScheduleNameHasBeenSet = false; ScheduleStatus m_monitoringScheduleStatus; bool m_monitoringScheduleStatusHasBeenSet = false; MonitoringType m_monitoringType; bool m_monitoringTypeHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; MonitoringScheduleConfig m_monitoringScheduleConfig; bool m_monitoringScheduleConfigHasBeenSet = false; Aws::String m_endpointName; bool m_endpointNameHasBeenSet = false; MonitoringExecutionSummary m_lastMonitoringExecutionSummary; bool m_lastMonitoringExecutionSummaryHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws