Class ReplicaSetSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.apps.v1.ReplicaSetSpec
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ReplicaSetSpec extends java.lang.Object implements com.marcnuri.yakc.model.Model
ReplicaSetSpec is the specification of a ReplicaSet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReplicaSetSpec.Builder
-
Constructor Summary
Constructors Constructor Description ReplicaSetSpec()
ReplicaSetSpec(java.lang.Number minReadySeconds, java.lang.Number replicas, @NonNull LabelSelector selector, PodTemplateSpec template)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReplicaSetSpec.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Number
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.java.lang.Number
getReplicas()
Replicas is the number of desired replicas.@NonNull LabelSelector
getSelector()
PodTemplateSpec
getTemplate()
int
hashCode()
void
setMinReadySeconds(java.lang.Number minReadySeconds)
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.void
setReplicas(java.lang.Number replicas)
Replicas is the number of desired replicas.void
setSelector(@NonNull LabelSelector selector)
void
setTemplate(PodTemplateSpec template)
ReplicaSetSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ReplicaSetSpec
public ReplicaSetSpec(java.lang.Number minReadySeconds, java.lang.Number replicas, @NonNull @NonNull LabelSelector selector, PodTemplateSpec template)
-
ReplicaSetSpec
public ReplicaSetSpec()
-
-
Method Detail
-
builder
public static ReplicaSetSpec.Builder builder()
-
toBuilder
public ReplicaSetSpec.Builder toBuilder()
-
getMinReadySeconds
public java.lang.Number 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)
-
getReplicas
public java.lang.Number 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
-
getSelector
@NonNull public @NonNull LabelSelector getSelector()
-
getTemplate
public PodTemplateSpec getTemplate()
-
setMinReadySeconds
public void setMinReadySeconds(java.lang.Number minReadySeconds)
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)
-
setReplicas
public void setReplicas(java.lang.Number replicas)
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
-
setSelector
public void setSelector(@NonNull @NonNull LabelSelector selector)
-
setTemplate
public void setTemplate(PodTemplateSpec template)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-