Class V1WeightedPodAffinityTerm
java.lang.Object
io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[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 TypeMethodDescriptionbooleanstatic V1WeightedPodAffinityTermCreate an instance of V1WeightedPodAffinityTerm given an JSON stringGet podAffinityTermweight associated with matching the corresponding podAffinityTerm, in the range 1-100.inthashCode()podAffinityTerm(V1PodAffinityTerm podAffinityTerm) voidsetPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) voidtoJson()Convert an instance of V1WeightedPodAffinityTerm to an JSON stringtoString()static voidvalidateJsonObject(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
-