Enum HttpMethods
- All Implemented Interfaces:
Serializable
,Comparable<HttpMethods>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:48.099Z")
@Stability(Stable)
public enum HttpMethods
extends Enum<HttpMethods>
Method type of a EKS call.
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();
-
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.Retrieve data from a server at the specified resource.Retrieve data from a server at the specified resource without the response body.Apply partial modifications to the resource.Send data to the API endpoint to create or update a resource.Send data to the API endpoint to update or create a resource. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpMethods
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.
-
Enum Constant Details
-
GET
Retrieve data from a server at the specified 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. -
DELETE
Delete the resource at the specified endpoint. -
PATCH
Apply partial modifications to the resource. -
HEAD
Retrieve data from a server at the specified resource without the response body.
-
-
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
-