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 Object
Represents an operation entry to add to an OpenApi.Builder.
  • 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

      public String getMethod()
      Returns:
      Gets the HTTP method.
    • getUri

      public String getUri()
      Returns:
      Gets the HTTP URI.
    • getOperation

      public OperationObject.Builder getOperation()
      Returns:
      Gets the OperationOperation builder.