Class SpecificationExtensionTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<SpecificationExtensionTrait,SpecificationExtensionTrait.Builder>
software.amazon.smithy.openapi.traits.SpecificationExtensionTrait.Builder
- All Implemented Interfaces:
SmithyBuilder<SpecificationExtensionTrait>
- Enclosing class:
- SpecificationExtensionTrait
public static final class SpecificationExtensionTrait.Builder
extends AbstractTraitBuilder<SpecificationExtensionTrait,SpecificationExtensionTrait.Builder>
Builds a
SpecificationExtensionTrait
trait.-
Method Summary
Modifier and TypeMethodDescriptionSet the explicit name for the target specification extension.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
-
Method Details
-
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
-
as
Set the explicit name for the target specification extension.- Parameters:
as
- Explicit name for the target specification extension, or null.- Returns:
- This builder instance.
-