AccessControlRulesPrivilege Class

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

Implements

public final class AccessControlRulesPrivilege
implements JsonSerializable<AccessControlRulesPrivilege>

The properties of an Access Control Rule Privilege.

Constructor Summary

Constructor Description
AccessControlRulesPrivilege()

Creates an instance of AccessControlRulesPrivilege class.

Method Summary

Modifier and Type Method and Description
static AccessControlRulesPrivilege fromJson(JsonReader jsonReader)

Reads an instance of AccessControlRulesPrivilege from the JsonReader.

String name()

Get the name property: The name of the privilege.

String path()

Get the path property: The HTTP path corresponding to the privilege.

Map<String,String> queryParameters()

Get the queryParameters property: The query parameters to match in the path.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AccessControlRulesPrivilege withName(String name)

Set the name property: The name of the privilege.

AccessControlRulesPrivilege withPath(String path)

Set the path property: The HTTP path corresponding to the privilege.

AccessControlRulesPrivilege withQueryParameters(Map<String,String> queryParameters)

Set the queryParameters property: The query parameters to match in the path.

Methods inherited from java.lang.Object

Constructor Details

AccessControlRulesPrivilege

public AccessControlRulesPrivilege()

Creates an instance of AccessControlRulesPrivilege class.

Method Details

fromJson

public static AccessControlRulesPrivilege fromJson(JsonReader jsonReader)

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:

IOException

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

name

public String name()

Get the name property: The name of the privilege.

Returns:

the name value.

path

public String path()

Get the path property: The HTTP path corresponding to the privilege.

Returns:

the path value.

queryParameters

public Map queryParameters()

Get the queryParameters property: The query parameters to match in the path.

Returns:

the queryParameters value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

withQueryParameters

public AccessControlRulesPrivilege withQueryParameters(Map 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.

Applies to