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 Details

    • OverrideModel

      public OverrideModel()
      Creates an instance of OverrideModel class.
  • Method Details

    • kind

      public OverrideKind kind()
      Get the kind property: The override kind.
      Returns:
      the kind value.
    • withKind

      public OverrideModel withKind(OverrideKind kind)
      Set the kind property: The override kind.
      Parameters:
      kind - the kind value to set.
      Returns:
      the OverrideModel object itself.
    • value

      public String value()
      Get the value property: The value to override the policy property.
      Returns:
      the value value.
    • withValue

      public OverrideModel withValue(String value)
      Set the value property: The value to override the policy property.
      Parameters:
      value - the value value to set.
      Returns:
      the OverrideModel object itself.
    • selectors

      public List<Selector> selectors()
      Get the selectors property: The list of the selector expressions.
      Returns:
      the selectors value.
    • withSelectors

      public OverrideModel withSelectors(List<Selector> selectors)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OverrideModel>
      Throws:
      IOException
    • fromJson

      public static OverrideModel fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.