Class V1TopologySelectorTerm
java.lang.Object
io.kubernetes.client.openapi.models.V1TopologySelectorTerm
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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 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
-