ResourceAccessRule Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.ResourceAccessRule

Implements

public final class ResourceAccessRule
implements JsonSerializable<ResourceAccessRule>

Resource Access Rule.

Constructor Summary

Constructor Description
ResourceAccessRule()

Creates an instance of ResourceAccessRule class.

Method Summary

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

Reads an instance of ResourceAccessRule from the JsonReader.

String resourceId()

Get the resourceId property: Resource Id.

String tenantId()

Get the tenantId property: Tenant Id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceAccessRule withResourceId(String resourceId)

Set the resourceId property: Resource Id.

ResourceAccessRule withTenantId(String tenantId)

Set the tenantId property: Tenant Id.

Methods inherited from java.lang.Object

Constructor Details

ResourceAccessRule

public ResourceAccessRule()

Creates an instance of ResourceAccessRule class.

Method Details

fromJson

public static ResourceAccessRule fromJson(JsonReader jsonReader)

Reads an instance of ResourceAccessRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceAccessRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ResourceAccessRule.

resourceId

public String resourceId()

Get the resourceId property: Resource Id.

Returns:

the resourceId value.

tenantId

public String tenantId()

Get the tenantId property: Tenant Id.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResourceId

public ResourceAccessRule withResourceId(String resourceId)

Set the resourceId property: Resource Id.

Parameters:

resourceId - the resourceId value to set.

Returns:

the ResourceAccessRule object itself.

withTenantId

public ResourceAccessRule withTenantId(String tenantId)

Set the tenantId property: Tenant Id.

Parameters:

tenantId - the tenantId value to set.

Returns:

the ResourceAccessRule object itself.

Applies to