Class V1ReplicationControllerSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1ReplicationControllerSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1ReplicationControllerSpec
extends Object
ReplicationControllerSpec is the specification of a replication controller.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1ReplicationControllerSpecCreate an instance of V1ReplicationControllerSpec given an JSON stringMinimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.Replicas is the number of desired replicas.Selector is a label query over pods that should match the Replicas count.Get templateinthashCode()minReadySeconds(Integer minReadySeconds) putSelectorItem(String key, String selectorItem) voidsetMinReadySeconds(Integer minReadySeconds) voidsetReplicas(Integer replicas) voidsetSelector(Map<String, String> selector) voidsetTemplate(V1PodTemplateSpec template) template(V1PodTemplateSpec template) toJson()Convert an instance of V1ReplicationControllerSpec to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MIN_READY_SECONDS
- See Also:
-
SERIALIZED_NAME_REPLICAS
- See Also:
-
SERIALIZED_NAME_SELECTOR
- See Also:
-
SERIALIZED_NAME_TEMPLATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ReplicationControllerSpec
public V1ReplicationControllerSpec()
-
-
Method Details
-
minReadySeconds
-
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
-
replicas
-
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
-
selector
-
putSelectorItem
-
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
-
template
-
getTemplate
Get template- Returns:
- template
-
setTemplate
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to V1ReplicationControllerSpec
-
fromJson
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
Convert an instance of V1ReplicationControllerSpec to an JSON string- Returns:
- JSON string
-