This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

134 lines
3.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ApplicationAutoScaling
{
namespace Model
{
/**
* <p>Represents a CloudWatch alarm associated with a scaling policy.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/Alarm">AWS
* API Reference</a></p>
*/
class AWS_APPLICATIONAUTOSCALING_API Alarm
{
public:
Alarm();
Alarm(Aws::Utils::Json::JsonView jsonValue);
Alarm& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the alarm.</p>
*/
inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
/**
* <p>The name of the alarm.</p>
*/
inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
/**
* <p>The name of the alarm.</p>
*/
inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
/**
* <p>The name of the alarm.</p>
*/
inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
/**
* <p>The name of the alarm.</p>
*/
inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
/**
* <p>The name of the alarm.</p>
*/
inline Alarm& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
/**
* <p>The name of the alarm.</p>
*/
inline Alarm& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
/**
* <p>The name of the alarm.</p>
*/
inline Alarm& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the alarm.</p>
*/
inline const Aws::String& GetAlarmARN() const{ return m_alarmARN; }
/**
* <p>The Amazon Resource Name (ARN) of the alarm.</p>
*/
inline bool AlarmARNHasBeenSet() const { return m_alarmARNHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the alarm.</p>
*/
inline void SetAlarmARN(const Aws::String& value) { m_alarmARNHasBeenSet = true; m_alarmARN = value; }
/**
* <p>The Amazon Resource Name (ARN) of the alarm.</p>
*/
inline void SetAlarmARN(Aws::String&& value) { m_alarmARNHasBeenSet = true; m_alarmARN = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the alarm.</p>
*/
inline void SetAlarmARN(const char* value) { m_alarmARNHasBeenSet = true; m_alarmARN.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the alarm.</p>
*/
inline Alarm& WithAlarmARN(const Aws::String& value) { SetAlarmARN(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the alarm.</p>
*/
inline Alarm& WithAlarmARN(Aws::String&& value) { SetAlarmARN(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the alarm.</p>
*/
inline Alarm& WithAlarmARN(const char* value) { SetAlarmARN(value); return *this;}
private:
Aws::String m_alarmName;
bool m_alarmNameHasBeenSet;
Aws::String m_alarmARN;
bool m_alarmARNHasBeenSet;
};
} // namespace Model
} // namespace ApplicationAutoScaling
} // namespace Aws