SharedAccessAccountPolicy Class
- java.
lang. Object - SharedAccessPolicy
- com.
microsoft. azure. storage. SharedAccessAccountPolicy
- com.
public class SharedAccessAccountPolicy extends SharedAccessPolicy
Represents a shared access policy, which specifies the start time, expiry time, and permissions for a shared access signature.
Method Summary
Modifier and Type | Method and Description |
---|---|
EnumSet<Shared |
getPermissions()
Gets the permissions for a shared access signature associated with this shared access policy. |
Shared |
getProtocols()
Gets the allowed protocols for a shared access signature associated with this shared access policy. |
IPRange |
getRange()
Gets the allowed IP addresses for a shared access signature associated with this shared access policy. |
EnumSet<Shared |
getResourceTypes()
Gets the resource type for a shared access signature associated with this shared access policy. |
EnumSet<Shared |
getServices()
Gets the services (blob, file, queue, table) for a shared access signature associated with this shared access policy. |
String |
permissionsToString()
Converts this shared access policy's permissions to a . |
String |
resourceTypesToString()
Converts this shared access policy's resource types to a . |
String |
servicesToString()
Converts this shared access policy's services to a . |
void |
setPermissions(EnumSet<SharedAccessAccountPermissions> permissions)
Sets the permissions for a shared access signature associated with this shared access policy. |
void |
setPermissionsFromString(final String value)
Sets shared access permissions using the specified permissions . |
void |
setProtocols(SharedAccessProtocols protocols)
Sets the allowed protocols for a shared access signature associated with this shared access policy. |
void |
setRange(IPRange range)
Sets the allowed IP addresses for a shared access signature associated with this shared access policy. |
void |
setResourceTypeFromString(final String value)
Sets shared access resource types using the specified resource types . |
void |
setResourceTypes(EnumSet<SharedAccessAccountResourceType> resourceTypes)
Sets the resource type for a shared access signature associated with this shared access policy. |
void |
setServiceFromString(final String value)
Sets shared access services using the specified services . |
void |
setServices(EnumSet<SharedAccessAccountService> services)
Sets the services (blob, file, queue, table) for a shared access signature associated with this shared access policy. |
Inherited Members
Method Details
getPermissions
public EnumSet
Gets the permissions for a shared access signature associated with this shared access policy.
Returns:
getProtocols
public SharedAccessProtocols getProtocols()
Gets the allowed protocols for a shared access signature associated with this shared access policy.
Returns:
getRange
public IPRange getRange()
Gets the allowed IP addresses for a shared access signature associated with this shared access policy.
Returns:
getResourceTypes
public EnumSet
Gets the resource type for a shared access signature associated with this shared access policy.
Returns:
getServices
public EnumSet
Gets the services (blob, file, queue, table) for a shared access signature associated with this shared access policy.
Returns:
permissionsToString
public String permissionsToString()
Converts this shared access policy's permissions to a .
Returns:
String
which represents the shared access permissions.resourceTypesToString
public String resourceTypesToString()
Converts this shared access policy's resource types to a .
Returns:
String
which represents the shared access permissions.servicesToString
public String servicesToString()
Converts this shared access policy's services to a .
Returns:
String
which represents the shared access permissions.setPermissions
public void setPermissions(EnumSet
Sets the permissions for a shared access signature associated with this shared access policy.
Parameters:
setPermissionsFromString
public void setPermissionsFromString(final String value)
Sets shared access permissions using the specified permissions .
Parameters:
String
which represents the shared access permissions.
setProtocols
public void setProtocols(SharedAccessProtocols protocols)
Sets the allowed protocols for a shared access signature associated with this shared access policy.
Parameters:
setRange
public void setRange(IPRange range)
Sets the allowed IP addresses for a shared access signature associated with this shared access policy.
Parameters:
setResourceTypeFromString
public void setResourceTypeFromString(final String value)
Sets shared access resource types using the specified resource types .
Parameters:
String
which represents the shared access resource types.
setResourceTypes
public void setResourceTypes(EnumSet
Sets the resource type for a shared access signature associated with this shared access policy.
Parameters:
setServiceFromString
public void setServiceFromString(final String value)
Sets shared access services using the specified services .
Parameters:
String
which represents the shared access services.
setServices
public void setServices(EnumSet
Sets the services (blob, file, queue, table) for a shared access signature associated with this shared access policy.
Parameters: