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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitflatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteNamepublic static final ShapeId ID
public java.util.Optional<java.lang.Long> getMin()
public java.util.Optional<java.lang.Long> getMax()
protected Node createNode()
AbstractTraitcreateNode in class AbstractTraitpublic LengthTrait.Builder toBuilder()
ToSmithyBuildertoBuilder in interface ToSmithyBuilder<LengthTrait>public static LengthTrait.Builder builder()