Class OperationObject.Builder
java.lang.Object
software.amazon.smithy.openapi.model.Component.Builder<OperationObject.Builder,OperationObject>
software.amazon.smithy.openapi.model.OperationObject.Builder
- All Implemented Interfaces:
SmithyBuilder<OperationObject>
- Enclosing class:
- OperationObject
public static final class OperationObject.Builder
extends Component.Builder<OperationObject.Builder,OperationObject>
-
Method Summary
Modifier and TypeMethodDescriptionaddParameter
(ParameterObject parameter) addSecurity
(Map<String, List<String>> security) addServer
(ServerObject server) build()
Creates an immutable object that is created from the properties that have been set on the builder.callbacks
(Map<String, CallbackObject> callbacks) deprecated
(boolean deprecated) description
(String description) externalDocs
(ExternalDocumentation externalDocs) operationId
(String operationId) parameters
(Collection<ParameterObject> parameters) putCallback
(String expression, CallbackObject callback) putResponse
(String statusCode, ResponseObject response) requestBody
(RequestBodyObject requestBody) responses
(Map<String, ResponseObject> responses) servers
(Collection<ServerObject> servers) tags
(Collection<String> tags) Methods inherited from class software.amazon.smithy.openapi.model.Component.Builder
extensions, extensions, getExtensions, putExtension, putExtension, putExtension, putExtension, removeExtension
-
Method Details
-
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
-
tags
-
addTag
-
summary
-
description
-
externalDocs
-
operationId
-
parameters
-
addParameter
-
requestBody
-
responses
-
putResponse
-
callbacks
-
putCallback
-
deprecated
-
security
-
addSecurity
-
servers
-
addServer
-