Class V1ScaleStatus

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1ScaleStatus extends Object
ScaleStatus represents the current status of a scale subresource.
  • Field Details

  • Constructor Details

    • V1ScaleStatus

      public V1ScaleStatus()
  • Method Details

    • replicas

      public V1ScaleStatus replicas(Integer replicas)
    • getReplicas

      @Nonnull public Integer getReplicas()
      replicas is the actual number of observed instances of the scaled object.
      Returns:
      replicas
    • setReplicas

      public void setReplicas(Integer replicas)
    • selector

      public V1ScaleStatus selector(String selector)
    • getSelector

      @Nullable public String getSelector()
      selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
      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 V1ScaleStatus
    • fromJson

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

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