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