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
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MixinTrait.Builder
addLocalTrait(ShapeId trait)
MixinTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.MixinTrait.Builder
localTraits(java.util.Collection<ShapeId> traits)
-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
build
public MixinTrait 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
public MixinTrait.Builder localTraits(java.util.Collection<ShapeId> traits)
-
addLocalTrait
public MixinTrait.Builder addLocalTrait(ShapeId trait)
-
-