Enum RequestChecksumCalculation
- java.lang.Object
-
- java.lang.Enum<RequestChecksumCalculation>
-
- software.amazon.awssdk.core.checksums.RequestChecksumCalculation
-
- All Implemented Interfaces:
Serializable
,Comparable<RequestChecksumCalculation>
public enum RequestChecksumCalculation extends Enum<RequestChecksumCalculation>
Enum class for request checksum calculation setting.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description WHEN_REQUIRED
Checksum will only be calculated for request if required.WHEN_SUPPORTED
Checksum will be calculated for request if supported.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestChecksumCalculation
fromValue(String s)
Returns the appropriate RequestChecksumCalculation value after parsing the parameter.static RequestChecksumCalculation
valueOf(String name)
Returns the enum constant of this type with the specified name.static RequestChecksumCalculation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WHEN_SUPPORTED
public static final RequestChecksumCalculation WHEN_SUPPORTED
Checksum will be calculated for request if supported. Default setting.
-
WHEN_REQUIRED
public static final RequestChecksumCalculation WHEN_REQUIRED
Checksum will only be calculated for request if required.
-
-
Method Detail
-
values
public static RequestChecksumCalculation[] 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 (RequestChecksumCalculation c : RequestChecksumCalculation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestChecksumCalculation 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
-
fromValue
public static RequestChecksumCalculation fromValue(String s)
Returns the appropriate RequestChecksumCalculation value after parsing the parameter.- Parameters:
s
- RequestChecksumCalculation in String format.- Returns:
- RequestChecksumCalculation enum value.
- Throws:
IllegalArgumentException
- Unrecognized value for request checksum calculation.
-
-