Class V1alpha3ResourceClaimSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3ResourceClaimSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1alpha3ResourceClaimSpec
extends Object
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontroller
(String controller) devices
(V1alpha3DeviceClaim devices) boolean
static V1alpha3ResourceClaimSpec
Create an instance of V1alpha3ResourceClaimSpec given an JSON stringController is the name of the DRA driver that is meant to handle allocation of this claim.Get devicesint
hashCode()
void
setController
(String controller) void
setDevices
(V1alpha3DeviceClaim devices) toJson()
Convert an instance of V1alpha3ResourceClaimSpec to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONTROLLER
- See Also:
-
SERIALIZED_NAME_DEVICES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha3ResourceClaimSpec
public V1alpha3ResourceClaimSpec()
-
-
Method Details
-
controller
-
getController
Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This is an alpha field and requires enabling the DRAControlPlaneController feature gate.- Returns:
- controller
-
setController
-
devices
-
getDevices
Get devices- Returns:
- devices
-
setDevices
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1alpha3ResourceClaimSpec
-
fromJson
Create an instance of V1alpha3ResourceClaimSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3ResourceClaimSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3ResourceClaimSpec
-
toJson
Convert an instance of V1alpha3ResourceClaimSpec to an JSON string- Returns:
- JSON string
-