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

Output from an AddInstanceGroups call.

See Also:

AWS * API Reference

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

The job flow ID in which the instance groups are added.

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

The job flow ID in which the instance groups are added.

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

The job flow ID in which the instance groups are added.

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

The job flow ID in which the instance groups are added.

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

The job flow ID in which the instance groups are added.

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

The job flow ID in which the instance groups are added.

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

The job flow ID in which the instance groups are added.

*/ inline AddInstanceGroupsResult& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;} /** *

Instance group IDs of the newly created instance groups.

*/ inline const Aws::Vector& GetInstanceGroupIds() const{ return m_instanceGroupIds; } /** *

Instance group IDs of the newly created instance groups.

*/ inline void SetInstanceGroupIds(const Aws::Vector& value) { m_instanceGroupIds = value; } /** *

Instance group IDs of the newly created instance groups.

*/ inline void SetInstanceGroupIds(Aws::Vector&& value) { m_instanceGroupIds = std::move(value); } /** *

Instance group IDs of the newly created instance groups.

*/ inline AddInstanceGroupsResult& WithInstanceGroupIds(const Aws::Vector& value) { SetInstanceGroupIds(value); return *this;} /** *

Instance group IDs of the newly created instance groups.

*/ inline AddInstanceGroupsResult& WithInstanceGroupIds(Aws::Vector&& value) { SetInstanceGroupIds(std::move(value)); return *this;} /** *

Instance group IDs of the newly created instance groups.

*/ inline AddInstanceGroupsResult& AddInstanceGroupIds(const Aws::String& value) { m_instanceGroupIds.push_back(value); return *this; } /** *

Instance group IDs of the newly created instance groups.

*/ inline AddInstanceGroupsResult& AddInstanceGroupIds(Aws::String&& value) { m_instanceGroupIds.push_back(std::move(value)); return *this; } /** *

Instance group IDs of the newly created instance groups.

*/ inline AddInstanceGroupsResult& AddInstanceGroupIds(const char* value) { m_instanceGroupIds.push_back(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 AddInstanceGroupsResult& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

The Amazon Resource Name of the cluster.

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

The Amazon Resource Name of the cluster.

*/ inline AddInstanceGroupsResult& WithClusterArn(const char* value) { SetClusterArn(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 AddInstanceGroupsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AddInstanceGroupsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AddInstanceGroupsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_jobFlowId; Aws::Vector m_instanceGroupIds; Aws::String m_clusterArn; Aws::String m_requestId; }; } // namespace Model } // namespace EMR } // namespace Aws