public static final class OpenApi.Builder extends Component.Builder<OpenApi.Builder,OpenApi>
Modifier and Type | Method and 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) |
extensions, extensions, getExtensions, putExtension, putExtension, putExtension, putExtension, removeExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public OpenApi build()
SmithyBuilder
public OpenApi.Builder openapi(java.lang.String openapi)
public OpenApi.Builder info(InfoObject info)
public OpenApi.Builder paths(java.util.Map<java.lang.String,PathItem> paths)
public OpenApi.Builder putPath(java.lang.String path, PathItem item)
public OpenApi.Builder removePath(java.lang.String path)
public OpenApi.Builder components(ComponentsObject components)
public OpenApi.Builder externalDocs(ExternalDocumentation externalDocs)
public OpenApi.Builder addServer(ServerObject server)
public OpenApi.Builder clearServer()
public OpenApi.Builder addSecurity(java.util.Map<java.lang.String,java.util.List<java.lang.String>> requirement)
public OpenApi.Builder security(java.util.Collection<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> security)
public OpenApi.Builder clearSecurity()
public OpenApi.Builder addTag(TagObject tag)
public OpenApi.Builder clearTags()