Class V1beta1DeviceClaim
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1DeviceClaim
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1beta1DeviceClaim
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
(V1beta1DeviceClaimConfiguration configItem) addConstraintsItem
(V1beta1DeviceConstraint constraintsItem) addRequestsItem
(V1beta1DeviceRequest requestsItem) config
(List<V1beta1DeviceClaimConfiguration> config) constraints
(List<V1beta1DeviceConstraint> constraints) boolean
static V1beta1DeviceClaim
Create an instance of V1beta1DeviceClaim 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<V1beta1DeviceRequest> requests) void
setConfig
(List<V1beta1DeviceClaimConfiguration> config) void
setConstraints
(List<V1beta1DeviceConstraint> constraints) void
setRequests
(List<V1beta1DeviceRequest> requests) toJson()
Convert an instance of V1beta1DeviceClaim 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
-
V1beta1DeviceClaim
public V1beta1DeviceClaim()
-
-
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 V1beta1DeviceClaim
-
fromJson
Create an instance of V1beta1DeviceClaim given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1beta1DeviceClaim
- Throws:
IOException
- if the JSON string is invalid with respect to V1beta1DeviceClaim
-
toJson
Convert an instance of V1beta1DeviceClaim to an JSON string- Returns:
- JSON string
-