Class ResourceSyncRulePropertiesSelector
java.lang.Object
com.azure.resourcemanager.extendedlocation.models.ResourceSyncRulePropertiesSelector
A label selector is composed of two parts, matchLabels and matchExpressions. The first part, matchLabels is a map of
{key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose
key field is 'key', the operator is 'In', and the values array contains only 'value'. The second part,
matchExpressions is a list of resource selector requirements. Valid operators include In, NotIn, Exists, and
DoesNotExist. The values set must be non-empty in the case of In and NotIn. The values set must be empty in the case
of Exists and DoesNotExist. All of the requirements, from both matchLabels and matchExpressions must all be satisfied
in order to match.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the matchExpressions property: MatchExpressions is a list of resource selector requirements.Get the matchLabels property: MatchLabels is a map of {key,value} pairs.void
validate()
Validates the instance.withMatchExpressions
(List<MatchExpressionsProperties> matchExpressions) Set the matchExpressions property: MatchExpressions is a list of resource selector requirements.withMatchLabels
(Map<String, String> matchLabels) Set the matchLabels property: MatchLabels is a map of {key,value} pairs.
-
Constructor Details
-
ResourceSyncRulePropertiesSelector
public ResourceSyncRulePropertiesSelector()
-
-
Method Details
-
matchExpressions
Get the matchExpressions property: MatchExpressions is a list of resource selector requirements. Valid operators include In, NotIn, Exists, and DoesNotExist. The values set must be non-empty in the case of In and NotIn. The values set must be empty in the case of Exists and DoesNotExist.- Returns:
- the matchExpressions value.
-
withMatchExpressions
public ResourceSyncRulePropertiesSelector withMatchExpressions(List<MatchExpressionsProperties> matchExpressions) Set the matchExpressions property: MatchExpressions is a list of resource selector requirements. Valid operators include In, NotIn, Exists, and DoesNotExist. The values set must be non-empty in the case of In and NotIn. The values set must be empty in the case of Exists and DoesNotExist.- Parameters:
matchExpressions
- the matchExpressions value to set.- Returns:
- the ResourceSyncRulePropertiesSelector object itself.
-
matchLabels
Get the matchLabels property: MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is 'key', the operator is 'In', and the values array contains only 'value'.- Returns:
- the matchLabels value.
-
withMatchLabels
Set the matchLabels property: MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is 'key', the operator is 'In', and the values array contains only 'value'.- Parameters:
matchLabels
- the matchLabels value to set.- Returns:
- the ResourceSyncRulePropertiesSelector object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-