Class 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.
  • Field Details

  • Method Details

    • builder

      public static HttpChecksumTrait.Builder builder()
    • toBuilder

      public SmithyBuilder<HttpChecksumTrait> toBuilder()
      Description copied from interface: ToSmithyBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToSmithyBuilder<HttpChecksumTrait>
      a builder for type T
    • isRequestChecksumRequired

      public boolean isRequestChecksumRequired()
      Returns true if request requires checksum to be present.
      Returns if checksum is required.
    • getRequestAlgorithmMember

      public Optional<String> getRequestAlgorithmMember()
      Optionally gets name of the input member used to specify which request checksum to send.
      Returns optional input member name.
    • getResponseAlgorithms

      public List<String> getResponseAlgorithms()
      Gets list of checksum algorithms for which checksum values when present in HTTP response should be validated.
      Returns checksum properties for response.
    • getRequestValidationModeMember

      public Optional<String> getRequestValidationModeMember()
      Optionally gets name of the input member used to specify opt-in behavior for response checksum validation.
      Returns optional input member name.
    • getChecksumLocationName

      public static String getChecksumLocationName(String checksumAlgorithm)
      Gets the normalized location name for a checksum algorithm.
      checksumAlgorithm - The algorithm to get a location name of.
      The normalized location name.
    • createNode

      protected Node createNode()
      Description copied from class: AbstractTrait
      The 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:
      createNode in class AbstractTrait
      Returns the trait as a node.