Class V1Affinity
java.lang.Object
io.kubernetes.client.openapi.models.V1Affinity
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
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 TypeMethodDescriptionboolean
static V1Affinity
Create an instance of V1Affinity given an JSON stringGet nodeAffinityGet podAffinityGet podAntiAffinityint
hashCode()
nodeAffinity
(V1NodeAffinity nodeAffinity) podAffinity
(V1PodAffinity podAffinity) podAntiAffinity
(V1PodAntiAffinity podAntiAffinity) void
setNodeAffinity
(V1NodeAffinity nodeAffinity) void
setPodAffinity
(V1PodAffinity podAffinity) void
setPodAntiAffinity
(V1PodAntiAffinity podAntiAffinity) toJson()
Convert an instance of V1Affinity to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object 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
-