public static final class TraitDefinition.Builder extends AbstractTraitBuilder<TraitDefinition,TraitDefinition.Builder>
Modifier and Type | Method and Description |
---|---|
TraitDefinition.Builder |
addConflict(ShapeId id) |
TraitDefinition.Builder |
addConflict(java.lang.String trait) |
TraitDefinition |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
TraitDefinition.Builder |
removeConflict(ToShapeId id) |
TraitDefinition.Builder |
selector(Selector selector) |
TraitDefinition.Builder |
structurallyExclusive(TraitDefinition.StructurallyExclusive structurallyExclusive) |
getSourceLocation, sourceLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public TraitDefinition.Builder selector(Selector selector)
public TraitDefinition.Builder addConflict(java.lang.String trait)
public TraitDefinition.Builder addConflict(ShapeId id)
public TraitDefinition.Builder removeConflict(ToShapeId id)
public TraitDefinition.Builder structurallyExclusive(TraitDefinition.StructurallyExclusive structurallyExclusive)
public TraitDefinition build()
SmithyBuilder