Class OpenApi
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component
-
- software.amazon.smithy.openapi.model.OpenApi
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<OpenApi>
public final class OpenApi extends Component implements ToSmithyBuilder<OpenApi>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenApi.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpenApi.Builder
builder()
protected ObjectNode.Builder
createNodeBuilder()
ComponentsObject
getComponents()
java.util.Optional<ExternalDocumentation>
getExternalDocs()
InfoObject
getInfo()
java.lang.String
getOpenapi()
java.util.Map<java.lang.String,PathItem>
getPaths()
java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>>
getSecurity()
java.util.List<ServerObject>
getServers()
java.util.List<TagObject>
getTags()
OpenApi.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.-
Methods inherited from class software.amazon.smithy.openapi.model.Component
equals, getExtension, getExtensions, hashCode, toNode
-
-
-
-
Method Detail
-
builder
public static OpenApi.Builder builder()
-
getOpenapi
public java.lang.String getOpenapi()
-
getInfo
public InfoObject getInfo()
-
getServers
public java.util.List<ServerObject> getServers()
-
getPaths
public java.util.Map<java.lang.String,PathItem> getPaths()
-
getComponents
public ComponentsObject getComponents()
-
getSecurity
public java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> getSecurity()
-
getTags
public java.util.List<TagObject> getTags()
-
getExternalDocs
public java.util.Optional<ExternalDocumentation> getExternalDocs()
-
toBuilder
public OpenApi.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<OpenApi>
- Returns:
- a builder for type T
-
createNodeBuilder
protected ObjectNode.Builder createNodeBuilder()
- Specified by:
createNodeBuilder
in classComponent
-
-