Class CancelJobRequest
java.lang.Object
software.amazon.awssdk.core.SdkRequest
software.amazon.awssdk.awscore.AwsRequest
software.amazon.awssdk.services.batch.model.BatchRequest
software.amazon.awssdk.services.batch.model.CancelJobRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CancelJobRequest.Builder,CancelJobRequest>
@Generated("software.amazon.awssdk:codegen")
public final class CancelJobRequest
extends BatchRequest
implements ToCopyableBuilder<CancelJobRequest.Builder,CancelJobRequest>
Contains the parameters for CancelJob.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CancelJobRequest.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringjobId()The Batch job ID of the job to cancel.final Stringreason()A message to attach to the job that explains the reason for canceling it.static Class<? extends CancelJobRequest.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
jobId
The Batch job ID of the job to cancel.
- Returns:
- The Batch job ID of the job to cancel.
-
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. It is also recorded in the Batch activity logs.
This parameter has as limit of 1024 characters.
- Returns:
- 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. It is also recorded in the Batch activity logs.
This parameter has as limit of 1024 characters.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<CancelJobRequest.Builder,CancelJobRequest> - Specified by:
toBuilderin classBatchRequest
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-