Class HttpChecksumTrait
java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.aws.traits.HttpChecksumTrait
- All Implemented Interfaces:
- FromSourceLocation,- ToNode,- ToShapeId,- Trait,- ToSmithyBuilder<HttpChecksumTrait>
public final class HttpChecksumTrait
extends AbstractTrait
implements ToSmithyBuilder<HttpChecksumTrait>
Indicates that an operation supports checksum validation.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classstatic final class
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic HttpChecksumTrait.Builderbuilder()protected NodeThe result of toNode is used for hashCodes and equality.static StringgetChecksumLocationName(String checksumAlgorithm) Gets the normalized location name for a checksum algorithm.Optionally gets name of the input member used to specify which request checksum to send.Optionally gets name of the input member used to specify opt-in behavior for response checksum validation.Gets list of checksum algorithms for which checksum values when present in HTTP response should be validated.booleanReturns true if request requires checksum to be present.Take this object and create a builder that contains all of the current property values of this object.Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitequals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.smithy.model.traits.TraitisSynthetic
- 
Field Details- 
ID
- 
CHECKSUM_PREFIX- See Also:
 
- 
CHECKSUM_ALGORITHMS
- 
VALIDATION_MODES
- 
REQUEST_CHECKSUM_REQUIRED- See Also:
 
- 
REQUEST_ALGORITHM_MEMBER- See Also:
 
- 
REQUEST_VALIDATION_MODE_MEMBER- See Also:
 
- 
RESPONSE_ALGORITHMS- See Also:
 
 
- 
- 
Method Details- 
builder
- 
toBuilderDescription copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToSmithyBuilder<HttpChecksumTrait>
- Returns:
- a builder for type T
 
- 
isRequestChecksumRequiredpublic boolean isRequestChecksumRequired()Returns true if request requires checksum to be present.- Returns:
- Returns if checksum is required.
 
- 
getRequestAlgorithmMemberOptionally gets name of the input member used to specify which request checksum to send.- Returns:
- Returns optional input member name.
 
- 
getResponseAlgorithmsGets list of checksum algorithms for which checksum values when present in HTTP response should be validated.- Returns:
- Returns checksum properties for response.
 
- 
getRequestValidationModeMemberOptionally gets name of the input member used to specify opt-in behavior for response checksum validation.- Returns:
- Returns optional input member name.
 
- 
getChecksumLocationNameGets the normalized location name for a checksum algorithm.- Parameters:
- checksumAlgorithm- The algorithm to get a location name of.
- Returns:
- The normalized location name.
 
- 
createNodeDescription copied from class:AbstractTraitThe result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.- Specified by:
- createNodein class- AbstractTrait
- Returns:
- Returns the trait as a node.
 
 
-