Class V1ContainerExtendedResourceRequest
java.lang.Object
io.kubernetes.client.openapi.models.V1ContainerExtendedResourceRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-11T18:00:16.154662Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1ContainerExtendedResourceRequest
extends Object
ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontainerName(String containerName) booleanCreate an instance of V1ContainerExtendedResourceRequest given an JSON stringThe name of the container requesting resources.The name of the request in the special ResourceClaim which corresponds to the extended resource.The name of the extended resource in that container which gets backed by DRA.inthashCode()requestName(String requestName) resourceName(String resourceName) voidsetContainerName(String containerName) voidsetRequestName(String requestName) voidsetResourceName(String resourceName) toJson()Convert an instance of V1ContainerExtendedResourceRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONTAINER_NAME
- See Also:
-
SERIALIZED_NAME_REQUEST_NAME
- See Also:
-
SERIALIZED_NAME_RESOURCE_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ContainerExtendedResourceRequest
public V1ContainerExtendedResourceRequest()
-
-
Method Details
-
containerName
-
getContainerName
The name of the container requesting resources.- Returns:
- containerName
-
setContainerName
-
requestName
-
getRequestName
The name of the request in the special ResourceClaim which corresponds to the extended resource.- Returns:
- requestName
-
setRequestName
-
resourceName
-
getResourceName
The name of the extended resource in that container which gets backed by DRA.- Returns:
- resourceName
-
setResourceName
-
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 V1ContainerExtendedResourceRequest
-
fromJson
Create an instance of V1ContainerExtendedResourceRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1ContainerExtendedResourceRequest
- Throws:
IOException- if the JSON string is invalid with respect to V1ContainerExtendedResourceRequest
-
toJson
Convert an instance of V1ContainerExtendedResourceRequest to an JSON string- Returns:
- JSON string
-