Class V1TopologySelectorTerm
java.lang.Object
io.kubernetes.client.openapi.models.V1TopologySelectorTerm
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1TopologySelectorTerm
extends Object
A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMatchLabelExpressionsItem(V1TopologySelectorLabelRequirement matchLabelExpressionsItem) booleanstatic V1TopologySelectorTermCreate an instance of V1TopologySelectorTerm given an JSON stringA list of topology selector requirements by labels.inthashCode()matchLabelExpressions(List<V1TopologySelectorLabelRequirement> matchLabelExpressions) voidsetMatchLabelExpressions(List<V1TopologySelectorLabelRequirement> matchLabelExpressions) toJson()Convert an instance of V1TopologySelectorTerm 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_MATCH_LABEL_EXPRESSIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1TopologySelectorTerm
public V1TopologySelectorTerm()
-
-
Method Details
-
matchLabelExpressions
public V1TopologySelectorTerm matchLabelExpressions(List<V1TopologySelectorLabelRequirement> matchLabelExpressions) -
addMatchLabelExpressionsItem
public V1TopologySelectorTerm addMatchLabelExpressionsItem(V1TopologySelectorLabelRequirement matchLabelExpressionsItem) -
getMatchLabelExpressions
A list of topology selector requirements by labels.- Returns:
- matchLabelExpressions
-
setMatchLabelExpressions
public void setMatchLabelExpressions(List<V1TopologySelectorLabelRequirement> matchLabelExpressions) -
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 V1TopologySelectorTerm
-
fromJson
Create an instance of V1TopologySelectorTerm given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1TopologySelectorTerm
- Throws:
IOException- if the JSON string is invalid with respect to V1TopologySelectorTerm
-
toJson
Convert an instance of V1TopologySelectorTerm to an JSON string- Returns:
- JSON string
-