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 aSpecificationExtensionTrait
trait.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpecificationExtensionTrait.Builder
as(java.lang.String as)
Set the explicit name for the target specification extension.SpecificationExtensionTrait
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 Detail
-
build
public SpecificationExtensionTrait 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
public SpecificationExtensionTrait.Builder as(java.lang.String 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.
-
-