ResourceSelector Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. ResourceSelector
- com.
Implements
public final class ResourceSelector
implements JsonSerializable<ResourceSelector>
The resource selector to filter policies by resource properties.
Constructor Summary
Constructor | Description |
---|---|
ResourceSelector() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
String |
name()
Get the name property: The name of the resource selector. |
List<Selector> |
selectors()
Get the selectors property: The list of the selector expressions. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
withName(String name)
Set the name property: The name of the resource selector. |
Resource |
withSelectors(List<Selector> selectors)
Set the selectors property: The list of the selector expressions. |
Methods inherited from java.lang.Object
Constructor Details
ResourceSelector
public ResourceSelector()
Creates an instance of ResourceSelector class.
Method Details
fromJson
public static ResourceSelector fromJson(JsonReader jsonReader)
Reads an instance of ResourceSelector from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the resource selector.
Returns:
selectors
public List
Get the selectors property: The list of the selector expressions.
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public ResourceSelector withName(String name)
Set the name property: The name of the resource selector.
Parameters:
Returns:
withSelectors
public ResourceSelector withSelectors(List
Set the selectors property: The list of the selector expressions.
Parameters:
Returns:
Applies to
Azure SDK for Java