Class LengthTrait.Builder
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTraitBuilder<LengthTrait,LengthTrait.Builder>
-
- software.amazon.smithy.model.traits.LengthTrait.Builder
-
- All Implemented Interfaces:
SmithyBuilder<LengthTrait>
- Enclosing class:
- LengthTrait
public static final class LengthTrait.Builder extends AbstractTraitBuilder<LengthTrait,LengthTrait.Builder>
Builder used to create a LongTrait.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LengthTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.LengthTrait.Builder
max(java.lang.Long max)
LengthTrait.Builder
min(java.lang.Long min)
-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
min
public LengthTrait.Builder min(java.lang.Long min)
-
max
public LengthTrait.Builder max(java.lang.Long max)
-
build
public LengthTrait build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
-