Partager via


TableAccessPolicy Class

  • java.lang.Object
    • com.azure.data.tables.models.TableAccessPolicy

public final class TableAccessPolicy

A table's access policy.

Constructor Summary

Constructor Description
TableAccessPolicy()

Creates an instance of TableAccessPolicy.

Method Summary

Modifier and Type Method and Description
OffsetDateTime getExpiresOn()

Get the date-time the policy expires.

String getPermissions()

Get the permissions for the acl policy.

OffsetDateTime getStartsOn()

Get the date-time the policy is active.

TableAccessPolicy setExpiresOn(OffsetDateTime expiresOn)

Set the date-time the policy expires.

TableAccessPolicy setPermissions(String permissions)

Set the permissions for the acl policy.

TableAccessPolicy setStartsOn(OffsetDateTime startsOn)

Set the date-time the policy is active.

Methods inherited from java.lang.Object

Constructor Details

TableAccessPolicy

public TableAccessPolicy()

Creates an instance of TableAccessPolicy.

Method Details

getExpiresOn

public OffsetDateTime getExpiresOn()

Get the date-time the policy expires.

Returns:

The date-time the policy expires.

getPermissions

public String getPermissions()

Get the permissions for the acl policy.

Returns:

The TableAccessPolicy's permissions.

getStartsOn

public OffsetDateTime getStartsOn()

Get the date-time the policy is active.

Returns:

The date-time the policy is active.

setExpiresOn

public TableAccessPolicy setExpiresOn(OffsetDateTime expiresOn)

Set the date-time the policy expires.

Parameters:

expiresOn - The expiresOn value to set.

Returns:

The updated TableAccessPolicy object.

setPermissions

public TableAccessPolicy setPermissions(String permissions)

Set the permissions for the acl policy.

Parameters:

permissions - The permissions to set.

Returns:

The updated TableAccessPolicy object.

setStartsOn

public TableAccessPolicy setStartsOn(OffsetDateTime startsOn)

Set the date-time the policy is active.

Parameters:

startsOn - The startsOn value to set.

Returns:

The updated TableAccessPolicy object.

Applies to