Class V1Affinity
java.lang.Object
io.kubernetes.client.openapi.models.V1Affinity
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1Affinity
extends Object
Affinity is a group of affinity scheduling rules.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1AffinityCreate an instance of V1Affinity given an JSON stringGet nodeAffinityGet podAffinityGet podAntiAffinityinthashCode()nodeAffinity(V1NodeAffinity nodeAffinity) podAffinity(V1PodAffinity podAffinity) podAntiAffinity(V1PodAntiAffinity podAntiAffinity) voidsetNodeAffinity(V1NodeAffinity nodeAffinity) voidsetPodAffinity(V1PodAffinity podAffinity) voidsetPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) toJson()Convert an instance of V1Affinity to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NODE_AFFINITY
- See Also:
-
SERIALIZED_NAME_POD_AFFINITY
- See Also:
-
SERIALIZED_NAME_POD_ANTI_AFFINITY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1Affinity
public V1Affinity()
-
-
Method Details
-
nodeAffinity
-
getNodeAffinity
Get nodeAffinity- Returns:
- nodeAffinity
-
setNodeAffinity
-
podAffinity
-
getPodAffinity
Get podAffinity- Returns:
- podAffinity
-
setPodAffinity
-
podAntiAffinity
-
getPodAntiAffinity
Get podAntiAffinity- Returns:
- podAntiAffinity
-
setPodAntiAffinity
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to V1Affinity
-
fromJson
Create an instance of V1Affinity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1Affinity
- Throws:
IOException- if the JSON string is invalid with respect to V1Affinity
-
toJson
Convert an instance of V1Affinity to an JSON string- Returns:
- JSON string
-