共用方式為


DataLakeAccessPolicy Class

  • java.lang.Object
    • com.azure.storage.file.datalake.models.DataLakeAccessPolicy

public final class DataLakeAccessPolicy

An Access policy.

Constructor Summary

Constructor Description
DataLakeAccessPolicy()

Method Summary

Modifier and Type Method and Description
OffsetDateTime getExpiresOn()

Get the expiresOn property: the date-time the policy expires.

String getPermissions()

Get the permissions property: the permissions for the acl policy.

OffsetDateTime getStartsOn()

Get the startsOn property: the date-time the policy is active.

DataLakeAccessPolicy setExpiresOn(OffsetDateTime expiresOn)

Set the expiresOn property: the date-time the policy expires.

DataLakeAccessPolicy setPermissions(String permissions)

Set the permissions property: the permissions for the acl policy.

DataLakeAccessPolicy setStartsOn(OffsetDateTime startsOn)

Set the startsOn property: the date-time the policy is active.

Methods inherited from java.lang.Object

Constructor Details

DataLakeAccessPolicy

public DataLakeAccessPolicy()

Method Details

getExpiresOn

public OffsetDateTime getExpiresOn()

Get the expiresOn property: the date-time the policy expires.

Returns:

the expiresOn value.

getPermissions

public String getPermissions()

Get the permissions property: the permissions for the acl policy.

Returns:

the permissions value.

getStartsOn

public OffsetDateTime getStartsOn()

Get the startsOn property: the date-time the policy is active.

Returns:

the startsOn value.

setExpiresOn

public DataLakeAccessPolicy setExpiresOn(OffsetDateTime expiresOn)

Set the expiresOn property: the date-time the policy expires.

Parameters:

expiresOn - the expiresOn value to set.

Returns:

the DataLakeAccessPolicy object itself.

setPermissions

public DataLakeAccessPolicy setPermissions(String permissions)

Set the permissions property: the permissions for the acl policy.

Parameters:

permissions - the permissions value to set.

Returns:

the DataLakeAccessPolicy object itself.

setStartsOn

public DataLakeAccessPolicy setStartsOn(OffsetDateTime startsOn)

Set the startsOn property: the date-time the policy is active.

Parameters:

startsOn - the startsOn value to set.

Returns:

the DataLakeAccessPolicy object itself.

Applies to