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