@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CancelJobRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CancelJobRequest() |
| Modifier and Type | Method and Description |
|---|---|
CancelJobRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getComment()
An optional comment string describing why the job was canceled.
|
Boolean |
getForce()
(Optional) If
true job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise
only job executions with status "QUEUED" are canceled. |
String |
getJobId()
The unique identifier you assigned to this job when it was created.
|
String |
getReasonCode()
(Optional)A reason code string that explains why the job was canceled.
|
int |
hashCode() |
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(String comment)
An optional comment string describing why the job was canceled.
|
void |
setForce(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(String jobId)
The unique identifier you assigned to this job when it was created.
|
void |
setReasonCode(String reasonCode)
(Optional)A reason code string that explains why the job was canceled.
|
String |
toString()
Returns a string representation of this object.
|
CancelJobRequest |
withComment(String comment)
An optional comment string describing why the job was canceled.
|
CancelJobRequest |
withForce(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(String jobId)
The unique identifier you assigned to this job when it was created.
|
CancelJobRequest |
withReasonCode(String reasonCode)
(Optional)A reason code string that explains why the job was canceled.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setJobId(String jobId)
The unique identifier you assigned to this job when it was created.
jobId - The unique identifier you assigned to this job when it was created.public String getJobId()
The unique identifier you assigned to this job when it was created.
public CancelJobRequest withJobId(String jobId)
The unique identifier you assigned to this job when it was created.
jobId - The unique identifier you assigned to this job when it was created.public void setReasonCode(String reasonCode)
(Optional)A reason code string that explains why the job was canceled.
reasonCode - (Optional)A reason code string that explains why the job was canceled.public String getReasonCode()
(Optional)A reason code string that explains why the job was canceled.
public CancelJobRequest withReasonCode(String reasonCode)
(Optional)A reason code string that explains why the job was canceled.
reasonCode - (Optional)A reason code string that explains why the job was canceled.public void setComment(String comment)
An optional comment string describing why the job was canceled.
comment - An optional comment string describing why the job was canceled.public String getComment()
An optional comment string describing why the job was canceled.
public CancelJobRequest withComment(String comment)
An optional comment string describing why the job was canceled.
comment - An optional comment string describing why the job was canceled.public void setForce(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 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.
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(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 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.
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 String toString()
toString in class ObjectObject.toString()public CancelJobRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()