Class V1beta2DeviceAllocationConfiguration
java.lang.Object
io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1beta2DeviceAllocationConfiguration
extends Object
DeviceAllocationConfiguration gets embedded in an AllocationResult.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRequestsItem
(String requestsItem) boolean
Create an instance of V1beta2DeviceAllocationConfiguration given an JSON stringGet opaqueRequests lists the names of requests where the configuration applies.Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.int
hashCode()
void
void
setRequests
(List<String> requests) void
toJson()
Convert an instance of V1beta2DeviceAllocationConfiguration 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_OPAQUE
- See Also:
-
SERIALIZED_NAME_REQUESTS
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta2DeviceAllocationConfiguration
public V1beta2DeviceAllocationConfiguration()
-
-
Method Details
-
opaque
public V1beta2DeviceAllocationConfiguration opaque(@Nullable V1beta2OpaqueDeviceConfiguration opaque) -
getOpaque
Get opaque- Returns:
- opaque
-
setOpaque
-
requests
-
addRequestsItem
-
getRequests
Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.- Returns:
- requests
-
setRequests
-
source
-
getSource
Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.- Returns:
- source
-
setSource
-
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 V1beta2DeviceAllocationConfiguration
-
fromJson
Create an instance of V1beta2DeviceAllocationConfiguration given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1beta2DeviceAllocationConfiguration
- Throws:
IOException
- if the JSON string is invalid with respect to V1beta2DeviceAllocationConfiguration
-
toJson
Convert an instance of V1beta2DeviceAllocationConfiguration to an JSON string- Returns:
- JSON string
-