/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a scaling policy.See Also:
AWS
* API Reference
The name of the scaling policy.
*/ inline const Aws::String& GetPolicyName() const{ return m_policyName; } /** *The name of the scaling policy.
*/ inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; } /** *The name of the scaling policy.
*/ inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; } /** *The name of the scaling policy.
*/ inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); } /** *The name of the scaling policy.
*/ inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); } /** *The name of the scaling policy.
*/ inline ScalingPolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} /** *The name of the scaling policy.
*/ inline ScalingPolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;} /** *The name of the scaling policy.
*/ inline ScalingPolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;} /** *The type of scaling policy.
*/ inline const PolicyType& GetPolicyType() const{ return m_policyType; } /** *The type of scaling policy.
*/ inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; } /** *The type of scaling policy.
*/ inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; } /** *The type of scaling policy.
*/ inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); } /** *The type of scaling policy.
*/ inline ScalingPolicy& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;} /** *The type of scaling policy.
*/ inline ScalingPolicy& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;} /** *The target tracking scaling policy. Includes support for predefined or * customized metrics.
*/ inline const TargetTrackingConfiguration& GetTargetTrackingConfiguration() const{ return m_targetTrackingConfiguration; } /** *The target tracking scaling policy. Includes support for predefined or * customized metrics.
*/ inline bool TargetTrackingConfigurationHasBeenSet() const { return m_targetTrackingConfigurationHasBeenSet; } /** *The target tracking scaling policy. Includes support for predefined or * customized metrics.
*/ inline void SetTargetTrackingConfiguration(const TargetTrackingConfiguration& value) { m_targetTrackingConfigurationHasBeenSet = true; m_targetTrackingConfiguration = value; } /** *The target tracking scaling policy. Includes support for predefined or * customized metrics.
*/ inline void SetTargetTrackingConfiguration(TargetTrackingConfiguration&& value) { m_targetTrackingConfigurationHasBeenSet = true; m_targetTrackingConfiguration = std::move(value); } /** *The target tracking scaling policy. Includes support for predefined or * customized metrics.
*/ inline ScalingPolicy& WithTargetTrackingConfiguration(const TargetTrackingConfiguration& value) { SetTargetTrackingConfiguration(value); return *this;} /** *The target tracking scaling policy. Includes support for predefined or * customized metrics.
*/ inline ScalingPolicy& WithTargetTrackingConfiguration(TargetTrackingConfiguration&& value) { SetTargetTrackingConfiguration(std::move(value)); return *this;} private: Aws::String m_policyName; bool m_policyNameHasBeenSet = false; PolicyType m_policyType; bool m_policyTypeHasBeenSet = false; TargetTrackingConfiguration m_targetTrackingConfiguration; bool m_targetTrackingConfigurationHasBeenSet = false; }; } // namespace Model } // namespace AutoScalingPlans } // namespace Aws