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

92 lines
3.1 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/elasticmapreduce/EMR_EXPORTS.h>
#include <aws/elasticmapreduce/model/CloudWatchAlarmDefinition.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace EMR
{
namespace Model
{
/**
* <p>The conditions that trigger an automatic scaling activity.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScalingTrigger">AWS
* API Reference</a></p>
*/
class AWS_EMR_API ScalingTrigger
{
public:
ScalingTrigger();
ScalingTrigger(Aws::Utils::Json::JsonView jsonValue);
ScalingTrigger& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The definition of a CloudWatch metric alarm. When the defined alarm
* conditions are met along with other trigger parameters, scaling activity
* begins.</p>
*/
inline const CloudWatchAlarmDefinition& GetCloudWatchAlarmDefinition() const{ return m_cloudWatchAlarmDefinition; }
/**
* <p>The definition of a CloudWatch metric alarm. When the defined alarm
* conditions are met along with other trigger parameters, scaling activity
* begins.</p>
*/
inline bool CloudWatchAlarmDefinitionHasBeenSet() const { return m_cloudWatchAlarmDefinitionHasBeenSet; }
/**
* <p>The definition of a CloudWatch metric alarm. When the defined alarm
* conditions are met along with other trigger parameters, scaling activity
* begins.</p>
*/
inline void SetCloudWatchAlarmDefinition(const CloudWatchAlarmDefinition& value) { m_cloudWatchAlarmDefinitionHasBeenSet = true; m_cloudWatchAlarmDefinition = value; }
/**
* <p>The definition of a CloudWatch metric alarm. When the defined alarm
* conditions are met along with other trigger parameters, scaling activity
* begins.</p>
*/
inline void SetCloudWatchAlarmDefinition(CloudWatchAlarmDefinition&& value) { m_cloudWatchAlarmDefinitionHasBeenSet = true; m_cloudWatchAlarmDefinition = std::move(value); }
/**
* <p>The definition of a CloudWatch metric alarm. When the defined alarm
* conditions are met along with other trigger parameters, scaling activity
* begins.</p>
*/
inline ScalingTrigger& WithCloudWatchAlarmDefinition(const CloudWatchAlarmDefinition& value) { SetCloudWatchAlarmDefinition(value); return *this;}
/**
* <p>The definition of a CloudWatch metric alarm. When the defined alarm
* conditions are met along with other trigger parameters, scaling activity
* begins.</p>
*/
inline ScalingTrigger& WithCloudWatchAlarmDefinition(CloudWatchAlarmDefinition&& value) { SetCloudWatchAlarmDefinition(std::move(value)); return *this;}
private:
CloudWatchAlarmDefinition m_cloudWatchAlarmDefinition;
bool m_cloudWatchAlarmDefinitionHasBeenSet;
};
} // namespace Model
} // namespace EMR
} // namespace Aws