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 Summary
Modifier 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.AbstractTraitBuilder
getSourceLocation, sourceLocation 
- 
Method Details
- 
selector
 - 
addConflict
 - 
addConflict
 - 
removeConflict
 - 
structurallyExclusive
public TraitDefinition.Builder structurallyExclusive(TraitDefinition.StructurallyExclusive structurallyExclusive)  - 
breakingChanges
 - 
clearBreakingChanges
 - 
addBreakingChange
 - 
build
Description 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
 
 
 -