/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace AutoScaling { namespace Model { /** *

Contains the output of PutScalingPolicy.

See Also:

AWS * API Reference

*/ class PutScalingPolicyResult { public: AWS_AUTOSCALING_API PutScalingPolicyResult(); AWS_AUTOSCALING_API PutScalingPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_AUTOSCALING_API PutScalingPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the policy.

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

The Amazon Resource Name (ARN) of the policy.

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

The Amazon Resource Name (ARN) of the policy.

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

The Amazon Resource Name (ARN) of the policy.

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

The Amazon Resource Name (ARN) of the policy.

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

The Amazon Resource Name (ARN) of the policy.

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

The Amazon Resource Name (ARN) of the 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; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline PutScalingPolicyResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline PutScalingPolicyResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_policyARN; Aws::Vector m_alarms; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace AutoScaling } // namespace Aws