StorageDataShareAccessPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. StorageDataShareAccessPolicy
- com.
Implements
public final class StorageDataShareAccessPolicy
implements JsonSerializable<StorageDataShareAccessPolicy>
Policy that specify the permission allowed to a managed identity.
Constructor Summary
| Constructor | Description |
|---|---|
| StorageDataShareAccessPolicy() |
Creates an instance of Storage |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Storage |
fromJson(JsonReader jsonReader)
Reads an instance of Storage |
|
Storage |
permission()
Get the permission property: Allowed permissions. |
| String |
principalId()
Get the principal |
| String |
tenantId()
Get the tenant |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Storage |
withPermission(StorageDataShareAccessPolicyPermission permission)
Set the permission property: Allowed permissions. |
|
Storage |
withPrincipalId(String principalId)
Set the principal |
|
Storage |
withTenantId(String tenantId)
Set the tenant |
Methods inherited from java.lang.Object
Constructor Details
StorageDataShareAccessPolicy
public StorageDataShareAccessPolicy()
Creates an instance of StorageDataShareAccessPolicy class.
Method Details
fromJson
public static StorageDataShareAccessPolicy fromJson(JsonReader jsonReader)
Reads an instance of StorageDataShareAccessPolicy from the JsonReader.
Parameters:
Returns:
Throws:
permission
public StorageDataShareAccessPolicyPermission permission()
Get the permission property: Allowed permissions. Currently, only supported value is Read.
Returns:
principalId
public String principalId()
Get the principalId property: The AAD principal ID of the Managed Identity.
Returns:
tenantId
public String tenantId()
Get the tenantId property: The AAD tenant ID of the Managed Identity.
Returns:
toJson
validate
public void validate()
Validates the instance.
withPermission
public StorageDataShareAccessPolicy withPermission(StorageDataShareAccessPolicyPermission permission)
Set the permission property: Allowed permissions. Currently, only supported value is Read.
Parameters:
Returns:
withPrincipalId
public StorageDataShareAccessPolicy withPrincipalId(String principalId)
Set the principalId property: The AAD principal ID of the Managed Identity.
Parameters:
Returns:
withTenantId
public StorageDataShareAccessPolicy withTenantId(String tenantId)
Set the tenantId property: The AAD tenant ID of the Managed Identity.
Parameters:
Returns: