Class TerminateJobsErrorDetail

java.lang.Object
software.amazon.awssdk.services.batch.model.TerminateJobsErrorDetail
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<TerminateJobsErrorDetail.Builder,TerminateJobsErrorDetail>

@Generated("software.amazon.awssdk:codegen") public final class TerminateJobsErrorDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TerminateJobsErrorDetail.Builder,TerminateJobsErrorDetail>

An object that contains the details of a job that couldn't be terminated by a TerminateJobs operation.

See Also:
  • Method Details

    • job

      public final String job()

      The Batch job ID of the job that couldn't be terminated.

      Returns:
      The Batch job ID of the job that couldn't be terminated.
    • code

      public final String code()

      An error code that identifies the reason the job couldn't be terminated. Valid values are:

      • ValidationException – A job identifier in the request is malformed or isn't valid.

      • ClientException – The request failed because of a client error.

      • ThrottlingException – The request was throttled. Retry the request.

      • ServerException – An internal error occurred. Retry the request.

      • AccessDenied – The caller isn't authorized to perform the action on the specified job.

      Returns:
      An error code that identifies the reason the job couldn't be terminated. Valid values are:

      • ValidationException – A job identifier in the request is malformed or isn't valid.

      • ClientException – The request failed because of a client error.

      • ThrottlingException – The request was throttled. Retry the request.

      • ServerException – An internal error occurred. Retry the request.

      • AccessDenied – The caller isn't authorized to perform the action on the specified job.

    • message

      public final String message()

      A message that describes the reason the job couldn't be terminated.

      Returns:
      A message that describes the reason the job couldn't be terminated.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<TerminateJobsErrorDetail.Builder,TerminateJobsErrorDetail>
    • builder

      public static TerminateJobsErrorDetail.Builder builder()
    • serializableBuilderClass

      public static Class<? extends TerminateJobsErrorDetail.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • toString

      public final String 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo