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

Input to the TerminateJobFlows operation.

See Also:

* AWS * API Reference

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

A list of job flows to be shut down.

*/ inline const Aws::Vector& GetJobFlowIds() const{ return m_jobFlowIds; } /** *

A list of job flows to be shut down.

*/ inline bool JobFlowIdsHasBeenSet() const { return m_jobFlowIdsHasBeenSet; } /** *

A list of job flows to be shut down.

*/ inline void SetJobFlowIds(const Aws::Vector& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = value; } /** *

A list of job flows to be shut down.

*/ inline void SetJobFlowIds(Aws::Vector&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = std::move(value); } /** *

A list of job flows to be shut down.

*/ inline TerminateJobFlowsRequest& WithJobFlowIds(const Aws::Vector& value) { SetJobFlowIds(value); return *this;} /** *

A list of job flows to be shut down.

*/ inline TerminateJobFlowsRequest& WithJobFlowIds(Aws::Vector&& value) { SetJobFlowIds(std::move(value)); return *this;} /** *

A list of job flows to be shut down.

*/ inline TerminateJobFlowsRequest& AddJobFlowIds(const Aws::String& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; } /** *

A list of job flows to be shut down.

*/ inline TerminateJobFlowsRequest& AddJobFlowIds(Aws::String&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(std::move(value)); return *this; } /** *

A list of job flows to be shut down.

*/ inline TerminateJobFlowsRequest& AddJobFlowIds(const char* value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; } private: Aws::Vector m_jobFlowIds; bool m_jobFlowIdsHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws