Class OverrideModel
java.lang.Object
com.azure.resourcemanager.resources.models.OverrideModel
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OverrideModel>
public final class OverrideModel
extends Object
implements com.azure.json.JsonSerializable<OverrideModel>
The policy property value override.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OverrideModelfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OverrideModel from the JsonReader.kind()Get the kind property: The override kind.Get the selectors property: The list of the selector expressions.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: The value to override the policy property.withKind(OverrideKind kind) Set the kind property: The override kind.withSelectors(List<Selector> selectors) Set the selectors property: The list of the selector expressions.Set the value property: The value to override the policy property.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
-
OverrideModel
public OverrideModel()Creates an instance of OverrideModel class.
-
-
Method Details
-
kind
Get the kind property: The override kind.- Returns:
- the kind value.
-
withKind
Set the kind property: The override kind.- Parameters:
kind- the kind value to set.- Returns:
- the OverrideModel object itself.
-
value
Get the value property: The value to override the policy property.- Returns:
- the value value.
-
withValue
Set the value property: The value to override the policy property.- Parameters:
value- the value value to set.- Returns:
- the OverrideModel object itself.
-
selectors
Get the selectors property: The list of the selector expressions.- Returns:
- the selectors value.
-
withSelectors
Set the selectors property: The list of the selector expressions.- Parameters:
selectors- the selectors value to set.- Returns:
- the OverrideModel 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<OverrideModel>- Throws:
IOException
-
fromJson
Reads an instance of OverrideModel from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OverrideModel 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 OverrideModel.
-