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