public final class LengthTrait extends AbstractTrait implements ToSmithyBuilder<LengthTrait>
Modifier and Type | Class and Description |
---|---|
static class |
LengthTrait.Builder
Builder used to create a LongTrait.
|
static class |
LengthTrait.Provider |
Modifier and Type | Method and Description |
---|---|
static LengthTrait.Builder |
builder() |
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.Optional<java.lang.Long> |
getMax()
Gets the max value.
|
java.util.Optional<java.lang.Long> |
getMin()
Gets the min value.
|
LengthTrait.Builder |
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 java.util.Optional<java.lang.Long> getMin()
public java.util.Optional<java.lang.Long> getMax()
protected Node createNode()
AbstractTrait
createNode
in class AbstractTrait
public LengthTrait.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<LengthTrait>
public static LengthTrait.Builder builder()