AWS SDK for C++  1.8.100
AWS SDK for C++
Public Member Functions | List of all members
Aws::EMR::Model::SimpleScalingPolicyConfiguration Class Reference

#include <SimpleScalingPolicyConfiguration.h>

Public Member Functions

 SimpleScalingPolicyConfiguration ()
 
 SimpleScalingPolicyConfiguration (Aws::Utils::Json::JsonView jsonValue)
 
SimpleScalingPolicyConfigurationoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const AdjustmentTypeGetAdjustmentType () const
 
bool AdjustmentTypeHasBeenSet () const
 
void SetAdjustmentType (const AdjustmentType &value)
 
void SetAdjustmentType (AdjustmentType &&value)
 
SimpleScalingPolicyConfigurationWithAdjustmentType (const AdjustmentType &value)
 
SimpleScalingPolicyConfigurationWithAdjustmentType (AdjustmentType &&value)
 
int GetScalingAdjustment () const
 
bool ScalingAdjustmentHasBeenSet () const
 
void SetScalingAdjustment (int value)
 
SimpleScalingPolicyConfigurationWithScalingAdjustment (int value)
 
int GetCoolDown () const
 
bool CoolDownHasBeenSet () const
 
void SetCoolDown (int value)
 
SimpleScalingPolicyConfigurationWithCoolDown (int value)
 

Detailed Description

An automatic scaling configuration, which describes how the policy adds or removes instances, the cooldown period, and the number of EC2 instances that will be added each time the CloudWatch metric alarm condition is satisfied.

See Also:

AWS API Reference

Definition at line 34 of file SimpleScalingPolicyConfiguration.h.

Constructor & Destructor Documentation

◆ SimpleScalingPolicyConfiguration() [1/2]

Aws::EMR::Model::SimpleScalingPolicyConfiguration::SimpleScalingPolicyConfiguration ( )

◆ SimpleScalingPolicyConfiguration() [2/2]

Aws::EMR::Model::SimpleScalingPolicyConfiguration::SimpleScalingPolicyConfiguration ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ AdjustmentTypeHasBeenSet()

bool Aws::EMR::Model::SimpleScalingPolicyConfiguration::AdjustmentTypeHasBeenSet ( ) const
inline

The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY indicates that the EC2 instance count increments or decrements by ScalingAdjustment, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment, which should be expressed as a positive integer.

Definition at line 75 of file SimpleScalingPolicyConfiguration.h.

◆ CoolDownHasBeenSet()

bool Aws::EMR::Model::SimpleScalingPolicyConfiguration::CoolDownHasBeenSet ( ) const
inline

The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. The default value is 0.

Definition at line 207 of file SimpleScalingPolicyConfiguration.h.

◆ GetAdjustmentType()

const AdjustmentType& Aws::EMR::Model::SimpleScalingPolicyConfiguration::GetAdjustmentType ( ) const
inline

The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY indicates that the EC2 instance count increments or decrements by ScalingAdjustment, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment, which should be expressed as a positive integer.

Definition at line 58 of file SimpleScalingPolicyConfiguration.h.

◆ GetCoolDown()

int Aws::EMR::Model::SimpleScalingPolicyConfiguration::GetCoolDown ( ) const
inline

The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. The default value is 0.

Definition at line 200 of file SimpleScalingPolicyConfiguration.h.

◆ GetScalingAdjustment()

int Aws::EMR::Model::SimpleScalingPolicyConfiguration::GetScalingAdjustment ( ) const
inline

The amount by which to scale in or scale out, based on the specified AdjustmentType. A positive value adds to the instance group's EC2 instance count while a negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY, the number should only be a positive integer. If AdjustmentType is set to PERCENT_CHANGE_IN_CAPACITY, the value should express the percentage as an integer. For example, -20 indicates a decrease in 20% increments of cluster capacity.

Definition at line 156 of file SimpleScalingPolicyConfiguration.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::EMR::Model::SimpleScalingPolicyConfiguration::Jsonize ( ) const

