@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TerminateJobRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the parameters for TerminateJob
.
NOOP
Constructor and Description |
---|
TerminateJobRequest() |
Modifier and Type | Method and Description |
---|---|
TerminateJobRequest |
clone() |
boolean |
equals(Object obj) |
String |
getJobId()
The AWS Batch job ID of the job to terminate.
|
String |
getReason()
A message to attach to the job that explains the reason for canceling it.
|
int |
hashCode() |
void |
setJobId(String jobId)
The AWS Batch job ID of the job to terminate.
|
void |
setReason(String reason)
A message to attach to the job that explains the reason for canceling it.
|
String |
toString()
Returns a string representation of this object.
|
TerminateJobRequest |
withJobId(String jobId)
The AWS Batch job ID of the job to terminate.
|
TerminateJobRequest |
withReason(String reason)
A message to attach to the job that explains the reason for canceling it.
|
addHandlerContext, copyBaseTo, 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 terminate.
jobId
- The AWS Batch job ID of the job to terminate.public String getJobId()
The AWS Batch job ID of the job to terminate.
public TerminateJobRequest withJobId(String jobId)
The AWS Batch job ID of the job to terminate.
jobId
- The AWS Batch job ID of the job to terminate.public void setReason(String reason)
A message to attach to the job that explains the reason for canceling 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 canceling 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 canceling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity logs.
public TerminateJobRequest withReason(String reason)
A message to attach to the job that explains the reason for canceling 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 canceling 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 TerminateJobRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2021. All rights reserved.