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 class
HttpChecksumProperty.Builder
static class
HttpChecksumProperty.Location
Location where the checksum is supplied.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpChecksumProperty.Builder
builder()
boolean
conflictsWith(HttpChecksumProperty otherProperty)
Determines if the HttpChecksumProperty conflicts with another HttpChecksumProperty.boolean
equals(java.lang.Object o)
static HttpChecksumProperty
fromNode(Node node)
Create aHttpChecksumProperty
fromNode
.java.lang.String
getAlgorithm()
HttpChecksumProperty.Location
getLocation()
java.lang.String
getName()
int
hashCode()
SmithyBuilder<HttpChecksumProperty>
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.Node
toNode()
Converts a value to aNode
.
-
-
-
Method Detail
-
builder
public static HttpChecksumProperty.Builder builder()
-
fromNode
public static HttpChecksumProperty fromNode(Node node)
Create aHttpChecksumProperty
fromNode
.- Parameters:
node
-Node
to create theHttpChecksumProperty
- Returns:
- Returns the created
HttpChecksumProperty
. - Throws:
ExpectationNotMetException
- if the givennode
is 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:
toBuilder
in interfaceToSmithyBuilder<HttpChecksumProperty>
- Returns:
- Returns a builder for type HttpChecksumProperties.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in 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.
-
-