Package io.fabric8.kubernetes.api.model
Class ScopedResourceSelectorRequirement
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ScopedResourceSelectorRequirement
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ScopedResourceSelectorRequirementBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ScopedResourceSelectorRequirement extends Object implements io.fabric8.kubernetes.api.builder.Editable<ScopedResourceSelectorRequirementBuilder>, KubernetesResource
A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScopedResourceSelectorRequirement()No args constructor for use in serializationScopedResourceSelectorRequirement(String operator, String scopeName, List<String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScopedResourceSelectorRequirementBuilderedit()Map<String,Object>getAdditionalProperties()StringgetOperator()Represents a scope's relationship to a set of values.StringgetScopeName()The name of the scope that the selector applies to.List<String>getValues()An array of string values.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetOperator(String operator)Represents a scope's relationship to a set of values.voidsetScopeName(String scopeName)The name of the scope that the selector applies to.voidsetValues(List<String> values)An array of string values.ScopedResourceSelectorRequirementBuildertoBuilder()
-
-
-
Method Detail
-
getOperator
public String getOperator()
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
-
setOperator
public void setOperator(String operator)
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
-
getScopeName
public String getScopeName()
The name of the scope that the selector applies to.
-
setScopeName
public void setScopeName(String scopeName)
The name of the scope that the selector applies to.
-
getValues
public List<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.
-
setValues
public void setValues(List<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.
-
edit
public ScopedResourceSelectorRequirementBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ScopedResourceSelectorRequirementBuilder>
-
toBuilder
public ScopedResourceSelectorRequirementBuilder toBuilder()
-
-