Class OpenApiProtocol.Operation
java.lang.Object
software.amazon.smithy.openapi.fromsmithy.OpenApiProtocol.Operation
- Enclosing interface:
- OpenApiProtocol<T extends Trait>
Represents an operation entry to add to an
OpenApi.Builder
.-
Method Summary
Modifier and TypeMethodDescriptionstatic OpenApiProtocol.Operation
create
(String method, String uri, OperationObject.Builder operation) Creates a new operation entry.getUri()
-
Method Details
-
create
public static OpenApiProtocol.Operation create(String method, String uri, OperationObject.Builder operation) Creates a new operation entry.- Parameters:
method
- HTTP method used for the operation.uri
- HTTP URI of the operation.operation
- Operation builder to return.- Returns:
- Returns the created Operation entry.
-
getMethod
- Returns:
- Gets the HTTP method.
-
getUri
- Returns:
- Gets the HTTP URI.
-
getOperation
- Returns:
- Gets the OperationOperation builder.
-