/** * 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 { /** *

Input to an AddInstanceGroups call.

See Also:

AWS * API Reference

*/ class AddInstanceGroupsRequest : public EMRRequest { public: AWS_EMR_API AddInstanceGroupsRequest(); // 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 "AddInstanceGroups"; } AWS_EMR_API Aws::String SerializePayload() const override; AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Instance groups to add.

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

Instance groups to add.

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

Instance groups to add.

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

Instance groups to add.

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

Instance groups to add.

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

Instance groups to add.

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

Instance groups to add.

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

Instance groups to add.

*/ inline AddInstanceGroupsRequest& AddInstanceGroups(InstanceGroupConfig&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; } /** *

Job flow in which to add the instance groups.

*/ inline const Aws::String& GetJobFlowId() const{ return m_jobFlowId; } /** *

Job flow in which to add the instance groups.

*/ inline bool JobFlowIdHasBeenSet() const { return m_jobFlowIdHasBeenSet; } /** *

Job flow in which to add the instance groups.

*/ inline void SetJobFlowId(const Aws::String& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; } /** *

Job flow in which to add the instance groups.

*/ inline void SetJobFlowId(Aws::String&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = std::move(value); } /** *

Job flow in which to add the instance groups.

*/ inline void SetJobFlowId(const char* value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId.assign(value); } /** *

Job flow in which to add the instance groups.

*/ inline AddInstanceGroupsRequest& WithJobFlowId(const Aws::String& value) { SetJobFlowId(value); return *this;} /** *

Job flow in which to add the instance groups.

*/ inline AddInstanceGroupsRequest& WithJobFlowId(Aws::String&& value) { SetJobFlowId(std::move(value)); return *this;} /** *

Job flow in which to add the instance groups.

*/ inline AddInstanceGroupsRequest& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;} private: Aws::Vector m_instanceGroups; bool m_instanceGroupsHasBeenSet = false; Aws::String m_jobFlowId; bool m_jobFlowIdHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws