Enum 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:48.098Z")
@Stability(Stable)
public enum HttpMethod
extends Enum<HttpMethod>
Http Methods that API Gateway supports.
Example:
import software.amazon.awscdk.services.apigatewayv2.*; HttpApi httpApi = new HttpApi(this, "MyHttpApi"); CallApiGatewayHttpApiEndpoint invokeTask = CallApiGatewayHttpApiEndpoint.Builder.create(this, "Call HTTP API") .apiId(httpApi.getApiId()) .apiStack(Stack.of(httpApi)) .method(HttpMethod.GET) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDelete the resource at the specified endpoint.Retreive data from a server at the specified resource.Retreive data from a server at the specified resource without the response body.Return data describing what other methods and operations the server supports.Apply partial modifications to the resource.Send data to the API endpoint to create or udpate a resource.Send data to the API endpoint to update or create a resource. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpMethod
Returns the enum constant of this type with the specified name.static HttpMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GET
Retreive data from a server at the specified resource. -
POST
Send data to the API endpoint to create or udpate a resource. -
PUT
Send data to the API endpoint to update or create a resource. -
DELETE
Delete the resource at the specified endpoint. -
PATCH
Apply partial modifications to the resource. -
HEAD
Retreive data from a server at the specified resource without the response body. -
OPTIONS
Return data describing what other methods and operations the server supports.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-