Class V1TopologySelectorTerm
java.lang.Object
io.kubernetes.client.openapi.models.V1TopologySelectorTerm
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[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) boolean
static V1TopologySelectorTerm
Create an instance of V1TopologySelectorTerm given an JSON stringA list of topology selector requirements by labels.int
hashCode()
matchLabelExpressions
(List<V1TopologySelectorLabelRequirement> matchLabelExpressions) void
setMatchLabelExpressions
(List<V1TopologySelectorLabelRequirement> matchLabelExpressions) toJson()
Convert an instance of V1TopologySelectorTerm to an JSON stringtoString()
static void
validateJsonElement
(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
-