@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 |
getJobId()
The AWS Batch job ID of the job to cancel.
|
String |
getReason()
A message to attach to the job that explains the reason for cancelling it.
|
int |
hashCode() |
void |
setJobId(String jobId)
The AWS Batch job ID of the job to cancel.
|
void |
setReason(String reason)
A message to attach to the job that explains the reason for cancelling it.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CancelJobRequest |
withJobId(String jobId)
The AWS Batch job ID of the job to cancel.
|
CancelJobRequest |
withReason(String reason)
A message to attach to the job that explains the reason for cancelling it.
|
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, withSdkRequestTimeout
public void setJobId(String jobId)
The AWS Batch job ID of the job to cancel.
jobId
- The AWS Batch job ID of the job to cancel.public String getJobId()
The AWS Batch job ID of the job to cancel.
public CancelJobRequest withJobId(String jobId)
The AWS Batch job ID of the job to cancel.
jobId
- The AWS Batch job ID of the job to cancel.public void setReason(String reason)
A message to attach to the job that explains the reason for cancelling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity logs.
reason
- A message to attach to the job that explains the reason for cancelling it. This message is returned by
future DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity
logs.public String getReason()
A message to attach to the job that explains the reason for cancelling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity logs.
public CancelJobRequest withReason(String reason)
A message to attach to the job that explains the reason for cancelling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity logs.
reason
- A message to attach to the job that explains the reason for cancelling it. This message is returned by
future DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity
logs.public String toString()
toString
in class Object
Object.toString()
public CancelJobRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.