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)  
    • 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()
        actual number of observed instances of the scaled object.
      • getSelector

        public java.lang.String getSelector()
        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: http://kubernetes.io/docs/user-guide/labels#label-selectors
      • setReplicas

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

        public void setSelector​(java.lang.String selector)
        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: http://kubernetes.io/docs/user-guide/labels#label-selectors
      • 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