Class V1alpha3DeviceAllocationConfiguration

java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1alpha3DeviceAllocationConfiguration extends Object
DeviceAllocationConfiguration gets embedded in an AllocationResult.
  • Field Details

  • Constructor Details

    • V1alpha3DeviceAllocationConfiguration

      public V1alpha3DeviceAllocationConfiguration()
  • Method Details

    • opaque

    • getOpaque

      @Nullable public V1alpha3OpaqueDeviceConfiguration getOpaque()
      Get opaque
      Returns:
      opaque
    • setOpaque

      public void setOpaque(@Nullable V1alpha3OpaqueDeviceConfiguration opaque)
    • requests

      public V1alpha3DeviceAllocationConfiguration requests(@Nullable List<String> requests)
    • addRequestsItem

      public V1alpha3DeviceAllocationConfiguration addRequestsItem(String requestsItem)
    • getRequests

      @Nullable public List<String> 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

      public void setRequests(@Nullable List<String> requests)
    • source

      public V1alpha3DeviceAllocationConfiguration source(@Nonnull String source)
    • getSource

      @Nonnull public String 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

      public void setSource(@Nonnull String source)
    • 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 V1alpha3DeviceAllocationConfiguration
    • fromJson

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

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