Class MetadataTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<MetadataTrait,MetadataTrait.Builder>
software.amazon.smithy.model.traits.MetadataTrait.Builder
- All Implemented Interfaces:
SmithyBuilder<MetadataTrait>
- Enclosing class:
- MetadataTrait
public static final class MetadataTrait.Builder
extends AbstractTraitBuilder<MetadataTrait,MetadataTrait.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutable object that is created from the properties that have been set on the builder.Sets the metadata key that this trait defines a type for.Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Method Details
-
key
Sets the metadata key that this trait defines a type for.- Parameters:
key- The metadata key. Required.- Returns:
- Returns the builder.
-
build
Description copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-