Package kubevirt.io
Class V1Toleration
- java.lang.Object
-
- kubevirt.io.V1Toleration
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1Toleration extends java.lang.Object
The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
-
-
Constructor Summary
Constructors Constructor Description V1Toleration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1Toleration
effect(java.lang.String effect)
boolean
equals(java.lang.Object o)
java.lang.String
getEffect()
Effect indicates the taint effect to match.java.lang.String
getKey()
Key is the taint key that the toleration applies to.java.lang.String
getOperator()
Operator represents a key's relationship to the value.java.lang.Long
getTolerationSeconds()
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint.java.lang.String
getValue()
Value is the taint value the toleration matches to.int
hashCode()
V1Toleration
key(java.lang.String key)
V1Toleration
operator(java.lang.String operator)
void
setEffect(java.lang.String effect)
void
setKey(java.lang.String key)
void
setOperator(java.lang.String operator)
void
setTolerationSeconds(java.lang.Long tolerationSeconds)
void
setValue(java.lang.String value)
V1Toleration
tolerationSeconds(java.lang.Long tolerationSeconds)
java.lang.String
toString()
V1Toleration
value(java.lang.String value)
-
-
-
Method Detail
-
effect
public V1Toleration effect(java.lang.String effect)
-
getEffect
public java.lang.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(java.lang.String effect)
-
key
public V1Toleration key(java.lang.String key)
-
getKey
public java.lang.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(java.lang.String key)
-
operator
public V1Toleration operator(java.lang.String operator)
-
getOperator
public java.lang.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(java.lang.String operator)
-
tolerationSeconds
public V1Toleration tolerationSeconds(java.lang.Long tolerationSeconds)
-
getTolerationSeconds
public java.lang.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(java.lang.Long tolerationSeconds)
-
value
public V1Toleration value(java.lang.String value)
-
getValue
public java.lang.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(java.lang.String value)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-