Class TopologySelectorLabelRequirement
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.TopologySelectorLabelRequirement
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class TopologySelectorLabelRequirement extends java.lang.Object implements com.marcnuri.yakc.model.Model
A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TopologySelectorLabelRequirement.Builder
-
Constructor Summary
Constructors Constructor Description TopologySelectorLabelRequirement()
TopologySelectorLabelRequirement(@NonNull java.lang.String key, @NonNull java.util.List<java.lang.String> values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TopologySelectorLabelRequirement.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getKey()
The label key that the selector applies to.@NonNull java.util.List<java.lang.String>
getValues()
An array of string values.int
hashCode()
void
setKey(@NonNull java.lang.String key)
The label key that the selector applies to.void
setValues(@NonNull java.util.List<java.lang.String> values)
An array of string values.TopologySelectorLabelRequirement.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static TopologySelectorLabelRequirement.Builder builder()
-
toBuilder
public TopologySelectorLabelRequirement.Builder toBuilder()
-
getKey
@NonNull public @NonNull java.lang.String getKey()
The label key that the selector applies to.
-
getValues
@NonNull public @NonNull java.util.List<java.lang.String> getValues()
An array of string values. One value must match the label to be selected. Each entry in Values is ORed.
-
setKey
public void setKey(@NonNull @NonNull java.lang.String key)
The label key that the selector applies to.
-
setValues
public void setValues(@NonNull @NonNull java.util.List<java.lang.String> values)
An array of string values. One value must match the label to be selected. Each entry in Values is ORed.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-