共用方式為


RedisCacheAccessPolicyAssignmentInner Class

public final class RedisCacheAccessPolicyAssignmentInner
extends ProxyResource

Response to an operation on access policy assignment.

Constructor Summary

Constructor Description
RedisCacheAccessPolicyAssignmentInner()

Creates an instance of RedisCacheAccessPolicyAssignmentInner class.

Method Summary

Modifier and Type Method and Description
String accessPolicyName()

Get the accessPolicyName property: The name of the access policy that is being assigned.

static RedisCacheAccessPolicyAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of RedisCacheAccessPolicyAssignmentInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

String objectId()

Get the objectId property: Object Id to assign access policy to.

String objectIdAlias()

Get the objectIdAlias property: User friendly name for object id.

AccessPolicyAssignmentProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of an access policy assignment set.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

RedisCacheAccessPolicyAssignmentInner withAccessPolicyName(String accessPolicyName)

Set the accessPolicyName property: The name of the access policy that is being assigned.

RedisCacheAccessPolicyAssignmentInner withObjectId(String objectId)

Set the objectId property: Object Id to assign access policy to.

RedisCacheAccessPolicyAssignmentInner withObjectIdAlias(String objectIdAlias)

Set the objectIdAlias property: User friendly name for object id.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

RedisCacheAccessPolicyAssignmentInner

public RedisCacheAccessPolicyAssignmentInner()

Creates an instance of RedisCacheAccessPolicyAssignmentInner class.

Method Details

accessPolicyName

public String accessPolicyName()

Get the accessPolicyName property: The name of the access policy that is being assigned.

Returns:

the accessPolicyName value.

fromJson

public static RedisCacheAccessPolicyAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of RedisCacheAccessPolicyAssignmentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

RedisCacheAccessPolicyAssignmentInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RedisCacheAccessPolicyAssignmentInner.name()

Returns:

the name value.

objectId

public String objectId()

Get the objectId property: Object Id to assign access policy to.

Returns:

the objectId value.

objectIdAlias

public String objectIdAlias()

Get the objectIdAlias property: User friendly name for object id. Also represents username for token based authentication.

Returns:

the objectIdAlias value.

provisioningState

public AccessPolicyAssignmentProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of an access policy assignment set.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RedisCacheAccessPolicyAssignmentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RedisCacheAccessPolicyAssignmentInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAccessPolicyName

public RedisCacheAccessPolicyAssignmentInner withAccessPolicyName(String accessPolicyName)

Set the accessPolicyName property: The name of the access policy that is being assigned.

Parameters:

accessPolicyName - the accessPolicyName value to set.

Returns:

the RedisCacheAccessPolicyAssignmentInner object itself.

withObjectId

public RedisCacheAccessPolicyAssignmentInner withObjectId(String objectId)

Set the objectId property: Object Id to assign access policy to.

Parameters:

objectId - the objectId value to set.

Returns:

the RedisCacheAccessPolicyAssignmentInner object itself.

withObjectIdAlias

public RedisCacheAccessPolicyAssignmentInner withObjectIdAlias(String objectIdAlias)

Set the objectIdAlias property: User friendly name for object id. Also represents username for token based authentication.

Parameters:

objectIdAlias - the objectIdAlias value to set.

Returns:

the RedisCacheAccessPolicyAssignmentInner object itself.

Applies to