Partilhar via


SBAuthorizationRuleInner Class

public final class SBAuthorizationRuleInner
extends Resource

Description of a namespace authorization rule.

Constructor Summary

Constructor Description
SBAuthorizationRuleInner()

Creates an instance of SBAuthorizationRuleInner class.

Method Summary

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

Reads an instance of SBAuthorizationRuleInner 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.

SBAuthorizationRuleInner withRights(List<AccessRights> rights)

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

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

SBAuthorizationRuleInner

public SBAuthorizationRuleInner()

Creates an instance of SBAuthorizationRuleInner class.

Method Details

fromJson

public static SBAuthorizationRuleInner fromJson(JsonReader jsonReader)

Reads an instance of SBAuthorizationRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SBAuthorizationRuleInner 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:

SBAuthorizationRuleInner.id()

Returns:

the id value.

location

public String location()

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

Overrides:

SBAuthorizationRuleInner.location()

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SBAuthorizationRuleInner.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:

SBAuthorizationRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SBAuthorizationRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withRights

public SBAuthorizationRuleInner withRights(List rights)

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

Parameters:

rights - the rights value to set.

Returns:

the SBAuthorizationRuleInner object itself.

Applies to