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

Specifies the ID of a cluster. The instance group to which the automatic * scaling policy is applied is within this cluster.

*/ inline const Aws::String& GetClusterId() const{ return m_clusterId; } /** *

Specifies the ID of a cluster. The instance group to which the automatic * scaling policy is applied is within this cluster.

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

Specifies the ID of a cluster. The instance group to which the automatic * scaling policy is applied is within this cluster.

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

Specifies the ID of a cluster. The instance group to which the automatic * scaling policy is applied is within this cluster.

*/ inline void SetClusterId(const char* value) { m_clusterId.assign(value); } /** *

Specifies the ID of a cluster. The instance group to which the automatic * scaling policy is applied is within this cluster.

*/ inline PutAutoScalingPolicyResult& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;} /** *

Specifies the ID of a cluster. The instance group to which the automatic * scaling policy is applied is within this cluster.

*/ inline PutAutoScalingPolicyResult& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;} /** *

Specifies the ID of a cluster. The instance group to which the automatic * scaling policy is applied is within this cluster.

*/ inline PutAutoScalingPolicyResult& WithClusterId(const char* value) { SetClusterId(value); return *this;} /** *

Specifies the ID of the instance group to which the scaling policy is * applied.

*/ inline const Aws::String& GetInstanceGroupId() const{ return m_instanceGroupId; } /** *

Specifies the ID of the instance group to which the scaling policy is * applied.

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

Specifies the ID of the instance group to which the scaling policy is * applied.

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

Specifies the ID of the instance group to which the scaling policy is * applied.

*/ inline void SetInstanceGroupId(const char* value) { m_instanceGroupId.assign(value); } /** *

Specifies the ID of the instance group to which the scaling policy is * applied.

*/ inline PutAutoScalingPolicyResult& WithInstanceGroupId(const Aws::String& value) { SetInstanceGroupId(value); return *this;} /** *

Specifies the ID of the instance group to which the scaling policy is * applied.

*/ inline PutAutoScalingPolicyResult& WithInstanceGroupId(Aws::String&& value) { SetInstanceGroupId(std::move(value)); return *this;} /** *

Specifies the ID of the instance group to which the scaling policy is * applied.

*/ inline PutAutoScalingPolicyResult& WithInstanceGroupId(const char* value) { SetInstanceGroupId(value); return *this;} /** *

The automatic scaling policy definition.

*/ inline const AutoScalingPolicyDescription& GetAutoScalingPolicy() const{ return m_autoScalingPolicy; } /** *

The automatic scaling policy definition.

*/ inline void SetAutoScalingPolicy(const AutoScalingPolicyDescription& value) { m_autoScalingPolicy = value; } /** *

The automatic scaling policy definition.

*/ inline void SetAutoScalingPolicy(AutoScalingPolicyDescription&& value) { m_autoScalingPolicy = std::move(value); } /** *

The automatic scaling policy definition.

*/ inline PutAutoScalingPolicyResult& WithAutoScalingPolicy(const AutoScalingPolicyDescription& value) { SetAutoScalingPolicy(value); return *this;} /** *

The automatic scaling policy definition.

*/ inline PutAutoScalingPolicyResult& WithAutoScalingPolicy(AutoScalingPolicyDescription&& value) { SetAutoScalingPolicy(std::move(value)); return *this;} /** *

The Amazon Resource Name of the cluster.

*/ inline const Aws::String& GetClusterArn() const{ return m_clusterArn; } /** *

The Amazon Resource Name of the cluster.

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

The Amazon Resource Name of the cluster.

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

The Amazon Resource Name of the cluster.

*/ inline void SetClusterArn(const char* value) { m_clusterArn.assign(value); } /** *

The Amazon Resource Name of the cluster.

*/ inline PutAutoScalingPolicyResult& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

The Amazon Resource Name of the cluster.

*/ inline PutAutoScalingPolicyResult& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;} /** *

The Amazon Resource Name of the cluster.

*/ inline PutAutoScalingPolicyResult& WithClusterArn(const char* value) { SetClusterArn(value); return *this;} private: Aws::String m_clusterId; Aws::String m_instanceGroupId; AutoScalingPolicyDescription m_autoScalingPolicy; Aws::String m_clusterArn; }; } // namespace Model } // namespace EMR } // namespace Aws