Class V1ReplicaSetSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1ReplicaSetSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1ReplicaSetSpec
extends Object
ReplicaSetSpec is the specification of a ReplicaSet.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1ReplicaSetSpec
Create an instance of V1ReplicaSetSpec 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.Get selectorGet templateint
hashCode()
minReadySeconds
(Integer minReadySeconds) selector
(V1LabelSelector selector) void
setMinReadySeconds
(Integer minReadySeconds) void
setReplicas
(Integer replicas) void
setSelector
(V1LabelSelector selector) void
setTemplate
(V1PodTemplateSpec template) template
(V1PodTemplateSpec template) toJson()
Convert an instance of V1ReplicaSetSpec to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
V1ReplicaSetSpec
public V1ReplicaSetSpec()
-
-
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
-
getSelector
Get selector- Returns:
- selector
-
setSelector
-
template
-
getTemplate
Get template- Returns:
- template
-
setTemplate
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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 V1ReplicaSetSpec
-
fromJson
Create an instance of V1ReplicaSetSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ReplicaSetSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1ReplicaSetSpec
-
toJson
Convert an instance of V1ReplicaSetSpec to an JSON string- Returns:
- JSON string
-