Class AccessControlRulesPrivilege

java.lang.Object
com.azure.resourcemanager.compute.models.AccessControlRulesPrivilege
All Implemented Interfaces:
com.azure.json.JsonSerializable<AccessControlRulesPrivilege>

public final class AccessControlRulesPrivilege extends Object implements com.azure.json.JsonSerializable<AccessControlRulesPrivilege>
The properties of an Access Control Rule Privilege.
  • Constructor Details

    • AccessControlRulesPrivilege

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

    • name

      public String name()
      Get the name property: The name of the privilege.
      Returns:
      the name value.
    • withName

      public AccessControlRulesPrivilege withName(String name)
      Set the name property: The name of the privilege.
      Parameters:
      name - the name value to set.
      Returns:
      the AccessControlRulesPrivilege object itself.
    • path

      public String path()
      Get the path property: The HTTP path corresponding to the privilege.
      Returns:
      the path value.
    • withPath

      public AccessControlRulesPrivilege withPath(String path)
      Set the path property: The HTTP path corresponding to the privilege.
      Parameters:
      path - the path value to set.
      Returns:
      the AccessControlRulesPrivilege object itself.
    • queryParameters

      public Map<String,String> queryParameters()
      Get the queryParameters property: The query parameters to match in the path.
      Returns:
      the queryParameters value.
    • withQueryParameters

      public AccessControlRulesPrivilege withQueryParameters(Map<String,String> queryParameters)
      Set the queryParameters property: The query parameters to match in the path.
      Parameters:
      queryParameters - the queryParameters value to set.
      Returns:
      the AccessControlRulesPrivilege 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<AccessControlRulesPrivilege>
      Throws:
      IOException
    • fromJson

      public static AccessControlRulesPrivilege fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AccessControlRulesPrivilege from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AccessControlRulesPrivilege if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the AccessControlRulesPrivilege.