public static class ContainerACL.AccessPolicy extends Object
| Constructor and Description |
|---|
AccessPolicy() |
| Modifier and Type | Method and Description |
|---|---|
Date |
getExpiry()
Gets the expiration time for valid access to a resource using the
access policy.
|
String |
getPermission()
Gets the permissions for operations on resources specified by the
access policy.
|
Date |
getStart()
Gets the start time for valid access to a resource using the access
policy.
|
ContainerACL.AccessPolicy |
setExpiry(Date expiry)
Sets the expiration time for valid access to a resource using the
access policy.
|
ContainerACL.AccessPolicy |
setPermission(String permission)
Sets the permissions for operations on resources specified by the
access policy.
|
ContainerACL.AccessPolicy |
setStart(Date start)
Sets the start time for valid access to a resource using the access
policy.
|
public Date getStart()
null, the start time for any
resource request using the access policy is assumed to be the time
when the Blob service receives the request.Date representing the start time for the access
policy, or null if none is specified.public ContainerACL.AccessPolicy setStart(Date start)
null, the start time for any
resource request using the access policy is assumed to be the time
when the Blob service receives the request.start - A Date representing the start time for the access
policy, or null to leave the time
unspecified.ContainerACL.AccessPolicy instance.public Date getExpiry()
null, any Shared Access
Signature that refers to this access policy must specify the expiry
value.Date representing the expiration time for the
access policy, or null if none is specified.public ContainerACL.AccessPolicy setExpiry(Date expiry)
null, any Shared Access
Signature that refers to this access policy must specify the expiry
value.expiry - A Date representing the expiration time for the
access policy, or null to leave the time
unspecified.ContainerACL.AccessPolicy instance.public String getPermission()
String containing the permissions specified for the
access policy.public ContainerACL.AccessPolicy setPermission(String permission)
permission - A String containing the permissions specified for
the access policy.ContainerACL.AccessPolicy instance./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/