Class V1alpha2ResourceFilter

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1alpha2ResourceFilter extends Object
ResourceFilter is a filter for resources from one particular driver.
  • Field Details

  • Constructor Details

    • V1alpha2ResourceFilter

      public V1alpha2ResourceFilter()
  • Method Details

    • driverName

      public V1alpha2ResourceFilter 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)
    • namedResources

      public V1alpha2ResourceFilter namedResources(V1alpha2NamedResourcesFilter namedResources)
    • getNamedResources

      @Nullable public V1alpha2NamedResourcesFilter getNamedResources()
      Get namedResources
      Returns:
      namedResources
    • setNamedResources

      public void setNamedResources(V1alpha2NamedResourcesFilter namedResources)
    • 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 V1alpha2ResourceFilter
    • fromJson

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

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