AuthorizationRuleInner Class

public final class AuthorizationRuleInner
extends ProxyResource

Single item in a List or Get AuthorizationRule operation.

Constructor Summary

Constructor Description
AuthorizationRuleInner()

Creates an instance of AuthorizationRuleInner class.

Method Summary

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

Reads an instance of AuthorizationRuleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String location()

Get the location property: The geo-location where the resource lives.

String name()

Get the name property: The name of the resource.

List<AccessRights> rights()

Get the rights property: The rights associated with the rule.

SystemData systemData()

Get the systemData property: The system meta data relating to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

AuthorizationRuleInner withRights(List<AccessRights> rights)

Set the rights property: The rights associated with the rule.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

AuthorizationRuleInner

public AuthorizationRuleInner()

Creates an instance of AuthorizationRuleInner class.

Method Details

fromJson

public static AuthorizationRuleInner fromJson(JsonReader jsonReader)

Reads an instance of AuthorizationRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AuthorizationRuleInner 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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

AuthorizationRuleInner.id()

Returns:

the id value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AuthorizationRuleInner.name()

Returns:

the name value.

rights

public List rights()

Get the rights property: The rights associated with the rule.

Returns:

the rights value.

systemData

public SystemData systemData()

Get the systemData property: The system meta data relating to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AuthorizationRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AuthorizationRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withRights

public AuthorizationRuleInner withRights(List rights)

Set the rights property: The rights associated with the rule.

Parameters:

rights - the rights value to set.

Returns:

the AuthorizationRuleInner object itself.

Applies to