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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanMinimum 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 pods.inthashCode()minReadySeconds(Integer minReadySeconds) Set minReadySeconds in a chainable fashion.Set replicas in a chainable fashion.selector(V1LabelSelector selector) Set selector in a chainable fashion.voidsetMinReadySeconds(Integer minReadySeconds) Set the minReadySeconds property valuevoidsetReplicas(Integer replicas) Set the replicas property valuevoidsetSelector(V1LabelSelector selector) Set the selector property valuevoidsetTemplate(V1PodTemplateSpec template) Set the template property valuetemplate(V1PodTemplateSpec template) Set template in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_SELECTOR
- See Also:
-
JSON_PROPERTY_MIN_READY_SECONDS
- See Also:
-
JSON_PROPERTY_REPLICAS
- See Also:
-
JSON_PROPERTY_TEMPLATE
- See Also:
-
-
Constructor Details
-
V1ReplicaSetSpec
-
-
Method Details
-
getSelector
- Returns:
- the selector property value
-
setSelector
Set the selector property value- Parameters:
selector- property value to set
-
selector
Set selector in a chainable fashion.- Returns:
- The same instance of V1ReplicaSetSpec for chaining.
-
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
Set the minReadySeconds property value- Parameters:
minReadySeconds- property value to set
-
minReadySeconds
Set minReadySeconds in a chainable fashion.- Returns:
- The same instance of V1ReplicaSetSpec for chaining.
-
getReplicas
Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset- Returns:
- the replicas property value
-
setReplicas
Set the replicas property value- Parameters:
replicas- property value to set
-
replicas
Set replicas in a chainable fashion.- Returns:
- The same instance of V1ReplicaSetSpec for chaining.
-
getTemplate
- Returns:
- the template property value
-
setTemplate
Set the template property value- Parameters:
template- property value to set
-
template
Set template in a chainable fashion.- Returns:
- The same instance of V1ReplicaSetSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-