Class MatchExpressionsProperties
java.lang.Object
com.azure.resourcemanager.extendedlocation.models.MatchExpressionsProperties
Resource Sync Rules matchExpression property definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionkey()
Get the key property: Key is the label key that the selector applies to.operator()
Get the operator property: The Operator field represents a key's relationship to a set of values.void
validate()
Validates the instance.values()
Get the values property: The label value.Set the key property: Key is the label key that the selector applies to.withOperator
(String operator) Set the operator property: The Operator field represents a key's relationship to a set of values.withValues
(List<String> values) Set the values property: The label value.
-
Constructor Details
-
MatchExpressionsProperties
public MatchExpressionsProperties()
-
-
Method Details
-
key
Get the key property: Key is the label key that the selector applies to.- Returns:
- the key value.
-
withKey
Set the key property: Key is the label key that the selector applies to.- Parameters:
key
- the key value to set.- Returns:
- the MatchExpressionsProperties object itself.
-
operator
Get the operator property: The Operator field represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.- Returns:
- the operator value.
-
withOperator
Set the operator property: The Operator field represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.- Parameters:
operator
- the operator value to set.- Returns:
- the MatchExpressionsProperties object itself.
-
values
Get the values property: The label value.- Returns:
- the values value.
-
withValues
Set the values property: The label value.- Parameters:
values
- the values value to set.- Returns:
- the MatchExpressionsProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-