Class OpenApi.Builder
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component.Builder<OpenApi.Builder,OpenApi>
-
- software.amazon.smithy.openapi.model.OpenApi.Builder
-
- All Implemented Interfaces:
SmithyBuilder<OpenApi>
- Enclosing class:
- OpenApi
public static final class OpenApi.Builder extends Component.Builder<OpenApi.Builder,OpenApi>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenApi.Builder
addSecurity(java.util.Map<java.lang.String,java.util.List<java.lang.String>> requirement)
OpenApi.Builder
addServer(ServerObject server)
OpenApi.Builder
addTag(TagObject tag)
OpenApi
build()
Creates an immutable object that is created from the properties that have been set on the builder.OpenApi.Builder
clearSecurity()
OpenApi.Builder
clearServer()
OpenApi.Builder
clearTags()
OpenApi.Builder
components(ComponentsObject components)
OpenApi.Builder
externalDocs(ExternalDocumentation externalDocs)
OpenApi.Builder
info(InfoObject info)
OpenApi.Builder
openapi(java.lang.String openapi)
OpenApi.Builder
paths(java.util.Map<java.lang.String,PathItem> paths)
OpenApi.Builder
putPath(java.lang.String path, PathItem item)
OpenApi.Builder
removePath(java.lang.String path)
OpenApi.Builder
security(java.util.Collection<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> security)
-
Methods inherited from class software.amazon.smithy.openapi.model.Component.Builder
extensions, extensions, getExtensions, putExtension, putExtension, putExtension, putExtension, removeExtension
-
-
-
-
Method Detail
-
build
public OpenApi 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
-
openapi
public OpenApi.Builder openapi(java.lang.String openapi)
-
info
public OpenApi.Builder info(InfoObject info)
-
paths
public OpenApi.Builder paths(java.util.Map<java.lang.String,PathItem> paths)
-
putPath
public OpenApi.Builder putPath(java.lang.String path, PathItem item)
-
removePath
public OpenApi.Builder removePath(java.lang.String path)
-
components
public OpenApi.Builder components(ComponentsObject components)
-
externalDocs
public OpenApi.Builder externalDocs(ExternalDocumentation externalDocs)
-
addServer
public OpenApi.Builder addServer(ServerObject server)
-
clearServer
public OpenApi.Builder clearServer()
-
addSecurity
public OpenApi.Builder addSecurity(java.util.Map<java.lang.String,java.util.List<java.lang.String>> requirement)
-
security
public OpenApi.Builder security(java.util.Collection<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> security)
-
clearSecurity
public OpenApi.Builder clearSecurity()
-
addTag
public OpenApi.Builder addTag(TagObject tag)
-
clearTags
public OpenApi.Builder clearTags()
-
-