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

Provides summary information of an alert's history.

See Also:

* AWS * API Reference

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

The name of a monitoring schedule.

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

The name of a monitoring schedule.

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

The name of a monitoring schedule.

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

The name of a monitoring schedule.

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

The name of a monitoring schedule.

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

The name of a monitoring schedule.

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

The name of a monitoring schedule.

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

The name of a monitoring schedule.

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

The name of a monitoring alert.

*/ inline const Aws::String& GetMonitoringAlertName() const{ return m_monitoringAlertName; } /** *

The name of a monitoring alert.

*/ inline bool MonitoringAlertNameHasBeenSet() const { return m_monitoringAlertNameHasBeenSet; } /** *

The name of a monitoring alert.

*/ inline void SetMonitoringAlertName(const Aws::String& value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName = value; } /** *

The name of a monitoring alert.

*/ inline void SetMonitoringAlertName(Aws::String&& value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName = std::move(value); } /** *

The name of a monitoring alert.

*/ inline void SetMonitoringAlertName(const char* value) { m_monitoringAlertNameHasBeenSet = true; m_monitoringAlertName.assign(value); } /** *

The name of a monitoring alert.

*/ inline MonitoringAlertHistorySummary& WithMonitoringAlertName(const Aws::String& value) { SetMonitoringAlertName(value); return *this;} /** *

The name of a monitoring alert.

*/ inline MonitoringAlertHistorySummary& WithMonitoringAlertName(Aws::String&& value) { SetMonitoringAlertName(std::move(value)); return *this;} /** *

The name of a monitoring alert.

*/ inline MonitoringAlertHistorySummary& WithMonitoringAlertName(const char* value) { SetMonitoringAlertName(value); return *this;} /** *

A timestamp that indicates when the first alert transition occurred in an * alert history. An alert transition can be from status InAlert to * OK, or from OK to InAlert.

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

A timestamp that indicates when the first alert transition occurred in an * alert history. An alert transition can be from status InAlert to * OK, or from OK to InAlert.

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

A timestamp that indicates when the first alert transition occurred in an * alert history. An alert transition can be from status InAlert to * OK, or from OK to InAlert.

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

A timestamp that indicates when the first alert transition occurred in an * alert history. An alert transition can be from status InAlert to * OK, or from OK to InAlert.

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

A timestamp that indicates when the first alert transition occurred in an * alert history. An alert transition can be from status InAlert to * OK, or from OK to InAlert.

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

A timestamp that indicates when the first alert transition occurred in an * alert history. An alert transition can be from status InAlert to * OK, or from OK to InAlert.

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

The current alert status of an alert.

*/ inline const MonitoringAlertStatus& GetAlertStatus() const{ return m_alertStatus; } /** *

The current alert status of an alert.

*/ inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; } /** *

The current alert status of an alert.

*/ inline void SetAlertStatus(const MonitoringAlertStatus& value) { m_alertStatusHasBeenSet = true; m_alertStatus = value; } /** *

The current alert status of an alert.

*/ inline void SetAlertStatus(MonitoringAlertStatus&& value) { m_alertStatusHasBeenSet = true; m_alertStatus = std::move(value); } /** *

The current alert status of an alert.

*/ inline MonitoringAlertHistorySummary& WithAlertStatus(const MonitoringAlertStatus& value) { SetAlertStatus(value); return *this;} /** *

The current alert status of an alert.

*/ inline MonitoringAlertHistorySummary& WithAlertStatus(MonitoringAlertStatus&& value) { SetAlertStatus(std::move(value)); return *this;} private: Aws::String m_monitoringScheduleName; bool m_monitoringScheduleNameHasBeenSet = false; Aws::String m_monitoringAlertName; bool m_monitoringAlertNameHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; MonitoringAlertStatus m_alertStatus; bool m_alertStatusHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws