Class TraitDefinition.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<TraitDefinition,TraitDefinition.Builder>
 
software.amazon.smithy.model.traits.TraitDefinition.Builder
- All Implemented Interfaces:
- SmithyBuilder<TraitDefinition>
- Enclosing class:
- TraitDefinition
public static final class TraitDefinition.Builder
extends AbstractTraitBuilder<TraitDefinition,TraitDefinition.Builder> 
Builder to create a TraitDefinition.
- 
Method SummaryModifier and TypeMethodDescriptionaddConflict(String trait) addConflict(ShapeId id) build()Creates an immutable object that is created from the properties that have been set on the builder.structurallyExclusive(TraitDefinition.StructurallyExclusive structurallyExclusive) Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuildergetSourceLocation, sourceLocation
- 
Method Details- 
selector
- 
addConflict
- 
addConflict
- 
removeConflict
- 
structurallyExclusivepublic TraitDefinition.Builder structurallyExclusive(TraitDefinition.StructurallyExclusive structurallyExclusive) 
- 
breakingChanges
- 
clearBreakingChanges
- 
addBreakingChange
- 
buildDescription copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
 
 
-