Describes a single API operation on a path.
| Modifier and Type | Method and Description |
|---|---|
| public Operation | Returns: the current Operation objecta key conforming to the format required for this object key, Callback a callback that is applicable for this operation. null values will be rejected (implementation will
throw an exception) or ignored. callback)Adds the given callback item to this Operation's map of callbacks. |
| public Operation | Returns: the current Operation objecta parameter that is applicable for this operation parameter)Adds the given parameter item to this Operation's list of parameters. |
| public Operation | Returns: the current Operation objectsecurity mechanism which can be used for this operation securityRequirement)Adds the given security requirement item to this Operation's list of security mechanisms. |
| public Operation | |
| public Operation | |
| public default Operation | |
| public default Operation | Returns: the current Operation objectdeclaration whether this operation is deprecated deprecated)Sets this Operation's deprecated property to the given value. |
| public default Operation | Returns: the current Operation objecta verbose explanation of the operation behavior description)Sets this Operation's description property to the given string. |
| public default Operation | Returns: the current Operation objectadditional external documentation for this operation externalDocs)Sets this Operation's externalDocs property to the given object. |
| public Map | Returns: a copy Map (potentially immutable) of possible out-of-band callbacks related to the operationReturns the callbacks property from an Operation instance. |
| public Boolean | Returns: declaration whether this operation is deprecatedReturns the deprecated property from an Operation instance. |
| public String | Returns: a verbose explanation of the operation behaviorReturns the description property from an Operation instance. |
| public ExternalDocumentation | Returns: additional external documentation for this operationReturns the externalDocs property from an Operation instance. |
| public String | Returns: unique string used to identify the operationReturns the operationId property from an Operation instance. |
| public List | Returns: a copy List (potentially immutable) of parameters that are applicable for this operationReturns the parameters property from an Operation instance. |
| public RequestBody | Returns: the request body applicable for this operationReturns the requestBody property from an Operation instance. |
| public APIResponses | Returns: collection of possible responses from executing this operationReturns the responses property from an Operation instance. |
| public List | Returns: a copy List (potentially immutable) of which security mechanisms can be used for this operationReturns the security property from an Operation instance. |
| public List | Returns: a copy List (potentially immutable) of servers to service this operationReturns the servers property from an Operation instance. |
| public String | Returns: a short summary of what the operation doesReturns the summary property from an Operation instance. |
| public List | Returns: a copy List (potentially immutable) of the operation's tagsReturns the tags property from an Operation instance. |
| public default Operation | Returns: the current Operation objectunique string used to identify the operation operationId)Sets this Operation's operationId property to the given string. |
| public default Operation | Returns: the current Operation objecta list of parameters that are applicable for this operation parameters)Sets this Operation's parameters property to the given parameter list. |
| public void | removeCallback(String
a key conforming to the format required for this object key)Removes the given callback item to this Operation's map of callbacks. |
| public void | removeParameter(Parameter
a parameter that is applicable for this operation parameter)Removes the given parameter item to this Operation's list of parameters. |
| public void | removeSecurityRequirement(SecurityRequirement
security mechanism which can be used for this operation securityRequirement)Removes the given security requirement item to this Operation's list of security mechanisms. |
| public void | removeServer(Server
server which can service this operation server)Removes the given server to this Operation's list of servers. |
| public void | |
| public default Operation | Returns: the current Operation objectthe request body applicable for this operation requestBody)Sets this Operation's requestBody property to the given object. |
| public default Operation | Returns: the current Operation objectcollection of possible responses from executing this operation responses)Sets this Operation's responses property to the given responses. |
| public default Operation | Returns: the current Operation objectlist of which security mechanisms can be used for this operation security)Sets this Operation's security property to the given list. |
| public default Operation | |
| public void | setCallbacks(Map<String, Callback>
map of possible out-of-band callbacks related to the operation. The key value must be the correct
format for this field. callbacks)Sets this Operation's callbacks property to the given map. |
| public void | setDeprecated(Boolean
declaration whether this operation is deprecated deprecated)Sets this Operation's deprecated property to the given value. |
| public void | setDescription(String
a verbose explanation of the operation behavior description)Sets this Operation's description property to the given string. |
| public void | setExternalDocs(ExternalDocumentation
additional external documentation for this operation externalDocs)Sets this Operation's externalDocs property to the given object. |
| public void | setOperationId(String
unique string used to identify the operation operationId)Sets this Operation's operationId property to the given string. |
| public void | setParameters(List<Parameter>
a list of parameters that are applicable for this operation parameters)Sets this Operation's parameters property to the given parameter list. |
| public void | setRequestBody(RequestBody
the request body applicable for this operation requestBody)Sets this Operation's requestBody property to the given object. |
| public void | setResponses(APIResponses
collection of possible responses from executing this operation responses)Sets this Operation's responses property to the given responses. |
| public void | setSecurity(List<SecurityRequirement>
list of which security mechanisms can be used for this operation security)Sets this Operation's security property to the given list. |
| public void | setServers(List<Server>
list of servers to service this operation servers)Sets this Operation's servers property to the given list. |
| public void | setSummary(String
a short summary of what the operation does summary)Sets this Operation's summary property to the given string. |
| public void | |
| public default Operation | |
| public default Operation |
| addCallback | back to summary |
|---|---|
| public Operation addCallback(String key, Callback callback) Adds the given callback item to this Operation's map of callbacks. | |
| addParameter | back to summary |
|---|---|
| public Operation addParameter(Parameter parameter) Adds the given parameter item to this Operation's list of parameters. | |
| addSecurityRequirement | back to summary |
|---|---|
| public Operation addSecurityRequirement(SecurityRequirement securityRequirement) Adds the given security requirement item to this Operation's list of security mechanisms.
| |
| addServer | back to summary |
|---|---|
| public Operation addServer(Server server) Adds the given server to this Operation's list of servers. | |
| addTag | back to summary |
|---|---|
| public Operation addTag(String tag) Adds the given tag to this Operation's list of tags. | |
| callbacks | back to summary |
|---|---|
| public default Operation callbacks(Map<String, Callback> callbacks) Sets this Operation's callbacks property to the given map. | |
| deprecated | back to summary |
|---|---|
| public default Operation deprecated(Boolean deprecated) Sets this Operation's deprecated property to the given value. | |
| description | back to summary |
|---|---|
| public default Operation description(String description) Sets this Operation's description property to the given string. | |
| externalDocs | back to summary |
|---|---|
| public default Operation externalDocs(ExternalDocumentation externalDocs) Sets this Operation's externalDocs property to the given object.
| |
| getCallbacks | back to summary |
|---|---|
| public Map Returns the callbacks property from an Operation instance. | |
| getDeprecated | back to summary |
|---|---|
| public Boolean getDeprecated() Returns the deprecated property from an Operation instance.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Returns the description property from an Operation instance.
| |
| getExternalDocs | back to summary |
|---|---|
| public ExternalDocumentation getExternalDocs() Returns the externalDocs property from an Operation instance.
| |
| getOperationId | back to summary |
|---|---|
| public String getOperationId() Returns the operationId property from an Operation instance.
| |
| getParameters | back to summary |
|---|---|
| public List Returns the parameters property from an Operation instance. | |
| getRequestBody | back to summary |
|---|---|
| public RequestBody getRequestBody() Returns the requestBody property from an Operation instance.
| |
| getResponses | back to summary |
|---|---|
| public APIResponses getResponses() Returns the responses property from an Operation instance.
| |
| getSecurity | back to summary |
|---|---|
| public List Returns the security property from an Operation instance.
| |
| getServers | back to summary |
|---|---|
| public List Returns the servers property from an Operation instance. | |
| getSummary | back to summary |
|---|---|
| public String getSummary() Returns the summary property from an Operation instance.
| |
| getTags | back to summary |
|---|---|
| public List Returns the tags property from an Operation instance. | |
| operationId | back to summary |
|---|---|
| public default Operation operationId(String operationId) Sets this Operation's operationId property to the given string. | |
| parameters | back to summary |
|---|---|
| public default Operation parameters(List<Parameter> parameters) Sets this Operation's parameters property to the given parameter list. | |
| removeCallback | back to summary |
|---|---|
| public void removeCallback(String key) Removes the given callback item to this Operation's map of callbacks.
| |
| removeParameter | back to summary |
|---|---|
| public void removeParameter(Parameter parameter) Removes the given parameter item to this Operation's list of parameters.
| |
| removeSecurityRequirement | back to summary |
|---|---|
| public void removeSecurityRequirement(SecurityRequirement securityRequirement) Removes the given security requirement item to this Operation's list of security mechanisms.
| |
| removeServer | back to summary |
|---|---|
| public void removeServer(Server server) Removes the given server to this Operation's list of servers.
| |
| removeTag | back to summary |
|---|---|
| public void removeTag(String tag) Removes the given tag to this Operation's list of tags.
| |
| requestBody | back to summary |
|---|---|
| public default Operation requestBody(RequestBody requestBody) Sets this Operation's requestBody property to the given object.
| |
| responses | back to summary |
|---|---|
| public default Operation responses(APIResponses responses) Sets this Operation's responses property to the given responses.
| |
| security | back to summary |
|---|---|
| public default Operation security(List<SecurityRequirement> security) Sets this Operation's security property to the given list.
| |
| servers | back to summary |
|---|---|
| public default Operation servers(List<Server> servers) Sets this Operation's servers property to the given list. | |
| setCallbacks | back to summary |
|---|---|
| public void setCallbacks(Map<String, Callback> callbacks) Sets this Operation's callbacks property to the given map. | |
| setDeprecated | back to summary |
|---|---|
| public void setDeprecated(Boolean deprecated) Sets this Operation's deprecated property to the given value.
| |
| setDescription | back to summary |
|---|---|
| public void setDescription(String description) Sets this Operation's description property to the given string.
| |
| setExternalDocs | back to summary |
|---|---|
| public void setExternalDocs(ExternalDocumentation externalDocs) Sets this Operation's externalDocs property to the given object.
| |
| setOperationId | back to summary |
|---|---|
| public void setOperationId(String operationId) Sets this Operation's operationId property to the given string.
| |
| setParameters | back to summary |
|---|---|
| public void setParameters(List<Parameter> parameters) Sets this Operation's parameters property to the given parameter list. | |
| setRequestBody | back to summary |
|---|---|
| public void setRequestBody(RequestBody requestBody) Sets this Operation's requestBody property to the given object.
| |
| setResponses | back to summary |
|---|---|
| public void setResponses(APIResponses responses) Sets this Operation's responses property to the given responses.
| |
| setSecurity | back to summary |
|---|---|
| public void setSecurity(List<SecurityRequirement> security) Sets this Operation's security property to the given list.
| |
| setServers | back to summary |
|---|---|
| public void setServers(List<Server> servers) Sets this Operation's servers property to the given list. | |
| setSummary | back to summary |
|---|---|
| public void setSummary(String summary) Sets this Operation's summary property to the given string.
| |
| setTags | back to summary |
|---|---|
| public void setTags(List<String> tags) Sets this Operation's tags property to the given tags. | |
| summary | back to summary |
|---|---|
| public default Operation summary(String summary) Sets this Operation's summary property to the given string. | |
| tags | back to summary |
|---|---|
| public default Operation tags(List<String> tags) Sets this Operation's tags property to the given tags. | |