Class ScaleStatus

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class ScaleStatus
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    ScaleStatus represents the current status of a scale subresource.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ScaleStatus.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      ScaleStatus()  
      ScaleStatus​(@NonNull java.lang.Number replicas, java.lang.String selector)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ScaleStatus.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      @NonNull java.lang.Number getReplicas()
      replicas is the actual number of observed instances of the scaled object.
      java.lang.String getSelector()
      selector is the label query over pods that should match the replicas count.
      int hashCode()  
      void setReplicas​(@NonNull java.lang.Number replicas)
      replicas is the actual number of observed instances of the scaled object.
      void setSelector​(java.lang.String selector)
      selector is the label query over pods that should match the replicas count.
      ScaleStatus.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ScaleStatus

        public ScaleStatus​(@NonNull
                           @NonNull java.lang.Number replicas,
                           java.lang.String selector)
      • ScaleStatus

        public ScaleStatus()
    • Method Detail

      • getReplicas

        @NonNull
        public @NonNull java.lang.Number getReplicas()
        replicas is the actual number of observed instances of the scaled object.
      • getSelector

        public java.lang.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/
      • setReplicas

        public void setReplicas​(@NonNull
                                @NonNull java.lang.Number replicas)
        replicas is the actual number of observed instances of the scaled object.
      • setSelector

        public void setSelector​(java.lang.String selector)
        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/
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object