Class V1Affinity
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1Affinity
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1Affinity
extends Object
Affinity is a group of affinity scheduling rules.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
nodeAffinity
(V1NodeAffinity nodeAffinity) Set nodeAffinity in a chainable fashion.podAffinity
(V1PodAffinity podAffinity) Set podAffinity in a chainable fashion.podAntiAffinity
(V1PodAntiAffinity podAntiAffinity) Set podAntiAffinity in a chainable fashion.void
setNodeAffinity
(V1NodeAffinity nodeAffinity) Set the nodeAffinity property valuevoid
setPodAffinity
(V1PodAffinity podAffinity) Set the podAffinity property valuevoid
setPodAntiAffinity
(V1PodAntiAffinity podAntiAffinity) Set the podAntiAffinity property valuetoString()
-
Field Details
-
JSON_PROPERTY_NODE_AFFINITY
- See Also:
-
JSON_PROPERTY_POD_AFFINITY
- See Also:
-
JSON_PROPERTY_POD_ANTI_AFFINITY
- See Also:
-
-
Constructor Details
-
V1Affinity
public V1Affinity()
-
-
Method Details
-
getNodeAffinity
- Returns:
- the nodeAffinity property value
-
setNodeAffinity
Set the nodeAffinity property value- Parameters:
nodeAffinity
- property value to set
-
nodeAffinity
Set nodeAffinity in a chainable fashion.- Returns:
- The same instance of V1Affinity for chaining.
-
getPodAffinity
- Returns:
- the podAffinity property value
-
setPodAffinity
Set the podAffinity property value- Parameters:
podAffinity
- property value to set
-
podAffinity
Set podAffinity in a chainable fashion.- Returns:
- The same instance of V1Affinity for chaining.
-
getPodAntiAffinity
- Returns:
- the podAntiAffinity property value
-
setPodAntiAffinity
Set the podAntiAffinity property value- Parameters:
podAntiAffinity
- property value to set
-
podAntiAffinity
Set podAntiAffinity in a chainable fashion.- Returns:
- The same instance of V1Affinity for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-