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 Summary
ConstructorsConstructorDescriptionCreates an instance of AccessControlRulesIdentity class. -
Method Summary
Modifier and TypeMethodDescriptionexePath()Get the exePath property: The path to the executable.static AccessControlRulesIdentityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AccessControlRulesIdentity from the JsonReader.Get the groupName property: The groupName corresponding to this identity.name()Get the name property: The name of the identity.Get the processName property: The process name of the executable.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) username()Get the username property: The username corresponding to this identity.voidvalidate()Validates the instance.withExePath(String exePath) Set the exePath property: The path to the executable.withGroupName(String groupName) Set the groupName property: The groupName corresponding to this identity.Set the name property: The name of the identity.withProcessName(String processName) Set the processName property: The process name of the executable.withUsername(String username) Set the username property: The username corresponding to this identity.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
-
AccessControlRulesIdentity
public AccessControlRulesIdentity()Creates an instance of AccessControlRulesIdentity class.
-
-
Method Details
-
name
Get the name property: The name of the identity.- Returns:
- the name value.
-
withName
Set the name property: The name of the identity.- Parameters:
name- the name value to set.- Returns:
- the AccessControlRulesIdentity object itself.
-
username
Get the username property: The username corresponding to this identity.- Returns:
- the username value.
-
withUsername
Set the username property: The username corresponding to this identity.- Parameters:
username- the username value to set.- Returns:
- the AccessControlRulesIdentity object itself.
-
groupName
Get the groupName property: The groupName corresponding to this identity.- Returns:
- the groupName value.
-
withGroupName
Set the groupName property: The groupName corresponding to this identity.- Parameters:
groupName- the groupName value to set.- Returns:
- the AccessControlRulesIdentity object itself.
-
exePath
Get the exePath property: The path to the executable.- Returns:
- the exePath value.
-
withExePath
Set the exePath property: The path to the executable.- Parameters:
exePath- the exePath value to set.- Returns:
- the AccessControlRulesIdentity object itself.
-
processName
Get the processName property: The process name of the executable.- Returns:
- the processName value.
-
withProcessName
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
- Specified by:
toJsonin interfacecom.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.
-