Class OpenApiProtocol.Operation
- java.lang.Object
-
- software.amazon.smithy.openapi.fromsmithy.OpenApiProtocol.Operation
-
- Enclosing interface:
- OpenApiProtocol<T extends Trait>
public static final class OpenApiProtocol.Operation extends java.lang.Object
Represents an operation entry to add to anOpenApi.Builder
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpenApiProtocol.Operation
create(java.lang.String method, java.lang.String uri, OperationObject.Builder operation)
Creates a new operation entry.java.lang.String
getMethod()
OperationObject.Builder
getOperation()
java.lang.String
getUri()
-
-
-
Method Detail
-
create
public static OpenApiProtocol.Operation create(java.lang.String method, java.lang.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
public java.lang.String getMethod()
- Returns:
- Gets the HTTP method.
-
getUri
public java.lang.String getUri()
- Returns:
- Gets the HTTP URI.
-
getOperation
public OperationObject.Builder getOperation()
- Returns:
- Gets the OperationOperation builder.
-
-