public class SetStatusRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Contains the parameters for SetStatus.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
objectIds
The IDs of the objects.
|
private java.lang.String |
pipelineId
The ID of the pipeline that contains the objects.
|
private java.lang.String |
status
The status to be set on all the objects specified in
objectIds . |
NOOP
Constructor and Description |
---|
SetStatusRequest() |
Modifier and Type | Method and Description |
---|---|
SetStatusRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getObjectIds()
The IDs of the objects.
|
java.lang.String |
getPipelineId()
The ID of the pipeline that contains the objects.
|
java.lang.String |
getStatus()
The status to be set on all the objects specified in
objectIds . |
int |
hashCode() |
void |
setObjectIds(java.util.Collection<java.lang.String> objectIds)
The IDs of the objects.
|
void |
setPipelineId(java.lang.String pipelineId)
The ID of the pipeline that contains the objects.
|
void |
setStatus(java.lang.String status)
The status to be set on all the objects specified in
objectIds . |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetStatusRequest |
withObjectIds(java.util.Collection<java.lang.String> objectIds)
The IDs of the objects.
|
SetStatusRequest |
withObjectIds(java.lang.String... objectIds)
The IDs of the objects.
|
SetStatusRequest |
withPipelineId(java.lang.String pipelineId)
The ID of the pipeline that contains the objects.
|
SetStatusRequest |
withStatus(java.lang.String status)
The status to be set on all the objects specified in
objectIds . |
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String pipelineId
The ID of the pipeline that contains the objects.
private SdkInternalList<java.lang.String> objectIds
The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
private java.lang.String 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 void setPipelineId(java.lang.String pipelineId)
The ID of the pipeline that contains the objects.
pipelineId
- The ID of the pipeline that contains the objects.public java.lang.String getPipelineId()
The ID of the pipeline that contains the objects.
public SetStatusRequest withPipelineId(java.lang.String pipelineId)
The ID of the pipeline that contains the objects.
pipelineId
- The ID of the pipeline that contains the objects.public java.util.List<java.lang.String> getObjectIds()
The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
public void setObjectIds(java.util.Collection<java.lang.String> objectIds)
The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
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(java.lang.String... objectIds)
The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
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.
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(java.util.Collection<java.lang.String> objectIds)
The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
objectIds
- The IDs of the objects. The corresponding objects can be either
physical or components, but not a mix of both types.public void setStatus(java.lang.String 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
.
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 java.lang.String getStatus()
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
.
objectIds
. For components, use PAUSE
or
RESUME
. For instances, use TRY_CANCEL
,
RERUN
, or MARK_FINISHED
.public SetStatusRequest withStatus(java.lang.String 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
.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SetStatusRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()