Class V1ReplicaSetSpec

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ReplicaSetSpec

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1ReplicaSetSpec extends Object
ReplicaSetSpec is the specification of a ReplicaSet.
  • Field Details

  • Constructor Details

  • Method Details

    • getMinReadySeconds

      public Integer getMinReadySeconds()
      Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
      Returns:
      the minReadySeconds property value
    • setMinReadySeconds

      public void setMinReadySeconds(Integer minReadySeconds)
      Set the minReadySeconds property value
    • minReadySeconds

      public V1ReplicaSetSpec minReadySeconds(Integer minReadySeconds)
      Set minReadySeconds in a chainable fashion.
      Returns:
      The same instance of V1ReplicaSetSpec for chaining.
    • getReplicas

      public Integer getReplicas()
      Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
      Returns:
      the replicas property value
    • setReplicas

      public void setReplicas(Integer replicas)
      Set the replicas property value
    • replicas

      public V1ReplicaSetSpec replicas(Integer replicas)
      Set replicas in a chainable fashion.
      Returns:
      The same instance of V1ReplicaSetSpec for chaining.
    • getSelector

      public V1LabelSelector getSelector()
      Returns:
      the selector property value
    • setSelector

      public void setSelector(V1LabelSelector selector)
      Set the selector property value
    • selector

      public V1ReplicaSetSpec selector(V1LabelSelector selector)
      Set selector in a chainable fashion.
      Returns:
      The same instance of V1ReplicaSetSpec for chaining.
    • getTemplate

      public V1PodTemplateSpec getTemplate()
      Returns:
      the template property value
    • setTemplate

      public void setTemplate(V1PodTemplateSpec template)
      Set the template property value
    • template

      public V1ReplicaSetSpec template(V1PodTemplateSpec template)
      Set template in a chainable fashion.
      Returns:
      The same instance of V1ReplicaSetSpec for chaining.
    • 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