Interface Operation
- All Known Implementing Classes:
ImmutableOperation
@Immutable
public interface Operation
Information about a single operation.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this operation requires an authentication parameter.static ImmutableOperation.Builderbuilder()Returns a builder for this type.booleanReturns true if the operation is deprecated.Returns an optional description of the operation.default Stringgroup()Returns the (first) group of an operation.Returns the operation HTTP method.default booleanisVoid()Returns true if all responses on the operation are void.Returns an optional operation id.Returns the operation parameters.path()Returns the operation resource path.Returns the optional request body.Returns the operation responses.summary()Returns an optional summary of the operation.Returns a synthetic operation id computed by path and http type.tags()Returns the operation tags.
-
Method Details
-
builder
Returns a builder for this type.- Returns:
- a builder for this type
-
path
-
httpMethod
-
tags
-
operationId
-
syntheticOpId
String syntheticOpId()Returns a synthetic operation id computed by path and http type.- Returns:
- a synthetic operation id computed by path and http type
-
description
-
summary
-
deprecated
boolean deprecated()Returns true if the operation is deprecated.- Returns:
- true if the operation is deprecated
-
responses
-
parameters
-
requestBody
Optional<RequestBody> requestBody()Returns the optional request body.- Returns:
- the optional request body
-
isVoid
default boolean isVoid()Returns true if all responses on the operation are void.- Returns:
- true if all responses on the operation are void
-
addAuthorizationHeader
boolean addAuthorizationHeader()Returns true if this operation requires an authentication parameter.- Returns:
- true if this operation requires an authentication parameter
-
group
Returns the (first) group of an operation.- Returns:
- the (first) group of an operation
-