/** * 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 { namespace EMR { namespace Model { /** *

Change the size of some instance groups.

See Also:

AWS * API Reference

*/ class ModifyInstanceGroupsRequest : public EMRRequest { public: AWS_EMR_API ModifyInstanceGroupsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceGroups"; } AWS_EMR_API Aws::String SerializePayload() const override; AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the cluster to which the instance group belongs.

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

The ID of the cluster to which the instance group belongs.

*/ inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; } /** *

The ID of the cluster to which the instance group belongs.

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

The ID of the cluster to which the instance group belongs.

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

The ID of the cluster to which the instance group belongs.

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

The ID of the cluster to which the instance group belongs.

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

The ID of the cluster to which the instance group belongs.

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

The ID of the cluster to which the instance group belongs.

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

Instance groups to change.

*/ inline const Aws::Vector& GetInstanceGroups() const{ return m_instanceGroups; } /** *

Instance groups to change.

*/ inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; } /** *

Instance groups to change.

*/ inline void SetInstanceGroups(const Aws::Vector& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = value; } /** *

Instance groups to change.

*/ inline void SetInstanceGroups(Aws::Vector&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::move(value); } /** *

Instance groups to change.

*/ inline ModifyInstanceGroupsRequest& WithInstanceGroups(const Aws::Vector& value) { SetInstanceGroups(value); return *this;} /** *

Instance groups to change.

*/ inline ModifyInstanceGroupsRequest& WithInstanceGroups(Aws::Vector&& value) { SetInstanceGroups(std::move(value)); return *this;} /** *

Instance groups to change.

*/ inline ModifyInstanceGroupsRequest& AddInstanceGroups(const InstanceGroupModifyConfig& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(value); return *this; } /** *

Instance groups to change.

*/ inline ModifyInstanceGroupsRequest& AddInstanceGroups(InstanceGroupModifyConfig&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; } private: Aws::String m_clusterId; bool m_clusterIdHasBeenSet = false; Aws::Vector m_instanceGroups; bool m_instanceGroupsHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws