Enum HttpMethod

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.763Z") @Stability(Stable) public enum HttpMethod extends Enum<HttpMethod>
All http request methods.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The wildcard entry to allow all methods.
    The DELETE method deletes the specified resource.
    The GET method requests a representation of the specified resource.
    The HEAD method asks for a response identical to that of a GET request, but without the response body.
    The OPTIONS method describes the communication options for the target resource.
    The PATCH method applies partial modifications to a resource.
    The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.
    The PUT method replaces all current representations of the target resource with the request payload.
  • Method Summary

    Modifier and Type
    Method
    Description
    static HttpMethod
    Returns the enum constant of this type with the specified name.
    static HttpMethod[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • GET

      @Stability(Stable) public static final HttpMethod GET
      The GET method requests a representation of the specified resource.
    • PUT

      @Stability(Stable) public static final HttpMethod PUT
      The PUT method replaces all current representations of the target resource with the request payload.
    • POST

      @Stability(Stable) public static final HttpMethod POST
      The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.
    • DELETE

      @Stability(Stable) public static final HttpMethod DELETE
      The DELETE method deletes the specified resource.
    • PATCH

      @Stability(Stable) public static final HttpMethod PATCH
      The PATCH method applies partial modifications to a resource.
    • OPTIONS

      @Stability(Stable) public static final HttpMethod OPTIONS
      The OPTIONS method describes the communication options for the target resource.
    • ALL

      @Stability(Stable) public static final HttpMethod ALL
      The wildcard entry to allow all methods.
  • Method Details

    • values

      public static HttpMethod[] 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 HttpMethod 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