Class PolicyAssignmentUpdateProperties
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.PolicyAssignmentUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyAssignmentUpdateProperties>
public final class PolicyAssignmentUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<PolicyAssignmentUpdateProperties>
The policy assignment properties for Patch request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PolicyAssignmentUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PolicyAssignmentUpdateProperties from the JsonReader.Get the overrides property: The policy property value override.Get the resourceSelectors property: The resource selector list to filter policies by resource properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withOverrides(List<OverrideModel> overrides) Set the overrides property: The policy property value override.withResourceSelectors(List<ResourceSelector> resourceSelectors) Set the resourceSelectors property: The resource selector list to filter policies by resource properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PolicyAssignmentUpdateProperties
public PolicyAssignmentUpdateProperties()Creates an instance of PolicyAssignmentUpdateProperties class.
-
-
Method Details
-
resourceSelectors
Get the resourceSelectors property: The resource selector list to filter policies by resource properties.- Returns:
- the resourceSelectors value.
-
withResourceSelectors
public PolicyAssignmentUpdateProperties withResourceSelectors(List<ResourceSelector> resourceSelectors) Set the resourceSelectors property: The resource selector list to filter policies by resource properties.- Parameters:
resourceSelectors- the resourceSelectors value to set.- Returns:
- the PolicyAssignmentUpdateProperties object itself.
-
overrides
Get the overrides property: The policy property value override.- Returns:
- the overrides value.
-
withOverrides
Set the overrides property: The policy property value override.- Parameters:
overrides- the overrides value to set.- Returns:
- the PolicyAssignmentUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PolicyAssignmentUpdateProperties>- Throws:
IOException
-
fromJson
public static PolicyAssignmentUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PolicyAssignmentUpdateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PolicyAssignmentUpdateProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the PolicyAssignmentUpdateProperties.
-