Class V1WeightedPodAffinityTerm
java.lang.Object
io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1WeightedPodAffinityTerm
extends Object
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1WeightedPodAffinityTerm
Create an instance of V1WeightedPodAffinityTerm given an JSON stringGet podAffinityTermweight associated with matching the corresponding podAffinityTerm, in the range 1-100.int
hashCode()
podAffinityTerm
(V1PodAffinityTerm podAffinityTerm) void
setPodAffinityTerm
(V1PodAffinityTerm podAffinityTerm) void
toJson()
Convert an instance of V1WeightedPodAffinityTerm 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_POD_AFFINITY_TERM
- See Also:
-
SERIALIZED_NAME_WEIGHT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1WeightedPodAffinityTerm
public V1WeightedPodAffinityTerm()
-
-
Method Details
-
podAffinityTerm
-
getPodAffinityTerm
Get podAffinityTerm- Returns:
- podAffinityTerm
-
setPodAffinityTerm
-
weight
-
getWeight
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.- Returns:
- weight
-
setWeight
-
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 V1WeightedPodAffinityTerm
-
fromJson
Create an instance of V1WeightedPodAffinityTerm given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1WeightedPodAffinityTerm
- Throws:
IOException
- if the JSON string is invalid with respect to V1WeightedPodAffinityTerm
-
toJson
Convert an instance of V1WeightedPodAffinityTerm to an JSON string- Returns:
- JSON string
-