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 accessingSdkExecutionAttribute.HTTP_RESPONSE_CHECKSUM_VALIDATION
on an execution context by usingExecutionInterceptor.afterExecution(Context.AfterExecution, ExecutionAttributes)
. Possible Checksum ValidationsVALIDATED
FORCE_SKIP
CHECKSUM_ALGORITHM_NOT_FOUND
CHECKSUM_RESPONSE_NOT_FOUND
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKSUM_ALGORITHM_NOT_FOUND
Response has checksum mode enabled but Algorithm was not found in client.CHECKSUM_RESPONSE_NOT_FOUND
Response has checksum mode enabled but response header did not have checksum.FORCE_SKIP
Checksum validation was skipped since response has customization for specific checksum values.VALIDATED
Checksum validation was performed on the response.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChecksumValidation
valueOf(String name)
Returns the enum constant of this type with the specified name.static ChecksumValidation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ChecksumValidation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChecksumValidation c : ChecksumValidation.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
-