Class HttpChecksumProperty
- java.lang.Object
-
- software.amazon.smithy.model.traits.HttpChecksumProperty
-
- All Implemented Interfaces:
ToNode,ToSmithyBuilder<HttpChecksumProperty>
public final class HttpChecksumProperty extends java.lang.Object implements ToNode, ToSmithyBuilder<HttpChecksumProperty>
Defines checksum property for checksum validation. List of HttpChecksumProperty is used by the members defined for HttpChecksum trait.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpChecksumProperty.Builderstatic classHttpChecksumProperty.LocationLocation where the checksum is supplied.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpChecksumProperty.Builderbuilder()booleanconflictsWith(HttpChecksumProperty otherProperty)Determines if the HttpChecksumProperty conflicts with another HttpChecksumProperty.booleanequals(java.lang.Object o)static HttpChecksumPropertyfromNode(Node node)Create aHttpChecksumPropertyfromNode.java.lang.StringgetAlgorithm()HttpChecksumProperty.LocationgetLocation()java.lang.StringgetName()inthashCode()SmithyBuilder<HttpChecksumProperty>toBuilder()Take this object and create a builder that contains all of the current property values of this object.NodetoNode()Converts a value to aNode.
-
-
-
Method Detail
-
builder
public static HttpChecksumProperty.Builder builder()
-
fromNode
public static HttpChecksumProperty fromNode(Node node)
Create aHttpChecksumPropertyfromNode.- Parameters:
node-Nodeto create theHttpChecksumProperty- Returns:
- Returns the created
HttpChecksumProperty. - Throws:
ExpectationNotMetException- if the givennodeis invalid.
-
getAlgorithm
public java.lang.String getAlgorithm()
- Returns:
- Returns the supported checksum algorithm.
-
getLocation
public HttpChecksumProperty.Location getLocation()
- Returns:
- Returns a location supported for the checksum algorithm.
-
getName
public java.lang.String getName()
- Returns:
- Returns header or trailer name to be used with checksum algorithm.
-
toBuilder
public SmithyBuilder<HttpChecksumProperty> toBuilder()
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<HttpChecksumProperty>- Returns:
- Returns a builder for type HttpChecksumProperties.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
conflictsWith
public boolean conflictsWith(HttpChecksumProperty otherProperty)
Determines if the HttpChecksumProperty conflicts with another HttpChecksumProperty.- Parameters:
otherProperty- HttpChecksumProperty to check against.- Returns:
- Returns true if there is a conflict.
-
-