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

An Amazon CloudWatch alarm configured to monitor metrics on an * endpoint.

See Also:

AWS API * Reference

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

The name of a CloudWatch alarm in your account.

*/ inline const Aws::String& GetAlarmName() const{ return m_alarmName; } /** *

The name of a CloudWatch alarm in your account.

*/ inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; } /** *

The name of a CloudWatch alarm in your account.

*/ inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; } /** *

The name of a CloudWatch alarm in your account.

*/ inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); } /** *

The name of a CloudWatch alarm in your account.

*/ inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); } /** *

The name of a CloudWatch alarm in your account.

*/ inline Alarm& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;} /** *

The name of a CloudWatch alarm in your account.

*/ inline Alarm& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;} /** *

The name of a CloudWatch alarm in your account.

*/ inline Alarm& WithAlarmName(const char* value) { SetAlarmName(value); return *this;} private: Aws::String m_alarmName; bool m_alarmNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws