Class V1alpha3DeviceAllocationConfiguration
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1alpha3DeviceAllocationConfiguration
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 V1alpha3DeviceAllocationConfiguration 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 V1alpha3DeviceAllocationConfiguration 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
-
V1alpha3DeviceAllocationConfiguration
public V1alpha3DeviceAllocationConfiguration()
-
-
Method Details
-
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.- 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 V1alpha3DeviceAllocationConfiguration
-
fromJson
Create an instance of V1alpha3DeviceAllocationConfiguration given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3DeviceAllocationConfiguration
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3DeviceAllocationConfiguration
-
toJson
Convert an instance of V1alpha3DeviceAllocationConfiguration to an JSON string- Returns:
- JSON string
-