Package net.stickycode.kuuty.model.v18
Class IoK8sApiCoreV1Toleration
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiCoreV1Toleration
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiCoreV1Toleration extends Object
The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_EFFECTstatic StringJSON_PROPERTY_KEYstatic StringJSON_PROPERTY_OPERATORstatic StringJSON_PROPERTY_TOLERATION_SECONDSstatic StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description IoK8sApiCoreV1Toleration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiCoreV1Tolerationeffect(String effect)booleanequals(Object o)StringgetEffect()Effect indicates the taint effect to match.StringgetKey()Key is the taint key that the toleration applies to.StringgetOperator()Operator represents a key's relationship to the value.LonggetTolerationSeconds()TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint.StringgetValue()Value is the taint value the toleration matches to.inthashCode()IoK8sApiCoreV1Tolerationkey(String key)IoK8sApiCoreV1Tolerationoperator(String operator)voidsetEffect(String effect)voidsetKey(String key)voidsetOperator(String operator)voidsetTolerationSeconds(Long tolerationSeconds)voidsetValue(String value)IoK8sApiCoreV1TolerationtolerationSeconds(Long tolerationSeconds)StringtoString()IoK8sApiCoreV1Tolerationvalue(String value)
-
-
-
Field Detail
-
JSON_PROPERTY_EFFECT
public static final String JSON_PROPERTY_EFFECT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_KEY
public static final String JSON_PROPERTY_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPERATOR
public static final String JSON_PROPERTY_OPERATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOLERATION_SECONDS
public static final String JSON_PROPERTY_TOLERATION_SECONDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE
public static final String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
effect
public IoK8sApiCoreV1Toleration effect(String effect)
-
getEffect
@Nullable public String getEffect()
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.- Returns:
- effect
-
setEffect
public void setEffect(String effect)
-
key
public IoK8sApiCoreV1Toleration key(String key)
-
getKey
@Nullable public String getKey()
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.- Returns:
- key
-
setKey
public void setKey(String key)
-
operator
public IoK8sApiCoreV1Toleration operator(String operator)
-
getOperator
@Nullable public String getOperator()
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.- Returns:
- operator
-
setOperator
public void setOperator(String operator)
-
tolerationSeconds
public IoK8sApiCoreV1Toleration tolerationSeconds(Long tolerationSeconds)
-
getTolerationSeconds
@Nullable public Long getTolerationSeconds()
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.- Returns:
- tolerationSeconds
-
setTolerationSeconds
public void setTolerationSeconds(Long tolerationSeconds)
-
value
public IoK8sApiCoreV1Toleration value(String value)
-
getValue
@Nullable public String getValue()
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.- Returns:
- value
-
setValue
public void setValue(String value)
-
-