Class V1DeviceClaim

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-09-11T18:00:16.154662Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1DeviceClaim extends Object
DeviceClaim defines how to request devices with a ResourceClaim.
  • Field Details

  • Constructor Details

    • V1DeviceClaim

      public V1DeviceClaim()
  • Method Details

    • config

      public V1DeviceClaim config(@Nullable List<V1DeviceClaimConfiguration> config)
    • addConfigItem

      public V1DeviceClaim addConfigItem(V1DeviceClaimConfiguration configItem)
    • getConfig

      @Nullable public List<V1DeviceClaimConfiguration> getConfig()
      This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
      Returns:
      config
    • setConfig

      public void setConfig(@Nullable List<V1DeviceClaimConfiguration> config)
    • constraints

      public V1DeviceClaim constraints(@Nullable List<V1DeviceConstraint> constraints)
    • addConstraintsItem

      public V1DeviceClaim addConstraintsItem(V1DeviceConstraint constraintsItem)
    • getConstraints

      @Nullable public List<V1DeviceConstraint> getConstraints()
      These constraints must be satisfied by the set of devices that get allocated for the claim.
      Returns:
      constraints
    • setConstraints

      public void setConstraints(@Nullable List<V1DeviceConstraint> constraints)
    • requests

      public V1DeviceClaim requests(@Nullable List<V1DeviceRequest> requests)
    • addRequestsItem

      public V1DeviceClaim addRequestsItem(V1DeviceRequest requestsItem)
    • getRequests

      @Nullable public List<V1DeviceRequest> getRequests()
      Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
      Returns:
      requests
    • setRequests

      public void setRequests(@Nullable List<V1DeviceRequest> requests)
    • 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 V1DeviceClaim
    • fromJson

      public static V1DeviceClaim fromJson(String jsonString) throws IOException
      Create an instance of V1DeviceClaim given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1DeviceClaim
      Throws:
      IOException - if the JSON string is invalid with respect to V1DeviceClaim
    • toJson

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