public class TerminateJobFlowsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
TerminateJobFlows operation
.
TerminateJobFlows shuts a list of job flows down. When a job flow is shut down, any step not yet completed is canceled and the EC2 instances on which the job flow is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the job flow was created.
The maximum number of JobFlows allowed is 10. The call to TerminateJobFlows is asynchronous. Depending on the configuration of the job flow, it may take up to 5-20 minutes for the job flow to completely terminate and release allocated resources, such as Amazon EC2 instances.
NOOP
Constructor and Description |
---|
TerminateJobFlowsRequest()
Default constructor for a new TerminateJobFlowsRequest object.
|
TerminateJobFlowsRequest(List<String> jobFlowIds)
Constructs a new TerminateJobFlowsRequest object.
|
Modifier and Type | Method and Description |
---|---|
TerminateJobFlowsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<String> |
getJobFlowIds()
A list of job flows to be shutdown.
|
int |
hashCode() |
void |
setJobFlowIds(Collection<String> jobFlowIds)
A list of job flows to be shutdown.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TerminateJobFlowsRequest |
withJobFlowIds(Collection<String> jobFlowIds)
A list of job flows to be shutdown.
|
TerminateJobFlowsRequest |
withJobFlowIds(String... jobFlowIds)
A list of job flows to be shutdown.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public TerminateJobFlowsRequest()
public TerminateJobFlowsRequest(List<String> jobFlowIds)
jobFlowIds
- A list of job flows to be shutdown.public List<String> getJobFlowIds()
public void setJobFlowIds(Collection<String> jobFlowIds)
jobFlowIds
- A list of job flows to be shutdown.public TerminateJobFlowsRequest withJobFlowIds(String... jobFlowIds)
NOTE: This method appends the values to the existing list (if
any). Use setJobFlowIds(java.util.Collection)
or withJobFlowIds(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
jobFlowIds
- A list of job flows to be shutdown.public TerminateJobFlowsRequest withJobFlowIds(Collection<String> jobFlowIds)
Returns a reference to this object so that method calls can be chained together.
jobFlowIds
- A list of job flows to be shutdown.public String toString()
toString
in class Object
Object.toString()
public TerminateJobFlowsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.