Class ExternalDocumentationTrait.Builder
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTraitBuilder<ExternalDocumentationTrait,ExternalDocumentationTrait.Builder>
-
- software.amazon.smithy.model.traits.ExternalDocumentationTrait.Builder
-
- All Implemented Interfaces:
SmithyBuilder<ExternalDocumentationTrait>
- Enclosing class:
- ExternalDocumentationTrait
public static final class ExternalDocumentationTrait.Builder extends AbstractTraitBuilder<ExternalDocumentationTrait,ExternalDocumentationTrait.Builder>
Builder used to create the external documentation trait.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalDocumentationTrait.Builder
addUrl(java.lang.String name, java.lang.String url)
ExternalDocumentationTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.ExternalDocumentationTrait.Builder
clearUrls()
ExternalDocumentationTrait.Builder
removeUrl(java.lang.String name)
-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
addUrl
public ExternalDocumentationTrait.Builder addUrl(java.lang.String name, java.lang.String url)
-
removeUrl
public ExternalDocumentationTrait.Builder removeUrl(java.lang.String name)
-
clearUrls
public ExternalDocumentationTrait.Builder clearUrls()
-
build
public ExternalDocumentationTrait 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
-
-