Class V1ReplicationControllerSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1ReplicationControllerSpec extends Object
ReplicationControllerSpec is the specification of a replication controller.
  • Field Details

  • Constructor Details

    • V1ReplicationControllerSpec

      public V1ReplicationControllerSpec()
  • Method Details

    • minReadySeconds

      public V1ReplicationControllerSpec minReadySeconds(Integer minReadySeconds)
    • getMinReadySeconds

      @Nullable 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:
      minReadySeconds
    • setMinReadySeconds

      public void setMinReadySeconds(Integer minReadySeconds)
    • replicas

      public V1ReplicationControllerSpec replicas(Integer replicas)
    • getReplicas

      @Nullable 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:
      replicas
    • setReplicas

      public void setReplicas(Integer replicas)
    • selector

      public V1ReplicationControllerSpec selector(Map<String,String> selector)
    • putSelectorItem

      public V1ReplicationControllerSpec putSelectorItem(String key, String selectorItem)
    • getSelector

      @Nullable public Map<String,String> getSelector()
      Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
      Returns:
      selector
    • setSelector

      public void setSelector(Map<String,String> selector)
    • template

      public V1ReplicationControllerSpec template(V1PodTemplateSpec template)
    • getTemplate

      @Nullable public V1PodTemplateSpec getTemplate()
      Get template
      Returns:
      template
    • setTemplate

      public void setTemplate(V1PodTemplateSpec template)
    • 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 V1ReplicationControllerSpec
    • fromJson

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

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