public class SetStatusRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SetStatus operation
.
Requests that the status of the specified physical or logical pipeline
objects be updated in the specified pipeline. This update might not
occur immediately, but is eventually consistent. The status that can
be set depends on the type of object (for example, DataNode or
Activity). You cannot perform this operation on FINISHED
pipelines and attempting to do so returns
InvalidRequestException
.
NOOP
Constructor and Description |
---|
SetStatusRequest() |
Modifier and Type | Method and Description |
---|---|
SetStatusRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<String> |
getObjectIds()
The IDs of the objects.
|
String |
getPipelineId()
The ID of the pipeline that contains the objects.
|
String |
getStatus()
The status to be set on all the objects specified in
objectIds . |
int |
hashCode() |
void |
setObjectIds(Collection<String> objectIds)
The IDs of the objects.
|
void |
setPipelineId(String pipelineId)
The ID of the pipeline that contains the objects.
|
void |
setStatus(String status)
The status to be set on all the objects specified in
objectIds . |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetStatusRequest |
withObjectIds(Collection<String> objectIds)
The IDs of the objects.
|
SetStatusRequest |
withObjectIds(String... objectIds)
The IDs of the objects.
|
SetStatusRequest |
withPipelineId(String pipelineId)
The ID of the pipeline that contains the objects.
|
SetStatusRequest |
withStatus(String status)
The status to be set on all the objects specified in
objectIds . |
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getPipelineId()
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setPipelineId(String pipelineId)
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
pipelineId
- The ID of the pipeline that contains the objects.public SetStatusRequest withPipelineId(String pipelineId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
pipelineId
- The ID of the pipeline that contains the objects.public List<String> getObjectIds()
public void setObjectIds(Collection<String> objectIds)
objectIds
- The IDs of the objects. The corresponding objects can be either
physical or components, but not a mix of both types.public SetStatusRequest withObjectIds(String... objectIds)
NOTE: This method appends the values to the existing list (if
any). Use setObjectIds(java.util.Collection)
or withObjectIds(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.
objectIds
- The IDs of the objects. The corresponding objects can be either
physical or components, but not a mix of both types.public SetStatusRequest withObjectIds(Collection<String> objectIds)
Returns a reference to this object so that method calls can be chained together.
objectIds
- The IDs of the objects. The corresponding objects can be either
physical or components, but not a mix of both types.public String getStatus()
objectIds
. For components, use PAUSE
or
RESUME
. For instances, use TRY_CANCEL
,
RERUN
, or MARK_FINISHED
.
Constraints:
Length: 0 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
objectIds
. For components, use PAUSE
or
RESUME
. For instances, use TRY_CANCEL
,
RERUN
, or MARK_FINISHED
.public void setStatus(String status)
objectIds
. For components, use PAUSE
or
RESUME
. For instances, use TRY_CANCEL
,
RERUN
, or MARK_FINISHED
.
Constraints:
Length: 0 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
status
- The status to be set on all the objects specified in
objectIds
. For components, use PAUSE
or
RESUME
. For instances, use TRY_CANCEL
,
RERUN
, or MARK_FINISHED
.public SetStatusRequest withStatus(String status)
objectIds
. For components, use PAUSE
or
RESUME
. For instances, use TRY_CANCEL
,
RERUN
, or MARK_FINISHED
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
status
- The status to be set on all the objects specified in
objectIds
. For components, use PAUSE
or
RESUME
. For instances, use TRY_CANCEL
,
RERUN
, or MARK_FINISHED
.public String toString()
toString
in class Object
Object.toString()
public SetStatusRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.