public class CancelJobRequest extends AmazonWebServiceRequest implements java.io.Serializable
Cancels a job.
| Constructor and Description |
|---|
CancelJobRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getComment()
An optional comment string describing why the job was canceled.
|
java.lang.Boolean |
getForce()
(Optional) If
true job executions with status "IN_PROGRESS"
and "QUEUED" are canceled, otherwise only job executions with status
"QUEUED" are canceled. |
java.lang.String |
getJobId()
The unique identifier you assigned to this job when it was created.
|
java.lang.String |
getReasonCode()
(Optional)A reason code string that explains why the job was canceled.
|
int |
hashCode() |
java.lang.Boolean |
isForce()
(Optional) If
true job executions with status "IN_PROGRESS"
and "QUEUED" are canceled, otherwise only job executions with status
"QUEUED" are canceled. |
void |
setComment(java.lang.String comment)
An optional comment string describing why the job was canceled.
|
void |
setForce(java.lang.Boolean force)
(Optional) If
true job executions with status "IN_PROGRESS"
and "QUEUED" are canceled, otherwise only job executions with status
"QUEUED" are canceled. |
void |
setJobId(java.lang.String jobId)
The unique identifier you assigned to this job when it was created.
|
void |
setReasonCode(java.lang.String reasonCode)
(Optional)A reason code string that explains why the job was canceled.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelJobRequest |
withComment(java.lang.String comment)
An optional comment string describing why the job was canceled.
|
CancelJobRequest |
withForce(java.lang.Boolean force)
(Optional) If
true job executions with status "IN_PROGRESS"
and "QUEUED" are canceled, otherwise only job executions with status
"QUEUED" are canceled. |
CancelJobRequest |
withJobId(java.lang.String jobId)
The unique identifier you assigned to this job when it was created.
|
CancelJobRequest |
withReasonCode(java.lang.String reasonCode)
(Optional)A reason code string that explains why the job was canceled.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getJobId()
The unique identifier you assigned to this job when it was created.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
The unique identifier you assigned to this job when it was created.
public void setJobId(java.lang.String jobId)
The unique identifier you assigned to this job when it was created.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
jobId - The unique identifier you assigned to this job when it was created.
public CancelJobRequest withJobId(java.lang.String jobId)
The unique identifier you assigned to this job when it was created.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
jobId - The unique identifier you assigned to this job when it was created.
public java.lang.String getReasonCode()
(Optional)A reason code string that explains why the job was canceled.
Constraints:
Length: - 128
Pattern: [\p{Upper}\p{Digit}_]+
(Optional)A reason code string that explains why the job was canceled.
public void setReasonCode(java.lang.String reasonCode)
(Optional)A reason code string that explains why the job was canceled.
Constraints:
Length: - 128
Pattern: [\p{Upper}\p{Digit}_]+
reasonCode - (Optional)A reason code string that explains why the job was canceled.
public CancelJobRequest withReasonCode(java.lang.String reasonCode)
(Optional)A reason code string that explains why the job was canceled.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 128
Pattern: [\p{Upper}\p{Digit}_]+
reasonCode - (Optional)A reason code string that explains why the job was canceled.
public java.lang.String getComment()
An optional comment string describing why the job was canceled.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
An optional comment string describing why the job was canceled.
public void setComment(java.lang.String comment)
An optional comment string describing why the job was canceled.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
comment - An optional comment string describing why the job was canceled.
public CancelJobRequest withComment(java.lang.String comment)
An optional comment string describing why the job was canceled.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
comment - An optional comment string describing why the job was canceled.
public java.lang.Boolean isForce()
(Optional) If true job executions with status "IN_PROGRESS"
and "QUEUED" are canceled, otherwise only job executions with status
"QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
(Optional) If true job executions with status
"IN_PROGRESS" and "QUEUED" are canceled, otherwise only job
executions with status "QUEUED" are canceled. The default is
false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
public java.lang.Boolean getForce()
(Optional) If true job executions with status "IN_PROGRESS"
and "QUEUED" are canceled, otherwise only job executions with status
"QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
(Optional) If true job executions with status
"IN_PROGRESS" and "QUEUED" are canceled, otherwise only job
executions with status "QUEUED" are canceled. The default is
false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
public void setForce(java.lang.Boolean force)
(Optional) If true job executions with status "IN_PROGRESS"
and "QUEUED" are canceled, otherwise only job executions with status
"QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
force -
(Optional) If true job executions with status
"IN_PROGRESS" and "QUEUED" are canceled, otherwise only job
executions with status "QUEUED" are canceled. The default is
false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
public CancelJobRequest withForce(java.lang.Boolean force)
(Optional) If true job executions with status "IN_PROGRESS"
and "QUEUED" are canceled, otherwise only job executions with status
"QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
Returns a reference to this object so that method calls can be chained together.
force -
(Optional) If true job executions with status
"IN_PROGRESS" and "QUEUED" are canceled, otherwise only job
executions with status "QUEUED" are canceled. The default is
false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.