Class ReferencesTrait.Builder
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTraitBuilder<ReferencesTrait,ReferencesTrait.Builder>
-
- software.amazon.smithy.model.traits.ReferencesTrait.Builder
-
- All Implemented Interfaces:
SmithyBuilder<ReferencesTrait>
- Enclosing class:
- ReferencesTrait
public static final class ReferencesTrait.Builder extends AbstractTraitBuilder<ReferencesTrait,ReferencesTrait.Builder>
Builder use to create the references trait.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferencesTrait.Builder
addReference(ReferencesTrait.Reference reference)
ReferencesTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.ReferencesTrait.Builder
clearReferences()
ReferencesTrait.Builder
references(java.util.List<ReferencesTrait.Reference> references)
-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
addReference
public ReferencesTrait.Builder addReference(ReferencesTrait.Reference reference)
-
clearReferences
public ReferencesTrait.Builder clearReferences()
-
references
public ReferencesTrait.Builder references(java.util.List<ReferencesTrait.Reference> references)
-
build
public ReferencesTrait 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
-
-