Package io.fabric8.kubernetes.api.model
Class TopologySpreadConstraint
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.TopologySpreadConstraint
-
- All Implemented Interfaces:
KubernetesResource,Serializable
public class TopologySpreadConstraint extends Object implements KubernetesResource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TopologySpreadConstraint()No args constructor for use in serializationTopologySpreadConstraint(LabelSelector labelSelector, Integer maxSkew, String topologyKey, String whenUnsatisfiable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getAdditionalProperties()LabelSelectorgetLabelSelector()IntegergetMaxSkew()StringgetTopologyKey()StringgetWhenUnsatisfiable()voidsetAdditionalProperty(String name, Object value)voidsetLabelSelector(LabelSelector labelSelector)voidsetMaxSkew(Integer maxSkew)voidsetTopologyKey(String topologyKey)voidsetWhenUnsatisfiable(String whenUnsatisfiable)
-
-
-
Constructor Detail
-
TopologySpreadConstraint
public TopologySpreadConstraint()
No args constructor for use in serialization
-
TopologySpreadConstraint
public TopologySpreadConstraint(LabelSelector labelSelector, Integer maxSkew, String topologyKey, String whenUnsatisfiable)
- Parameters:
whenUnsatisfiable-maxSkew-labelSelector-topologyKey-
-
-
Method Detail
-
getLabelSelector
public LabelSelector getLabelSelector()
-
setLabelSelector
public void setLabelSelector(LabelSelector labelSelector)
-
getMaxSkew
public Integer getMaxSkew()
-
setMaxSkew
public void setMaxSkew(Integer maxSkew)
-
getTopologyKey
public String getTopologyKey()
-
setTopologyKey
public void setTopologyKey(String topologyKey)
-
getWhenUnsatisfiable
public String getWhenUnsatisfiable()
-
setWhenUnsatisfiable
public void setWhenUnsatisfiable(String whenUnsatisfiable)
-
-