◆ operator=()

SimpleScalingPolicyConfiguration& Aws::EMR::Model::SimpleScalingPolicyConfiguration::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ ScalingAdjustmentHasBeenSet()

bool Aws::EMR::Model::SimpleScalingPolicyConfiguration::ScalingAdjustmentHasBeenSet ( ) const
inline

The amount by which to scale in or scale out, based on the specified AdjustmentType. A positive value adds to the instance group's EC2 instance count while a negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY, the number should only be a positive integer. If AdjustmentType is set to PERCENT_CHANGE_IN_CAPACITY, the value should express the percentage as an integer. For example, -20 indicates a decrease in 20% increments of cluster capacity.

Definition at line 168 of file SimpleScalingPolicyConfiguration.h.

◆ SetAdjustmentType() [1/2]

void Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetAdjustmentType ( const AdjustmentType value)
inline

The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY indicates that the EC2 instance count increments or decrements by ScalingAdjustment, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment, which should be expressed as a positive integer.

Definition at line 92 of file SimpleScalingPolicyConfiguration.h.

◆ SetAdjustmentType() [2/2]

void Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetAdjustmentType ( AdjustmentType &&  value)
inline

The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY indicates that the EC2 instance count increments or decrements by ScalingAdjustment, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment, which should be expressed as a positive integer.

Definition at line 109 of file SimpleScalingPolicyConfiguration.h.

◆ SetCoolDown()

void Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetCoolDown ( int  value)
inline

The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. The default value is 0.

Definition at line 214 of file SimpleScalingPolicyConfiguration.h.

◆ SetScalingAdjustment()

void Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetScalingAdjustment ( int  value)
inline

The amount by which to scale in or scale out, based on the specified AdjustmentType. A positive value adds to the instance group's EC2 instance count while a negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY, the number should only be a positive integer. If AdjustmentType is set to PERCENT_CHANGE_IN_CAPACITY, the value should express the percentage as an integer. For example, -20 indicates a decrease in 20% increments of cluster capacity.

Definition at line 180 of file SimpleScalingPolicyConfiguration.h.

◆ WithAdjustmentType() [1/2]

SimpleScalingPolicyConfiguration& Aws::EMR::Model::SimpleScalingPolicyConfiguration::WithAdjustmentType ( const AdjustmentType value)
inline

The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY indicates that the EC2 instance count increments or decrements by ScalingAdjustment, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment, which should be expressed as a positive integer.

Definition at line 126 of file SimpleScalingPolicyConfiguration.h.

◆ WithAdjustmentType() [2/2]

SimpleScalingPolicyConfiguration& Aws::EMR::Model::SimpleScalingPolicyConfiguration::WithAdjustmentType ( AdjustmentType &&  value)
inline

The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY indicates that the EC2 instance count increments or decrements by ScalingAdjustment, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment, which should be expressed as a positive integer.

Definition at line 143 of file SimpleScalingPolicyConfiguration.h.

◆ WithCoolDown()

SimpleScalingPolicyConfiguration& Aws::EMR::Model::SimpleScalingPolicyConfiguration::WithCoolDown ( int  value)
inline

The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. The default value is 0.

Definition at line 221 of file SimpleScalingPolicyConfiguration.h.

◆ WithScalingAdjustment()

SimpleScalingPolicyConfiguration& Aws::EMR::Model::SimpleScalingPolicyConfiguration::WithScalingAdjustment ( int  value)
inline

The amount by which to scale in or scale out, based on the specified AdjustmentType. A positive value adds to the instance group's EC2 instance count while a negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY, the number should only be a positive integer. If AdjustmentType is set to PERCENT_CHANGE_IN_CAPACITY, the value should express the percentage as an integer. For example, -20 indicates a decrease in 20% increments of cluster capacity.

Definition at line 192 of file SimpleScalingPolicyConfiguration.h.


The documentation for this class was generated from the following file: