public final class HttpChecksumTrait extends AbstractTrait implements ToSmithyBuilder<HttpChecksumTrait>
Modifier and Type | Class and Description |
---|---|
static class |
HttpChecksumTrait.Builder |
static class |
HttpChecksumTrait.Provider |
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
CHECKSUM_ALGORITHMS |
static java.lang.String |
CHECKSUM_PREFIX |
static ShapeId |
ID |
static java.lang.String |
REQUEST_ALGORITHM_MEMBER |
static java.lang.String |
REQUEST_CHECKSUM_REQUIRED |
static java.lang.String |
REQUEST_VALIDATION_MODE_MEMBER |
static java.lang.String |
RESPONSE_ALGORITHMS |
static java.util.List<java.lang.String> |
VALIDATION_MODES |
Modifier and Type | Method and Description |
---|---|
static HttpChecksumTrait.Builder |
builder() |
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
static java.lang.String |
getChecksumLocationName(java.lang.String checksumAlgorithm)
Gets the normalized location name for a checksum algorithm.
|
java.util.Optional<java.lang.String> |
getRequestAlgorithmMember()
Optionally gets name of the input member used to specify which request checksum to send.
|
java.util.Optional<java.lang.String> |
getRequestValidationModeMember()
Optionally gets name of the input member used to specify opt-in behavior
for response checksum validation.
|
java.util.List<java.lang.String> |
getResponseAlgorithms()
Gets list of checksum algorithms for which checksum values when present in HTTP response should be validated.
|
boolean |
isRequestChecksumRequired()
Returns true if request requires checksum to be present.
|
SmithyBuilder<HttpChecksumTrait> |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public static final ShapeId ID
public static final java.lang.String CHECKSUM_PREFIX
public static final java.util.List<java.lang.String> CHECKSUM_ALGORITHMS
public static final java.util.List<java.lang.String> VALIDATION_MODES
public static final java.lang.String REQUEST_CHECKSUM_REQUIRED
public static final java.lang.String REQUEST_ALGORITHM_MEMBER
public static final java.lang.String REQUEST_VALIDATION_MODE_MEMBER
public static final java.lang.String RESPONSE_ALGORITHMS
public static HttpChecksumTrait.Builder builder()
public SmithyBuilder<HttpChecksumTrait> toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<HttpChecksumTrait>
public boolean isRequestChecksumRequired()
public java.util.Optional<java.lang.String> getRequestAlgorithmMember()
public java.util.List<java.lang.String> getResponseAlgorithms()
public java.util.Optional<java.lang.String> getRequestValidationModeMember()
public static java.lang.String getChecksumLocationName(java.lang.String checksumAlgorithm)
checksumAlgorithm
- The algorithm to get a location name of.protected Node createNode()
AbstractTrait
createNode
in class AbstractTrait