ResourceAccessRule Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. ResourceAccessRule
- com.
Implements
public final class ResourceAccessRule
implements JsonSerializable<ResourceAccessRule>
Resource Access Rule.
Constructor Summary
Constructor | Description |
---|---|
ResourceAccessRule() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
String |
resourceId()
Get the resource |
String |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
withResourceId(String resourceId)
Set the resource |
Resource |
withTenantId(String tenantId)
Set the tenant |
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:
Returns:
Throws:
resourceId
public String resourceId()
Get the resourceId property: Resource Id.
Returns:
tenantId
public String tenantId()
Get the tenantId property: Tenant Id.
Returns:
toJson
validate
public void validate()
Validates the instance.
withResourceId
public ResourceAccessRule withResourceId(String resourceId)
Set the resourceId property: Resource Id.
Parameters:
Returns:
withTenantId
public ResourceAccessRule withTenantId(String tenantId)
Set the tenantId property: Tenant Id.
Parameters:
Returns:
Applies to
Azure SDK for Java