Class RequestChecksumCalculationResolver
- java.lang.Object
-
- software.amazon.awssdk.core.checksums.RequestChecksumCalculationResolver
-
@SdkProtectedApi public final class RequestChecksumCalculationResolver extends Object
Allows customizing the variables used during determination of aRequestChecksumCalculation. Created viacreate().
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestChecksumCalculationResolvercreate()RequestChecksumCalculationResolverdefaultChecksumCalculation(RequestChecksumCalculation defaultChecksumCalculation)Configure theRequestChecksumCalculationthat should be used if the mode is not specified anywhere else.RequestChecksumCalculationResolverprofileFile(Supplier<ProfileFile> profileFile)Configure the profile file that should be used when determining theRequestChecksumCalculation.RequestChecksumCalculationResolverprofileName(String profileName)Configure the profile file name should be used when determining theRequestChecksumCalculation.RequestChecksumCalculationresolve()Resolve which request checksum calculation setting should be used, based on the configured values.
-
-
-
Method Detail
-
create
public static RequestChecksumCalculationResolver create()
-
profileFile
public RequestChecksumCalculationResolver profileFile(Supplier<ProfileFile> profileFile)
Configure the profile file that should be used when determining theRequestChecksumCalculation. The supplier is only consulted if a higher-priority determinant (e.g. environment variables) does not find the setting.
-
profileName
public RequestChecksumCalculationResolver profileName(String profileName)
Configure the profile file name should be used when determining theRequestChecksumCalculation.
-
defaultChecksumCalculation
public RequestChecksumCalculationResolver defaultChecksumCalculation(RequestChecksumCalculation defaultChecksumCalculation)
Configure theRequestChecksumCalculationthat should be used if the mode is not specified anywhere else.
-
resolve
public RequestChecksumCalculation resolve()
Resolve which request checksum calculation setting should be used, based on the configured values.
-
-