Partilhar via


AccessControlRulesIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.AccessControlRulesIdentity

Implements

public final class AccessControlRulesIdentity
implements JsonSerializable<AccessControlRulesIdentity>

The properties of an Access Control Rule Identity.

Constructor Summary

Constructor Description
AccessControlRulesIdentity()

Creates an instance of AccessControlRulesIdentity class.

Method Summary

Modifier and Type Method and Description
String exePath()

Get the exePath property: The path to the executable.

static AccessControlRulesIdentity fromJson(JsonReader jsonReader)

Reads an instance of AccessControlRulesIdentity from the JsonReader.

String groupName()

Get the groupName property: The groupName corresponding to this identity.

String name()

Get the name property: The name of the identity.

String processName()

Get the processName property: The process name of the executable.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: The username corresponding to this identity.

void validate()

Validates the instance.

AccessControlRulesIdentity withExePath(String exePath)

Set the exePath property: The path to the executable.

AccessControlRulesIdentity withGroupName(String groupName)

Set the groupName property: The groupName corresponding to this identity.

AccessControlRulesIdentity withName(String name)

Set the name property: The name of the identity.

AccessControlRulesIdentity withProcessName(String processName)

Set the processName property: The process name of the executable.

AccessControlRulesIdentity withUsername(String username)

Set the username property: The username corresponding to this identity.

Methods inherited from java.lang.Object

Constructor Details

AccessControlRulesIdentity

public AccessControlRulesIdentity()

Creates an instance of AccessControlRulesIdentity class.

Method Details

exePath

public String exePath()

Get the exePath property: The path to the executable.

Returns:

the exePath value.

fromJson

public static AccessControlRulesIdentity fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

groupName

public String groupName()

Get the groupName property: The groupName corresponding to this identity.

Returns:

the groupName value.

name

public String name()

Get the name property: The name of the identity.

Returns:

the name value.

processName

public String processName()

Get the processName property: The process name of the executable.

Returns:

the processName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: The username corresponding to this identity.

Returns:

the username value.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

Applies to