Class AccessControlRulesIdentity

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

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

    • AccessControlRulesIdentity

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

    • name

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

      public AccessControlRulesIdentity withName(String name)
      Set the name property: The name of the identity.
      Parameters:
      name - the name value to set.
      Returns:
      the AccessControlRulesIdentity object itself.
    • username

      public String username()
      Get the username property: The username corresponding to this identity.
      Returns:
      the username value.
    • withUsername

      public AccessControlRulesIdentity withUsername(String username)
      Set the username property: The username corresponding to this identity.
      Parameters:
      username - the username value to set.
      Returns:
      the AccessControlRulesIdentity object itself.
    • groupName

      public String groupName()
      Get the groupName property: The groupName corresponding to this identity.
      Returns:
      the groupName value.
    • withGroupName

      public AccessControlRulesIdentity withGroupName(String groupName)
      Set the groupName property: The groupName corresponding to this identity.
      Parameters:
      groupName - the groupName value to set.
      Returns:
      the AccessControlRulesIdentity object itself.
    • exePath

      public String exePath()
      Get the exePath property: The path to the executable.
      Returns:
      the exePath value.
    • withExePath

      public AccessControlRulesIdentity withExePath(String exePath)
      Set the exePath property: The path to the executable.
      Parameters:
      exePath - the exePath value to set.
      Returns:
      the AccessControlRulesIdentity object itself.
    • processName

      public String processName()
      Get the processName property: The process name of the executable.
      Returns:
      the processName value.
    • withProcessName

      public AccessControlRulesIdentity withProcessName(String processName)
      Set the processName property: The process name of the executable.
      Parameters:
      processName - the processName value to set.
      Returns:
      the AccessControlRulesIdentity 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<AccessControlRulesIdentity>
      Throws:
      IOException
    • fromJson

      public static AccessControlRulesIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AccessControlRulesIdentity from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AccessControlRulesIdentity 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 AccessControlRulesIdentity.