Class V1alpha2DriverRequests

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1alpha2DriverRequests extends Object
DriverRequests describes all resources that are needed from one particular driver.
  • Field Details

  • Constructor Details

    • V1alpha2DriverRequests

      public V1alpha2DriverRequests()
  • Method Details

    • driverName

      public V1alpha2DriverRequests driverName(String driverName)
    • getDriverName

      @Nullable public String getDriverName()
      DriverName is the name used by the DRA driver kubelet plugin.
      Returns:
      driverName
    • setDriverName

      public void setDriverName(String driverName)
    • requests

    • addRequestsItem

      public V1alpha2DriverRequests addRequestsItem(V1alpha2ResourceRequest requestsItem)
    • getRequests

      @Nullable public List<V1alpha2ResourceRequest> getRequests()
      Requests describes all resources that are needed from the driver.
      Returns:
      requests
    • setRequests

      public void setRequests(List<V1alpha2ResourceRequest> requests)
    • vendorParameters

      public V1alpha2DriverRequests vendorParameters(Object vendorParameters)
    • getVendorParameters

      @Nullable public Object getVendorParameters()
      VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.
      Returns:
      vendorParameters
    • setVendorParameters

      public void setVendorParameters(Object vendorParameters)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1alpha2DriverRequests
    • fromJson

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

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