Class V1alpha2NamedResourcesRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1alpha2NamedResourcesRequest extends Object
NamedResourcesRequest is used in ResourceRequestModel.
  • Field Details

  • Constructor Details

    • V1alpha2NamedResourcesRequest

      public V1alpha2NamedResourcesRequest()
  • Method Details

    • selector

      public V1alpha2NamedResourcesRequest selector(String selector)
    • getSelector

      @Nonnull public String getSelector()
      Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example: attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) && attributes.stringslice[\"b\"].isSorted()
      Returns:
      selector
    • setSelector

      public void setSelector(String selector)
    • 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 V1alpha2NamedResourcesRequest
    • fromJson

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

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