Class ComponentsObject.Builder
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component.Builder<ComponentsObject.Builder,ComponentsObject>
-
- software.amazon.smithy.openapi.model.ComponentsObject.Builder
-
- All Implemented Interfaces:
SmithyBuilder<ComponentsObject>
- Enclosing class:
- ComponentsObject
public static final class ComponentsObject.Builder extends Component.Builder<ComponentsObject.Builder,ComponentsObject>
-
-
Method Summary
-
Methods inherited from class software.amazon.smithy.openapi.model.Component.Builder
extensions, extensions, getExtensions, putExtension, putExtension, putExtension, putExtension, removeExtension
-
-
-
-
Method Detail
-
build
public ComponentsObject 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
-
schemas
public ComponentsObject.Builder schemas(java.util.Map<java.lang.String,Schema> schemas)
-
putSchema
public ComponentsObject.Builder putSchema(java.lang.String name, Schema schema)
-
removeSchema
public ComponentsObject.Builder removeSchema(java.lang.String name)
-
responses
public ComponentsObject.Builder responses(java.util.Map<java.lang.String,ResponseObject> responses)
-
putResponse
public ComponentsObject.Builder putResponse(java.lang.String name, ResponseObject response)
-
parameters
public ComponentsObject.Builder parameters(java.util.Map<java.lang.String,ParameterObject> parameters)
-
putParameter
public ComponentsObject.Builder putParameter(java.lang.String name, ParameterObject parameter)
-
requestBodies
public ComponentsObject.Builder requestBodies(java.util.Map<java.lang.String,RequestBodyObject> requestBodies)
-
putRequestBodies
public ComponentsObject.Builder putRequestBodies(java.lang.String name, RequestBodyObject requestBody)
-
headers
public ComponentsObject.Builder headers(java.util.Map<java.lang.String,ParameterObject> headers)
-
putHeader
public ComponentsObject.Builder putHeader(java.lang.String name, ParameterObject header)
-
securitySchemes
public ComponentsObject.Builder securitySchemes(java.util.Map<java.lang.String,SecurityScheme> securitySchemes)
-
putSecurityScheme
public ComponentsObject.Builder putSecurityScheme(java.lang.String name, SecurityScheme securityScheme)
-
removeSecurityScheme
public ComponentsObject.Builder removeSecurityScheme(java.lang.String name)
-
links
public ComponentsObject.Builder links(java.util.Map<java.lang.String,LinkObject> links)
-
putLink
public ComponentsObject.Builder putLink(java.lang.String name, LinkObject link)
-
callbacks
public ComponentsObject.Builder callbacks(java.util.Map<java.lang.String,CallbackObject> callbacks)
-
putCallbacks
public ComponentsObject.Builder putCallbacks(java.lang.String name, CallbackObject callback)
-
-