@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:37:01.049Z") public enum HttpMethods extends java.lang.Enum<HttpMethods>
Example:
import software.amazon.awscdk.services.eks.*; Cluster myEksCluster = Cluster.Builder.create(this, "my sample cluster") .version(KubernetesVersion.V1_18) .clusterName("myEksCluster") .build(); EksCall.Builder.create(this, "Call a EKS Endpoint") .cluster(myEksCluster) .httpMethod(HttpMethods.GET) .httpPath("/api/v1/namespaces/default/pods") .build();
Enum Constant and Description |
---|
DELETE
Delete the resource at the specified endpoint.
|
GET
Retrieve data from a server at the specified resource.
|
HEAD
Retrieve data from a server at the specified resource without the response body.
|
PATCH
Apply partial modifications to the resource.
|
POST
Send data to the API endpoint to create or update a resource.
|
PUT
Send data to the API endpoint to update or create a resource.
|
Modifier and Type | Method and Description |
---|---|
static HttpMethods |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethods[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpMethods GET
public static final HttpMethods POST
public static final HttpMethods PUT
public static final HttpMethods DELETE
public static final HttpMethods PATCH
public static final HttpMethods HEAD
public static HttpMethods[] values()
for (HttpMethods c : HttpMethods.values()) System.out.println(c);
public static HttpMethods valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null