public class UpdatePipelineStatusRequest extends AmazonWebServiceRequest implements Serializable
UpdatePipelineStatus operation
.
The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that the pipeline stops or restarts the processing of jobs.
Changing the pipeline status is useful if you want to cancel one or more jobs. You can't cancel jobs after Elastic Transcoder has started processing them; if you pause the pipeline to which you submitted the jobs, you have more time to get the job IDs for the jobs that you want to cancel, and to send a CancelJob request.
Constructor and Description |
---|
UpdatePipelineStatusRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getId()
The identifier of the pipeline to update.
|
String |
getStatus()
The desired status of the pipeline:
Active : The
pipeline is processing jobs. Paused : The
pipeline is not currently processing jobs. |
int |
hashCode() |
void |
setId(String id)
The identifier of the pipeline to update.
|
void |
setStatus(String status)
The desired status of the pipeline:
Active : The
pipeline is processing jobs. Paused : The
pipeline is not currently processing jobs. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdatePipelineStatusRequest |
withId(String id)
The identifier of the pipeline to update.
|
UpdatePipelineStatusRequest |
withStatus(String status)
The desired status of the pipeline:
Active : The
pipeline is processing jobs. Paused : The
pipeline is not currently processing jobs. |
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getId()
Constraints:
Pattern: ^\d{13}-\w{6}$
public void setId(String id)
Constraints:
Pattern: ^\d{13}-\w{6}$
id
- The identifier of the pipeline to update.public UpdatePipelineStatusRequest withId(String id)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^\d{13}-\w{6}$
id
- The identifier of the pipeline to update.public String getStatus()
Active
: The
pipeline is processing jobs.Paused
: The
pipeline is not currently processing jobs.
Constraints:
Pattern: (^Active$)|(^Paused$)
Active
: The
pipeline is processing jobs.Paused
: The
pipeline is not currently processing jobs.public void setStatus(String status)
Active
: The
pipeline is processing jobs.Paused
: The
pipeline is not currently processing jobs.
Constraints:
Pattern: (^Active$)|(^Paused$)
status
- The desired status of the pipeline: Active
: The
pipeline is processing jobs.Paused
: The
pipeline is not currently processing jobs.public UpdatePipelineStatusRequest withStatus(String status)
Active
: The
pipeline is processing jobs.Paused
: The
pipeline is not currently processing jobs.Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^Active$)|(^Paused$)
status
- The desired status of the pipeline: Active
: The
pipeline is processing jobs.Paused
: The
pipeline is not currently processing jobs.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.