public class DescribeJobFlowsRequest extends AmazonWebServiceRequest implements Serializable
DescribeJobFlows operation
.
This API is deprecated and will eventually be removed. We recommend you use ListClusters, DescribeCluster, ListSteps, ListInstanceGroups and ListBootstrapActions instead.
DescribeJobFlows returns a list of job flows that match all of the supplied parameters. The parameters can include a list of job flow IDs, job flow states, and restrictions on job flow creation date and time.
Regardless of supplied parameters, only job flows created within the last two months are returned.
If no parameters are supplied, then job flows matching either of the following criteria are returned:
RUNNING
,
WAITING
,
SHUTTING_DOWN
,
STARTING
Amazon Elastic MapReduce can return a maximum of 512 job flow descriptions.
NOOP
Constructor and Description |
---|
DescribeJobFlowsRequest()
Default constructor for a new DescribeJobFlowsRequest object.
|
DescribeJobFlowsRequest(List<String> jobFlowIds)
Constructs a new DescribeJobFlowsRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getCreatedAfter()
Return only job flows created after this date and time.
|
Date |
getCreatedBefore()
Return only job flows created before this date and time.
|
List<String> |
getJobFlowIds()
Return only job flows whose job flow ID is contained in this list.
|
List<String> |
getJobFlowStates()
Return only job flows whose state is contained in this list.
|
int |
hashCode() |
void |
setCreatedAfter(Date createdAfter)
Return only job flows created after this date and time.
|
void |
setCreatedBefore(Date createdBefore)
Return only job flows created before this date and time.
|
void |
setJobFlowIds(Collection<String> jobFlowIds)
Return only job flows whose job flow ID is contained in this list.
|
void |
setJobFlowStates(Collection<String> jobFlowStates)
Return only job flows whose state is contained in this list.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeJobFlowsRequest |
withCreatedAfter(Date createdAfter)
Return only job flows created after this date and time.
|
DescribeJobFlowsRequest |
withCreatedBefore(Date createdBefore)
Return only job flows created before this date and time.
|
DescribeJobFlowsRequest |
withJobFlowIds(Collection<String> jobFlowIds)
Return only job flows whose job flow ID is contained in this list.
|
DescribeJobFlowsRequest |
withJobFlowIds(String... jobFlowIds)
Return only job flows whose job flow ID is contained in this list.
|
DescribeJobFlowsRequest |
withJobFlowStates(Collection<String> jobFlowStates)
Return only job flows whose state is contained in this list.
|
DescribeJobFlowsRequest |
withJobFlowStates(JobFlowExecutionState... jobFlowStates)
Return only job flows whose state is contained in this list.
|
DescribeJobFlowsRequest |
withJobFlowStates(String... jobFlowStates)
Return only job flows whose state is contained in this list.
|
copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DescribeJobFlowsRequest()
public DescribeJobFlowsRequest(List<String> jobFlowIds)
jobFlowIds
- Return only job flows whose job flow ID is contained
in this list.public Date getCreatedAfter()
public void setCreatedAfter(Date createdAfter)
createdAfter
- Return only job flows created after this date and time.public DescribeJobFlowsRequest withCreatedAfter(Date createdAfter)
Returns a reference to this object so that method calls can be chained together.
createdAfter
- Return only job flows created after this date and time.public Date getCreatedBefore()
public void setCreatedBefore(Date createdBefore)
createdBefore
- Return only job flows created before this date and time.public DescribeJobFlowsRequest withCreatedBefore(Date createdBefore)
Returns a reference to this object so that method calls can be chained together.
createdBefore
- Return only job flows created before this date and time.public List<String> getJobFlowIds()
public void setJobFlowIds(Collection<String> jobFlowIds)
jobFlowIds
- Return only job flows whose job flow ID is contained in this list.public DescribeJobFlowsRequest withJobFlowIds(String... jobFlowIds)
Returns a reference to this object so that method calls can be chained together.
jobFlowIds
- Return only job flows whose job flow ID is contained in this list.public DescribeJobFlowsRequest withJobFlowIds(Collection<String> jobFlowIds)
Returns a reference to this object so that method calls can be chained together.
jobFlowIds
- Return only job flows whose job flow ID is contained in this list.public List<String> getJobFlowStates()
public void setJobFlowStates(Collection<String> jobFlowStates)
jobFlowStates
- Return only job flows whose state is contained in this list.public DescribeJobFlowsRequest withJobFlowStates(String... jobFlowStates)
Returns a reference to this object so that method calls can be chained together.
jobFlowStates
- Return only job flows whose state is contained in this list.public DescribeJobFlowsRequest withJobFlowStates(Collection<String> jobFlowStates)
Returns a reference to this object so that method calls can be chained together.
jobFlowStates
- Return only job flows whose state is contained in this list.public DescribeJobFlowsRequest withJobFlowStates(JobFlowExecutionState... jobFlowStates)
Returns a reference to this object so that method calls can be chained together.
jobFlowStates
- Return only job flows whose state is contained in this list.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.