/** * 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 PutScalingPolicyResult { public: AWS_APPLICATIONAUTOSCALING_API PutScalingPolicyResult(); AWS_APPLICATIONAUTOSCALING_API PutScalingPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_APPLICATIONAUTOSCALING_API 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; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PutScalingPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutScalingPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutScalingPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_policyARN; Aws::Vector m_alarms; Aws::String m_requestId; }; } // namespace Model } // namespace ApplicationAutoScaling } // namespace Aws