7#include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h>
8#include <aws/autoscaling-plans/model/ServiceNamespace.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/autoscaling-plans/model/ScalableDimension.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/autoscaling-plans/model/PredefinedLoadMetricSpecification.h>
13#include <aws/autoscaling-plans/model/CustomizedLoadMetricSpecification.h>
14#include <aws/autoscaling-plans/model/PredictiveScalingMaxCapacityBehavior.h>
15#include <aws/autoscaling-plans/model/PredictiveScalingMode.h>
16#include <aws/autoscaling-plans/model/ScalingPolicyUpdateBehavior.h>
17#include <aws/autoscaling-plans/model/TargetTrackingConfiguration.h>
30namespace AutoScalingPlans
99 template<
typename ResourceIdT = Aws::String>
100 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet =
true; m_resourceId = std::forward<ResourceIdT>(value); }
101 template<
typename ResourceIdT = Aws::String>
137 inline void SetMinCapacity(
int value) { m_minCapacityHasBeenSet =
true; m_minCapacity = value; }
149 inline void SetMaxCapacity(
int value) { m_maxCapacityHasBeenSet =
true; m_maxCapacity = value; }
160 template<
typename TargetTrackingConfigurationsT = Aws::Vector<TargetTrackingConfiguration>>
161 void SetTargetTrackingConfigurations(TargetTrackingConfigurationsT&& value) { m_targetTrackingConfigurationsHasBeenSet =
true; m_targetTrackingConfigurations = std::forward<TargetTrackingConfigurationsT>(value); }
162 template<
typename TargetTrackingConfigurationsT = Aws::Vector<TargetTrackingConfiguration>>
164 template<
typename TargetTrackingConfigurationsT = TargetTrackingConfiguration>
176 template<
typename PredefinedLoadMetricSpecificationT = PredefinedLoadMetricSpecification>
177 void SetPredefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationT&& value) { m_predefinedLoadMetricSpecificationHasBeenSet =
true; m_predefinedLoadMetricSpecification = std::forward<PredefinedLoadMetricSpecificationT>(value); }
178 template<
typename PredefinedLoadMetricSpecificationT = PredefinedLoadMetricSpecification>
190 template<
typename CustomizedLoadMetricSpecificationT = CustomizedLoadMetricSpecification>
191 void SetCustomizedLoadMetricSpecification(CustomizedLoadMetricSpecificationT&& value) { m_customizedLoadMetricSpecificationHasBeenSet =
true; m_customizedLoadMetricSpecification = std::forward<CustomizedLoadMetricSpecificationT>(value); }
192 template<
typename CustomizedLoadMetricSpecificationT = CustomizedLoadMetricSpecification>
302 bool m_serviceNamespaceHasBeenSet =
false;
305 bool m_resourceIdHasBeenSet =
false;
308 bool m_scalableDimensionHasBeenSet =
false;
310 int m_minCapacity{0};
311 bool m_minCapacityHasBeenSet =
false;
313 int m_maxCapacity{0};
314 bool m_maxCapacityHasBeenSet =
false;
317 bool m_targetTrackingConfigurationsHasBeenSet =
false;
319 PredefinedLoadMetricSpecification m_predefinedLoadMetricSpecification;
320 bool m_predefinedLoadMetricSpecificationHasBeenSet =
false;
322 CustomizedLoadMetricSpecification m_customizedLoadMetricSpecification;
323 bool m_customizedLoadMetricSpecificationHasBeenSet =
false;
325 int m_scheduledActionBufferTime{0};
326 bool m_scheduledActionBufferTimeHasBeenSet =
false;
329 bool m_predictiveScalingMaxCapacityBehaviorHasBeenSet =
false;
331 int m_predictiveScalingMaxCapacityBuffer{0};
332 bool m_predictiveScalingMaxCapacityBufferHasBeenSet =
false;
335 bool m_predictiveScalingModeHasBeenSet =
false;
338 bool m_scalingPolicyUpdateBehaviorHasBeenSet =
false;
340 bool m_disableDynamicScaling{
false};
341 bool m_disableDynamicScalingHasBeenSet =
false;
bool TargetTrackingConfigurationsHasBeenSet() const
PredictiveScalingMode GetPredictiveScalingMode() const
ScalingInstruction & WithPredictiveScalingMaxCapacityBehavior(PredictiveScalingMaxCapacityBehavior value)
bool ServiceNamespaceHasBeenSet() const
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
bool PredefinedLoadMetricSpecificationHasBeenSet() const
void SetDisableDynamicScaling(bool value)
void SetTargetTrackingConfigurations(TargetTrackingConfigurationsT &&value)
bool MinCapacityHasBeenSet() const
int GetScheduledActionBufferTime() const
bool ScalableDimensionHasBeenSet() const
bool MaxCapacityHasBeenSet() const
void SetMaxCapacity(int value)
ScalingInstruction & WithDisableDynamicScaling(bool value)
int GetMinCapacity() const
bool ResourceIdHasBeenSet() const
ScalingPolicyUpdateBehavior GetScalingPolicyUpdateBehavior() const
void SetServiceNamespace(ServiceNamespace value)
void SetPredictiveScalingMaxCapacityBuffer(int value)
ScalingInstruction & WithPredictiveScalingMode(PredictiveScalingMode value)
bool PredictiveScalingMaxCapacityBufferHasBeenSet() const
ScalingInstruction & WithMaxCapacity(int value)
const Aws::String & GetResourceId() const
ServiceNamespace GetServiceNamespace() const
bool ScalingPolicyUpdateBehaviorHasBeenSet() const
const CustomizedLoadMetricSpecification & GetCustomizedLoadMetricSpecification() const
const PredefinedLoadMetricSpecification & GetPredefinedLoadMetricSpecification() const
ScalingInstruction & WithServiceNamespace(ServiceNamespace value)
bool ScheduledActionBufferTimeHasBeenSet() const
void SetScheduledActionBufferTime(int value)
bool PredictiveScalingModeHasBeenSet() const
ScalingInstruction & WithScheduledActionBufferTime(int value)
void SetPredefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationT &&value)
ScalingInstruction & WithMinCapacity(int value)
int GetPredictiveScalingMaxCapacityBuffer() const
void SetPredictiveScalingMode(PredictiveScalingMode value)
void SetPredictiveScalingMaxCapacityBehavior(PredictiveScalingMaxCapacityBehavior value)
ScalingInstruction & WithPredefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationT &&value)
bool DisableDynamicScalingHasBeenSet() const
ScalingInstruction & AddTargetTrackingConfigurations(TargetTrackingConfigurationsT &&value)
void SetScalingPolicyUpdateBehavior(ScalingPolicyUpdateBehavior value)
ScalingInstruction & WithTargetTrackingConfigurations(TargetTrackingConfigurationsT &&value)
const Aws::Vector< TargetTrackingConfiguration > & GetTargetTrackingConfigurations() const
bool CustomizedLoadMetricSpecificationHasBeenSet() const
AWS_AUTOSCALINGPLANS_API ScalingInstruction()=default
bool PredictiveScalingMaxCapacityBehaviorHasBeenSet() const
AWS_AUTOSCALINGPLANS_API ScalingInstruction(Aws::Utils::Json::JsonView jsonValue)
PredictiveScalingMaxCapacityBehavior GetPredictiveScalingMaxCapacityBehavior() const
bool GetDisableDynamicScaling() const
AWS_AUTOSCALINGPLANS_API ScalingInstruction & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetMaxCapacity() const
void SetMinCapacity(int value)
ScalableDimension GetScalableDimension() const
ScalingInstruction & WithPredictiveScalingMaxCapacityBuffer(int value)
ScalingInstruction & WithScalableDimension(ScalableDimension value)
void SetResourceId(ResourceIdT &&value)
ScalingInstruction & WithScalingPolicyUpdateBehavior(ScalingPolicyUpdateBehavior value)
ScalingInstruction & WithResourceId(ResourceIdT &&value)
ScalingInstruction & WithCustomizedLoadMetricSpecification(CustomizedLoadMetricSpecificationT &&value)
void SetCustomizedLoadMetricSpecification(CustomizedLoadMetricSpecificationT &&value)
void SetScalableDimension(ScalableDimension value)
ScalingPolicyUpdateBehavior
PredictiveScalingMaxCapacityBehavior
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue