public static final class OperationObject.Builder extends Component.Builder<OperationObject.Builder,OperationObject>
Modifier and Type | Method and Description |
---|---|
OperationObject.Builder |
addParameter(ParameterObject parameter) |
OperationObject.Builder |
addSecurity(java.util.Map<java.lang.String,java.util.List<java.lang.String>> security) |
OperationObject.Builder |
addServer(ServerObject server) |
OperationObject.Builder |
addTag(java.lang.String tag) |
OperationObject |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
OperationObject.Builder |
callbacks(java.util.Map<java.lang.String,CallbackObject> callbacks) |
OperationObject.Builder |
deprecated(boolean deprecated) |
OperationObject.Builder |
description(java.lang.String description) |
OperationObject.Builder |
externalDocs(ExternalDocumentation externalDocs) |
OperationObject.Builder |
operationId(java.lang.String operationId) |
OperationObject.Builder |
parameters(java.util.Collection<ParameterObject> parameters) |
OperationObject.Builder |
putCallback(java.lang.String expression,
CallbackObject callback) |
OperationObject.Builder |
putResponse(java.lang.String statusCode,
ResponseObject response) |
OperationObject.Builder |
requestBody(RequestBodyObject requestBody) |
OperationObject.Builder |
responses(java.util.Map<java.lang.String,ResponseObject> responses) |
OperationObject.Builder |
security(java.util.Collection<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> security) |
OperationObject.Builder |
servers(java.util.Collection<ServerObject> servers) |
OperationObject.Builder |
summary(java.lang.String summary) |
OperationObject.Builder |
tags(java.util.Collection<java.lang.String> tags) |
extensions, extensions, getExtensions, putExtension, putExtension, putExtension, putExtension, removeExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public OperationObject build()
SmithyBuilder
public OperationObject.Builder tags(java.util.Collection<java.lang.String> tags)
public OperationObject.Builder addTag(java.lang.String tag)
public OperationObject.Builder summary(java.lang.String summary)
public OperationObject.Builder description(java.lang.String description)
public OperationObject.Builder externalDocs(ExternalDocumentation externalDocs)
public OperationObject.Builder operationId(java.lang.String operationId)
public OperationObject.Builder parameters(java.util.Collection<ParameterObject> parameters)
public OperationObject.Builder addParameter(ParameterObject parameter)
public OperationObject.Builder requestBody(RequestBodyObject requestBody)
public OperationObject.Builder responses(java.util.Map<java.lang.String,ResponseObject> responses)
public OperationObject.Builder putResponse(java.lang.String statusCode, ResponseObject response)
public OperationObject.Builder callbacks(java.util.Map<java.lang.String,CallbackObject> callbacks)
public OperationObject.Builder putCallback(java.lang.String expression, CallbackObject callback)
public OperationObject.Builder deprecated(boolean deprecated)
public OperationObject.Builder security(java.util.Collection<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> security)
public OperationObject.Builder addSecurity(java.util.Map<java.lang.String,java.util.List<java.lang.String>> security)
public OperationObject.Builder servers(java.util.Collection<ServerObject> servers)
public OperationObject.Builder addServer(ServerObject server)