@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-07-29T18:17:00.375Z[Etc/UTC]") public class V1TopologySpreadConstraint extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_LABEL_SELECTOR |
static String |
SERIALIZED_NAME_MAX_SKEW |
static String |
SERIALIZED_NAME_TOPOLOGY_KEY |
static String |
SERIALIZED_NAME_WHEN_UNSATISFIABLE |
Constructor and Description |
---|
V1TopologySpreadConstraint() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
V1LabelSelector |
getLabelSelector()
Get labelSelector
|
Integer |
getMaxSkew()
MaxSkew describes the degree to which pods may be unevenly distributed.
|
String |
getTopologyKey()
TopologyKey is the key of node labels.
|
String |
getWhenUnsatisfiable()
WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread
constraint.
|
int |
hashCode() |
V1TopologySpreadConstraint |
labelSelector(V1LabelSelector labelSelector) |
V1TopologySpreadConstraint |
maxSkew(Integer maxSkew) |
void |
setLabelSelector(V1LabelSelector labelSelector) |
void |
setMaxSkew(Integer maxSkew) |
void |
setTopologyKey(String topologyKey) |
void |
setWhenUnsatisfiable(String whenUnsatisfiable) |
V1TopologySpreadConstraint |
topologyKey(String topologyKey) |
String |
toString() |
V1TopologySpreadConstraint |
whenUnsatisfiable(String whenUnsatisfiable) |
public static final String SERIALIZED_NAME_LABEL_SELECTOR
public static final String SERIALIZED_NAME_MAX_SKEW
public static final String SERIALIZED_NAME_TOPOLOGY_KEY
public static final String SERIALIZED_NAME_WHEN_UNSATISFIABLE
public V1TopologySpreadConstraint labelSelector(V1LabelSelector labelSelector)
@Nullable public V1LabelSelector getLabelSelector()
public void setLabelSelector(V1LabelSelector labelSelector)
public V1TopologySpreadConstraint maxSkew(Integer maxSkew)
public Integer getMaxSkew()
public void setMaxSkew(Integer maxSkew)
public V1TopologySpreadConstraint topologyKey(String topologyKey)
public String getTopologyKey()
public void setTopologyKey(String topologyKey)
public V1TopologySpreadConstraint whenUnsatisfiable(String whenUnsatisfiable)
public String getWhenUnsatisfiable()
public void setWhenUnsatisfiable(String whenUnsatisfiable)
Copyright © 2020. All rights reserved.