Class ProtectedJobError

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

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

Details of the error that caused the protected job to fail.

See Also:
  • Method Details

    • message

      public final String message()

      A description of why the protected job failed.

      Returns:
      A description of why the protected job failed.
    • code

      public final String code()

      A code that identifies the category of the failure. Valid values are:

      • MALFORMED_SCRIPT – The job script or its execution environment is not valid (code, imports, entry point, virtual environment, or dependencies).

      • RESOURCE_NOT_FOUND – A referenced resource doesn't exist.

      • INVALID_RESOURCE – A referenced resource exists, but you can't use it because its configuration, state, or data is not valid.

      • RESOURCE_ACCESS_DENIED – A required permission is missing for a data source or resource.

      • INSUFFICIENT_COMPUTE – The job exceeded the available compute (memory, disk, or time).

      • TRANSIENT_ERROR – A temporary condition caused the failure, such as throttling or a network interruption.

      • INTERNAL_ERROR – Clean Rooms encountered an unexpected error. If the error persists, contact AWS Support.

      • UNKNOWN_ERROR – The failure couldn't be classified.

      For more information about error codes, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/error-codes.html in the Clean Rooms User Guide.

      Returns:
      A code that identifies the category of the failure. Valid values are:

      • MALFORMED_SCRIPT – The job script or its execution environment is not valid (code, imports, entry point, virtual environment, or dependencies).

      • RESOURCE_NOT_FOUND – A referenced resource doesn't exist.

      • INVALID_RESOURCE – A referenced resource exists, but you can't use it because its configuration, state, or data is not valid.

      • RESOURCE_ACCESS_DENIED – A required permission is missing for a data source or resource.

      • INSUFFICIENT_COMPUTE – The job exceeded the available compute (memory, disk, or time).

      • TRANSIENT_ERROR – A temporary condition caused the failure, such as throttling or a network interruption.

      • INTERNAL_ERROR – Clean Rooms encountered an unexpected error. If the error persists, contact AWS Support.

      • UNKNOWN_ERROR – The failure couldn't be classified.

      For more information about error codes, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/error-codes.html in the Clean Rooms User Guide.

    • retry

      public final RetryInfo retry()

      Contains information about whether running the same protected job again might succeed.

      Returns:
      Contains information about whether running the same protected job again might succeed.
    • toBuilder

      public ProtectedJobError.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ProtectedJobError.Builder,ProtectedJobError>
      Returns:
      a builder for type T
    • builder

      public static ProtectedJobError.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ProtectedJobError.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)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.