96 lines
3.2 KiB
C++
96 lines
3.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/elasticmapreduce/EMR_EXPORTS.h>
|
|
#include <aws/elasticmapreduce/EMRRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace EMR
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p> Input to the <a>TerminateJobFlows</a> operation. </p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/TerminateJobFlowsInput">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_EMR_API TerminateJobFlowsRequest : public EMRRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>A list of job flows to be shutdown.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetJobFlowIds() const{ return m_jobFlowIds; }
|
|
|
|
/**
|
|
* <p>A list of job flows to be shutdown.</p>
|
|
*/
|
|
inline bool JobFlowIdsHasBeenSet() const { return m_jobFlowIdsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of job flows to be shutdown.</p>
|
|
*/
|
|
inline void SetJobFlowIds(const Aws::Vector<Aws::String>& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = value; }
|
|
|
|
/**
|
|
* <p>A list of job flows to be shutdown.</p>
|
|
*/
|
|
inline void SetJobFlowIds(Aws::Vector<Aws::String>&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of job flows to be shutdown.</p>
|
|
*/
|
|
inline TerminateJobFlowsRequest& WithJobFlowIds(const Aws::Vector<Aws::String>& value) { SetJobFlowIds(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of job flows to be shutdown.</p>
|
|
*/
|
|
inline TerminateJobFlowsRequest& WithJobFlowIds(Aws::Vector<Aws::String>&& value) { SetJobFlowIds(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of job flows to be shutdown.</p>
|
|
*/
|
|
inline TerminateJobFlowsRequest& AddJobFlowIds(const Aws::String& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of job flows to be shutdown.</p>
|
|
*/
|
|
inline TerminateJobFlowsRequest& AddJobFlowIds(Aws::String&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A list of job flows to be shutdown.</p>
|
|
*/
|
|
inline TerminateJobFlowsRequest& AddJobFlowIds(const char* value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::Vector<Aws::String> m_jobFlowIds;
|
|
bool m_jobFlowIdsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EMR
|
|
} // namespace Aws
|