/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ApplicationAutoScaling { namespace Model { class AWS_APPLICATIONAUTOSCALING_API PutScalingPolicyResult { public: PutScalingPolicyResult(); PutScalingPolicyResult(const Aws::AmazonWebServiceResult& result); PutScalingPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the resulting scaling policy.

*/ inline const Aws::String& GetPolicyARN() const{ return m_policyARN; } /** *

The Amazon Resource Name (ARN) of the resulting scaling policy.

*/ inline void SetPolicyARN(const Aws::String& value) { m_policyARN = value; } /** *

The Amazon Resource Name (ARN) of the resulting scaling policy.

*/ inline void SetPolicyARN(Aws::String&& value) { m_policyARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the resulting scaling policy.

*/ inline void SetPolicyARN(const char* value) { m_policyARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the resulting scaling policy.

*/ inline PutScalingPolicyResult& WithPolicyARN(const Aws::String& value) { SetPolicyARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resulting scaling policy.

*/ inline PutScalingPolicyResult& WithPolicyARN(Aws::String&& value) { SetPolicyARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the resulting scaling policy.

*/ inline PutScalingPolicyResult& WithPolicyARN(const char* value) { SetPolicyARN(value); return *this;} /** *

The CloudWatch alarms created for the target tracking scaling policy.

*/ inline const Aws::Vector& GetAlarms() const{ return m_alarms; } /** *

The CloudWatch alarms created for the target tracking scaling policy.

*/ inline void SetAlarms(const Aws::Vector& value) { m_alarms = value; } /** *

The CloudWatch alarms created for the target tracking scaling policy.

*/ inline void SetAlarms(Aws::Vector&& value) { m_alarms = std::move(value); } /** *

The CloudWatch alarms created for the target tracking scaling policy.

*/ inline PutScalingPolicyResult& WithAlarms(const Aws::Vector& value) { SetAlarms(value); return *this;} /** *

The CloudWatch alarms created for the target tracking scaling policy.

*/ inline PutScalingPolicyResult& WithAlarms(Aws::Vector&& value) { SetAlarms(std::move(value)); return *this;} /** *

The CloudWatch alarms created for the target tracking scaling policy.

*/ inline PutScalingPolicyResult& AddAlarms(const Alarm& value) { m_alarms.push_back(value); return *this; } /** *

The CloudWatch alarms created for the target tracking scaling policy.

*/ inline PutScalingPolicyResult& AddAlarms(Alarm&& value) { m_alarms.push_back(std::move(value)); return *this; } private: Aws::String m_policyARN; Aws::Vector m_alarms; }; } // namespace Model } // namespace ApplicationAutoScaling } // namespace Aws