Class V1alpha2ResourceClaimSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1alpha2ResourceClaimSpec
extends Object
ResourceClaimSpec defines how a resource is to be allocated.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationMode
(String allocationMode) boolean
static V1alpha2ResourceClaimSpec
Create an instance of V1alpha2ResourceClaimSpec given an JSON stringAllocation can start immediately or when a Pod wants to use the resource.Get parametersRefResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.int
hashCode()
parametersRef
(V1alpha2ResourceClaimParametersReference parametersRef) resourceClassName
(String resourceClassName) void
setAllocationMode
(String allocationMode) void
setParametersRef
(V1alpha2ResourceClaimParametersReference parametersRef) void
setResourceClassName
(String resourceClassName) toJson()
Convert an instance of V1alpha2ResourceClaimSpec to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ALLOCATION_MODE
- See Also:
-
SERIALIZED_NAME_PARAMETERS_REF
- See Also:
-
SERIALIZED_NAME_RESOURCE_CLASS_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha2ResourceClaimSpec
public V1alpha2ResourceClaimSpec()
-
-
Method Details
-
allocationMode
-
getAllocationMode
Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.- Returns:
- allocationMode
-
setAllocationMode
-
parametersRef
public V1alpha2ResourceClaimSpec parametersRef(V1alpha2ResourceClaimParametersReference parametersRef) -
getParametersRef
Get parametersRef- Returns:
- parametersRef
-
setParametersRef
-
resourceClassName
-
getResourceClassName
ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.- Returns:
- resourceClassName
-
setResourceClassName
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1alpha2ResourceClaimSpec
-
fromJson
Create an instance of V1alpha2ResourceClaimSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha2ResourceClaimSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha2ResourceClaimSpec
-
toJson
Convert an instance of V1alpha2ResourceClaimSpec to an JSON string- Returns:
- JSON string
-