@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2021-01-04T09:55:14.976Z[Etc/UTC]") public class V1StatefulSetSpec extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_POD_MANAGEMENT_POLICY |
static String |
SERIALIZED_NAME_REPLICAS |
static String |
SERIALIZED_NAME_REVISION_HISTORY_LIMIT |
static String |
SERIALIZED_NAME_SELECTOR |
static String |
SERIALIZED_NAME_SERVICE_NAME |
static String |
SERIALIZED_NAME_TEMPLATE |
static String |
SERIALIZED_NAME_UPDATE_STRATEGY |
static String |
SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES |
Constructor and Description |
---|
V1StatefulSetSpec() |
Modifier and Type | Method and Description |
---|---|
V1StatefulSetSpec |
addVolumeClaimTemplatesItem(V1PersistentVolumeClaim volumeClaimTemplatesItem) |
boolean |
equals(Object o) |
String |
getPodManagementPolicy()
podManagementPolicy controls how pods are created during initial scale up, when replacing pods
on nodes, or when scaling down.
|
Integer |
getReplicas()
replicas is the desired number of replicas of the given Template.
|
Integer |
getRevisionHistoryLimit()
revisionHistoryLimit is the maximum number of revisions that will be maintained in the
StatefulSet's revision history.
|
V1LabelSelector |
getSelector()
Get selector
|
String |
getServiceName()
serviceName is the name of the service that governs this StatefulSet.
|
V1PodTemplateSpec |
getTemplate()
Get template
|
V1StatefulSetUpdateStrategy |
getUpdateStrategy()
Get updateStrategy
|
List<V1PersistentVolumeClaim> |
getVolumeClaimTemplates()
volumeClaimTemplates is a list of claims that pods are allowed to reference.
|
int |
hashCode() |
V1StatefulSetSpec |
podManagementPolicy(String podManagementPolicy) |
V1StatefulSetSpec |
replicas(Integer replicas) |
V1StatefulSetSpec |
revisionHistoryLimit(Integer revisionHistoryLimit) |
V1StatefulSetSpec |
selector(V1LabelSelector selector) |
V1StatefulSetSpec |
serviceName(String serviceName) |
void |
setPodManagementPolicy(String podManagementPolicy) |
void |
setReplicas(Integer replicas) |
void |
setRevisionHistoryLimit(Integer revisionHistoryLimit) |
void |
setSelector(V1LabelSelector selector) |
void |
setServiceName(String serviceName) |
void |
setTemplate(V1PodTemplateSpec template) |
void |
setUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy) |
void |
setVolumeClaimTemplates(List<V1PersistentVolumeClaim> volumeClaimTemplates) |
V1StatefulSetSpec |
template(V1PodTemplateSpec template) |
String |
toString() |
V1StatefulSetSpec |
updateStrategy(V1StatefulSetUpdateStrategy updateStrategy) |
V1StatefulSetSpec |
volumeClaimTemplates(List<V1PersistentVolumeClaim> volumeClaimTemplates) |
public static final String SERIALIZED_NAME_POD_MANAGEMENT_POLICY
public static final String SERIALIZED_NAME_REPLICAS
public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT
public static final String SERIALIZED_NAME_SELECTOR
public static final String SERIALIZED_NAME_SERVICE_NAME
public static final String SERIALIZED_NAME_TEMPLATE
public static final String SERIALIZED_NAME_UPDATE_STRATEGY
public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES
public V1StatefulSetSpec podManagementPolicy(String podManagementPolicy)
@Nullable public String getPodManagementPolicy()
public void setPodManagementPolicy(String podManagementPolicy)
public V1StatefulSetSpec replicas(Integer replicas)
@Nullable public Integer getReplicas()
public void setReplicas(Integer replicas)
public V1StatefulSetSpec revisionHistoryLimit(Integer revisionHistoryLimit)
@Nullable public Integer getRevisionHistoryLimit()
public void setRevisionHistoryLimit(Integer revisionHistoryLimit)
public V1StatefulSetSpec selector(V1LabelSelector selector)
public V1LabelSelector getSelector()
public void setSelector(V1LabelSelector selector)
public V1StatefulSetSpec serviceName(String serviceName)
public String getServiceName()
public void setServiceName(String serviceName)
public V1StatefulSetSpec template(V1PodTemplateSpec template)
public V1PodTemplateSpec getTemplate()
public void setTemplate(V1PodTemplateSpec template)
public V1StatefulSetSpec updateStrategy(V1StatefulSetUpdateStrategy updateStrategy)
@Nullable public V1StatefulSetUpdateStrategy getUpdateStrategy()
public void setUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy)
public V1StatefulSetSpec volumeClaimTemplates(List<V1PersistentVolumeClaim> volumeClaimTemplates)
public V1StatefulSetSpec addVolumeClaimTemplatesItem(V1PersistentVolumeClaim volumeClaimTemplatesItem)
@Nullable public List<V1PersistentVolumeClaim> getVolumeClaimTemplates()
public void setVolumeClaimTemplates(List<V1PersistentVolumeClaim> volumeClaimTemplates)
Copyright © 2021. All rights reserved.