public static final class NodeValidationVisitor.Builder extends java.lang.Object implements SmithyBuilder<NodeValidationVisitor>
NodeValidationVisitor
.Modifier and Type | Method and Description |
---|---|
NodeValidationVisitor.Builder |
allowBoxedNull(boolean allowBoxedNull)
Configure how null values are handled when they are provided for
boxed types.
|
NodeValidationVisitor |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
NodeValidationVisitor.Builder |
eventId(java.lang.String id)
Sets an optional custom event ID to use for created validation events.
|
NodeValidationVisitor.Builder |
eventShapeId(ShapeId eventShapeId)
Sets an optional shape ID that is used as the shape ID in each
validation event emitted by the validator.
|
NodeValidationVisitor.Builder |
model(Model model)
Sets the required model to use when traversing
walking shapes during validation.
|
NodeValidationVisitor.Builder |
startingContext(java.lang.String contextText)
Sets an optional starting context of the validator that is prepended
to each emitted validation event message.
|
NodeValidationVisitor.Builder |
timestampValidationStrategy(TimestampValidationStrategy timestampValidationStrategy)
Sets the strategy used to validate timestamps.
|
NodeValidationVisitor.Builder |
value(Node value)
Sets the required node value to validate.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public NodeValidationVisitor.Builder model(Model model)
model
- Model that contains shapes to validate.public NodeValidationVisitor.Builder value(Node value)
value
- Value to validate.public NodeValidationVisitor.Builder eventId(java.lang.String id)
id
- Custom event ID.public NodeValidationVisitor.Builder startingContext(java.lang.String contextText)
contextText
- Starting event message content.public NodeValidationVisitor.Builder eventShapeId(ShapeId eventShapeId)
eventShapeId
- Shape ID to set on every validation event.public NodeValidationVisitor.Builder timestampValidationStrategy(TimestampValidationStrategy timestampValidationStrategy)
By default, timestamps are validated using
TimestampValidationStrategy.FORMAT
.
timestampValidationStrategy
- Timestamp validation strategy.public NodeValidationVisitor.Builder allowBoxedNull(boolean allowBoxedNull)
By default, null values are not allowed for boxed types.
allowBoxedNull
- Set to true to allow null values for boxed shapes.public NodeValidationVisitor build()
SmithyBuilder
build
in interface SmithyBuilder<NodeValidationVisitor>