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
-
Method Summary
Modifier and TypeMethodDescriptionaddReference
(ReferencesTrait.Reference reference) build()
Creates an immutable object that is created from the properties that have been set on the builder.references
(List<ReferencesTrait.Reference> references) Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addReference
-
clearReferences
-
references
-
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
-