Enum HttpRouteMethod

java.lang.Object
java.lang.Enum<HttpRouteMethod>
software.amazon.awscdk.services.appmesh.HttpRouteMethod
All Implemented Interfaces:
Serializable, Comparable<HttpRouteMethod>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.096Z") @Stability(Stable) public enum HttpRouteMethod extends Enum<HttpRouteMethod>
Supported values for matching routes based on the HTTP request method.

Example:

 VirtualRouter router;
 VirtualNode node;
 router.addRoute("route-http2", RouteBaseProps.builder()
         .routeSpec(RouteSpec.http2(HttpRouteSpecOptions.builder()
                 .weightedTargets(List.of(WeightedTarget.builder()
                         .virtualNode(node)
                         .build()))
                 .match(HttpRouteMatch.builder()
                         .path(HttpRoutePathMatch.exactly("/exact"))
                         .method(HttpRouteMethod.POST)
                         .protocol(HttpRouteProtocol.HTTPS)
                         .headers(List.of(HeaderMatch.valueIs("Content-Type", "application/json"), HeaderMatch.valueIsNot("Content-Type", "application/json")))
                         .queryParameters(List.of(QueryParameterMatch.valueIs("query-field", "value")))
                         .build())
                 .build()))
         .build());
 
  • Enum Constant Details

    • GET

      @Stability(Stable) public static final HttpRouteMethod GET
      GET request.
    • POST

      @Stability(Stable) public static final HttpRouteMethod POST
      POST request.
    • PUT

      @Stability(Stable) public static final HttpRouteMethod PUT
      PUT request.
    • DELETE

      @Stability(Stable) public static final HttpRouteMethod DELETE
      DELETE request.
    • CONNECT

      @Stability(Stable) public static final HttpRouteMethod CONNECT
      CONNECT request.
    • OPTIONS

      @Stability(Stable) public static final HttpRouteMethod OPTIONS
      OPTIONS request.
    • TRACE

      @Stability(Stable) public static final HttpRouteMethod TRACE
      TRACE request.
    • PATCH

      @Stability(Stable) public static final HttpRouteMethod PATCH
      PATCH request.
  • Method Details

    • values

      public static HttpRouteMethod[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HttpRouteMethod valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null