Class ScopedResourceSelectorRequirement
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.ScopedResourceSelectorRequirement
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ScopedResourceSelectorRequirement extends java.lang.Object implements com.marcnuri.yakc.model.Model
A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScopedResourceSelectorRequirement.Builder
-
Constructor Summary
Constructors Constructor Description ScopedResourceSelectorRequirement()
ScopedResourceSelectorRequirement(@NonNull java.lang.String operator, @NonNull java.lang.String scopeName, java.util.List<java.lang.String> values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScopedResourceSelectorRequirement.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getOperator()
Represents a scope's relationship to a set of values.@NonNull java.lang.String
getScopeName()
The name of the scope that the selector applies to.java.util.List<java.lang.String>
getValues()
An array of string values.int
hashCode()
void
setOperator(@NonNull java.lang.String operator)
Represents a scope's relationship to a set of values.void
setScopeName(@NonNull java.lang.String scopeName)
The name of the scope that the selector applies to.void
setValues(java.util.List<java.lang.String> values)
An array of string values.ScopedResourceSelectorRequirement.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ScopedResourceSelectorRequirement
public ScopedResourceSelectorRequirement(@NonNull @NonNull java.lang.String operator, @NonNull @NonNull java.lang.String scopeName, java.util.List<java.lang.String> values)
-
ScopedResourceSelectorRequirement
public ScopedResourceSelectorRequirement()
-
-
Method Detail
-
builder
public static ScopedResourceSelectorRequirement.Builder builder()
-
toBuilder
public ScopedResourceSelectorRequirement.Builder toBuilder()
-
getOperator
@NonNull public @NonNull java.lang.String getOperator()
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
-
getScopeName
@NonNull public @NonNull java.lang.String getScopeName()
The name of the scope that the selector applies to.
-
getValues
public java.util.List<java.lang.String> getValues()
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
setOperator
public void setOperator(@NonNull @NonNull java.lang.String operator)
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
-
setScopeName
public void setScopeName(@NonNull @NonNull java.lang.String scopeName)
The name of the scope that the selector applies to.
-
setValues
public void setValues(java.util.List<java.lang.String> values)
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
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
-
-