Enum ChecksumValidation

java.lang.Object
java.lang.Enum<ChecksumValidation>
software.amazon.awssdk.core.checksums.ChecksumValidation
All Implemented Interfaces:
Serializable, Comparable<ChecksumValidation>

public enum ChecksumValidation extends Enum<ChecksumValidation>
Enum to indicate the checksum validation is performed on a Response that supports Http Checksum Validation. The status of Checksum validation can be obtained by accessing SdkExecutionAttribute.HTTP_RESPONSE_CHECKSUM_VALIDATION on an execution context by using ExecutionInterceptor.afterExecution(Context.AfterExecution, ExecutionAttributes). Possible Checksum Validations VALIDATED FORCE_SKIP CHECKSUM_ALGORITHM_NOT_FOUND CHECKSUM_RESPONSE_NOT_FOUND
  • Enum Constant Details

    • VALIDATED

      public static final ChecksumValidation VALIDATED
      Checksum validation was performed on the response.
    • FORCE_SKIP

      public static final ChecksumValidation FORCE_SKIP
      Checksum validation was skipped since response has customization for specific checksum values.
    • CHECKSUM_ALGORITHM_NOT_FOUND

      public static final ChecksumValidation CHECKSUM_ALGORITHM_NOT_FOUND
      Response has checksum mode enabled but Algorithm was not found in client.
    • CHECKSUM_RESPONSE_NOT_FOUND

      public static final ChecksumValidation CHECKSUM_RESPONSE_NOT_FOUND
      Response has checksum mode enabled but response header did not have checksum.
  • Method Details

    • values

      public static ChecksumValidation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ChecksumValidation valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null