RedisCacheAccessPolicyInner Class

public final class RedisCacheAccessPolicyInner
extends ProxyResource

Response to get/put access policy.

Constructor Summary

Constructor Description
RedisCacheAccessPolicyInner()

Creates an instance of RedisCacheAccessPolicyInner class.

Method Summary

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

Reads an instance of RedisCacheAccessPolicyInner 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 permissions()

Get the permissions property: Permissions for the access policy.

AccessPolicyProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of access policy.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

AccessPolicyType typePropertiesType()

Get the type property: Built-In or Custom access policy.

void validate()

Validates the instance.

RedisCacheAccessPolicyInner withPermissions(String permissions)

Set the permissions property: Permissions for the access policy.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

RedisCacheAccessPolicyInner

public RedisCacheAccessPolicyInner()

Creates an instance of RedisCacheAccessPolicyInner class.

Method Details

fromJson

public static RedisCacheAccessPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of RedisCacheAccessPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

RedisCacheAccessPolicyInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RedisCacheAccessPolicyInner.name()

Returns:

the name value.

permissions

public String permissions()

Get the permissions property: Permissions for the access policy. Learn how to configure permissions at https://aka.ms/redis/AADPreRequisites.

Returns:

the permissions value.

provisioningState

public AccessPolicyProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of access policy.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RedisCacheAccessPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RedisCacheAccessPolicyInner.type()

Returns:

the type value.

typePropertiesType

public AccessPolicyType typePropertiesType()

Get the type property: Built-In or Custom access policy.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withPermissions

public RedisCacheAccessPolicyInner withPermissions(String permissions)

Set the permissions property: Permissions for the access policy. Learn how to configure permissions at https://aka.ms/redis/AADPreRequisites.

Parameters:

permissions - the permissions value to set.

Returns:

the RedisCacheAccessPolicyInner object itself.

Applies to