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.
  • Field Details

  • Constructor Details

    • V1ContainerExtendedResourceRequest

      public V1ContainerExtendedResourceRequest()
  • Method Details

    • containerName

      public V1ContainerExtendedResourceRequest containerName(@Nonnull String containerName)
    • getContainerName

      @Nonnull public String getContainerName()
      The name of the container requesting resources.
      Returns:
      containerName
    • setContainerName

      public void setContainerName(@Nonnull String containerName)
    • requestName

      public V1ContainerExtendedResourceRequest requestName(@Nonnull String requestName)
    • getRequestName

      @Nonnull public String getRequestName()
      The name of the request in the special ResourceClaim which corresponds to the extended resource.
      Returns:
      requestName
    • setRequestName

      public void setRequestName(@Nonnull String requestName)
    • resourceName

      public V1ContainerExtendedResourceRequest resourceName(@Nonnull String resourceName)
    • getResourceName

      @Nonnull public String getResourceName()
      The name of the extended resource in that container which gets backed by DRA.
      Returns:
      resourceName
    • setResourceName

      public void setResourceName(@Nonnull String resourceName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static V1ContainerExtendedResourceRequest fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V1ContainerExtendedResourceRequest to an JSON string
      Returns:
      JSON string