Class MixinTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<MixinTrait,MixinTrait.Builder>
software.amazon.smithy.model.traits.MixinTrait.Builder
- All Implemented Interfaces:
SmithyBuilder<MixinTrait>
- Enclosing class:
- MixinTrait
public static final class MixinTrait.Builder
extends AbstractTraitBuilder<MixinTrait,MixinTrait.Builder>
Builder used to create a MixinTrait.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddLocalTrait
(ShapeId trait) build()
Creates an immutable object that is created from the properties that have been set on the builder.localTraits
(Collection<ShapeId> traits) Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
localTraits
-
addLocalTrait
-