Class V1beta2DeviceClaim
java.lang.Object
io.kubernetes.client.openapi.models.V1beta2DeviceClaim
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1beta2DeviceClaim
extends Object
DeviceClaim defines how to request devices with a ResourceClaim.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConfigItem
(V1beta2DeviceClaimConfiguration configItem) addConstraintsItem
(V1beta2DeviceConstraint constraintsItem) addRequestsItem
(V1beta2DeviceRequest requestsItem) config
(List<V1beta2DeviceClaimConfiguration> config) constraints
(List<V1beta2DeviceConstraint> constraints) boolean
static V1beta2DeviceClaim
Create an instance of V1beta2DeviceClaim given an JSON stringThis field holds configuration for multiple potential drivers which could satisfy requests in this claim.These constraints must be satisfied by the set of devices that get allocated for the claim.Requests represent individual requests for distinct devices which must all be satisfied.int
hashCode()
requests
(List<V1beta2DeviceRequest> requests) void
setConfig
(List<V1beta2DeviceClaimConfiguration> config) void
setConstraints
(List<V1beta2DeviceConstraint> constraints) void
setRequests
(List<V1beta2DeviceRequest> requests) toJson()
Convert an instance of V1beta2DeviceClaim 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_CONFIG
- See Also:
-
SERIALIZED_NAME_CONSTRAINTS
- See Also:
-
SERIALIZED_NAME_REQUESTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta2DeviceClaim
public V1beta2DeviceClaim()
-
-
Method Details
-
config
-
addConfigItem
-
getConfig
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.- Returns:
- config
-
setConfig
-
constraints
-
addConstraintsItem
-
getConstraints
These constraints must be satisfied by the set of devices that get allocated for the claim.- Returns:
- constraints
-
setConstraints
-
requests
-
addRequestsItem
-
getRequests
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.- Returns:
- requests
-
setRequests
-
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 V1beta2DeviceClaim
-
fromJson
Create an instance of V1beta2DeviceClaim given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1beta2DeviceClaim
- Throws:
IOException
- if the JSON string is invalid with respect to V1beta2DeviceClaim
-
toJson
Convert an instance of V1beta2DeviceClaim to an JSON string- Returns:
- JSON string
-