Class IdRefTrait.Builder
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTraitBuilder<IdRefTrait,IdRefTrait.Builder>
-
- software.amazon.smithy.model.traits.IdRefTrait.Builder
-
- All Implemented Interfaces:
SmithyBuilder<IdRefTrait>
- Enclosing class:
- IdRefTrait
public static final class IdRefTrait.Builder extends AbstractTraitBuilder<IdRefTrait,IdRefTrait.Builder>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdRefTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.IdRefTrait.Builder
errorMessage(java.lang.String errorMessage)
IdRefTrait.Builder
failWhenMissing(boolean failWhenMissing)
IdRefTrait.Builder
selector(Selector selector)
-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
failWhenMissing
public IdRefTrait.Builder failWhenMissing(boolean failWhenMissing)
-
selector
public IdRefTrait.Builder selector(Selector selector)
-
errorMessage
public IdRefTrait.Builder errorMessage(java.lang.String errorMessage)
-
build
public IdRefTrait 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
-
-