Class ReplicaSetStatus

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

    public class ReplicaSetStatus
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    ReplicaSetStatus represents the current status of a ReplicaSet.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReplicaSetStatus()  
      ReplicaSetStatus​(java.lang.Number availableReplicas, java.util.List<ReplicaSetCondition> conditions, java.lang.Number fullyLabeledReplicas, java.lang.Number observedGeneration, java.lang.Number readyReplicas, @NonNull java.lang.Number replicas)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ReplicaSetStatus.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.Number getAvailableReplicas()
      The number of available replicas (ready for at least minReadySeconds) for this replica set.
      java.util.List<ReplicaSetCondition> getConditions()
      Represents the latest available observations of a replica set's current state.
      java.lang.Number getFullyLabeledReplicas()
      The number of pods that have labels matching the labels of the pod template of the replicaset.
      java.lang.Number getObservedGeneration()
      ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
      java.lang.Number getReadyReplicas()
      The number of ready replicas for this replica set.
      @NonNull java.lang.Number getReplicas()
      Replicas is the most recently oberved number of replicas.
      int hashCode()  
      void setAvailableReplicas​(java.lang.Number availableReplicas)
      The number of available replicas (ready for at least minReadySeconds) for this replica set.
      void setConditions​(java.util.List<ReplicaSetCondition> conditions)
      Represents the latest available observations of a replica set's current state.
      void setFullyLabeledReplicas​(java.lang.Number fullyLabeledReplicas)
      The number of pods that have labels matching the labels of the pod template of the replicaset.
      void setObservedGeneration​(java.lang.Number observedGeneration)
      ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
      void setReadyReplicas​(java.lang.Number readyReplicas)
      The number of ready replicas for this replica set.
      void setReplicas​(@NonNull java.lang.Number replicas)
      Replicas is the most recently oberved number of replicas.
      ReplicaSetStatus.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • ReplicaSetStatus

        public ReplicaSetStatus​(java.lang.Number availableReplicas,
                                java.util.List<ReplicaSetCondition> conditions,
                                java.lang.Number fullyLabeledReplicas,
                                java.lang.Number observedGeneration,
                                java.lang.Number readyReplicas,
                                @NonNull
                                @NonNull java.lang.Number replicas)
      • ReplicaSetStatus

        public ReplicaSetStatus()
    • Method Detail

      • getAvailableReplicas

        public java.lang.Number getAvailableReplicas()
        The number of available replicas (ready for at least minReadySeconds) for this replica set.
      • getConditions

        public java.util.List<ReplicaSetCondition> getConditions()
        Represents the latest available observations of a replica set's current state.
      • getFullyLabeledReplicas

        public java.lang.Number getFullyLabeledReplicas()
        The number of pods that have labels matching the labels of the pod template of the replicaset.
      • getObservedGeneration

        public java.lang.Number getObservedGeneration()
        ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
      • getReadyReplicas

        public java.lang.Number getReadyReplicas()
        The number of ready replicas for this replica set.
      • getReplicas

        @NonNull
        public @NonNull java.lang.Number getReplicas()
        Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
      • setAvailableReplicas

        public void setAvailableReplicas​(java.lang.Number availableReplicas)
        The number of available replicas (ready for at least minReadySeconds) for this replica set.
      • setConditions

        public void setConditions​(java.util.List<ReplicaSetCondition> conditions)
        Represents the latest available observations of a replica set's current state.
      • setFullyLabeledReplicas

        public void setFullyLabeledReplicas​(java.lang.Number fullyLabeledReplicas)
        The number of pods that have labels matching the labels of the pod template of the replicaset.
      • setObservedGeneration

        public void setObservedGeneration​(java.lang.Number observedGeneration)
        ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
      • setReadyReplicas

        public void setReadyReplicas​(java.lang.Number readyReplicas)
        The number of ready replicas for this replica set.
      • setReplicas

        public void setReplicas​(@NonNull
                                @NonNull java.lang.Number replicas)
        Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
      • 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