Class ExamplesTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<ExamplesTrait,ExamplesTrait.Builder>
software.amazon.smithy.model.traits.ExamplesTrait.Builder
- All Implemented Interfaces:
SmithyBuilder<ExamplesTrait>
- Enclosing class:
- ExamplesTrait
public static final class ExamplesTrait.Builder
extends AbstractTraitBuilder<ExamplesTrait,ExamplesTrait.Builder>
Builds an examples trait.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddExample
(ExamplesTrait.Example example) build()
Creates an immutable object that is created from the properties that have been set on the builder.Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addExample
-
clearExamples
-
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
-