public enum BlobContainerPublicAccessType extends Enum<BlobContainerPublicAccessType>
The public access setting indicates whether the container and its blobs can be read via an anonymous request.
The BlobContainerPublicAccessType
enumeration provides three levels of anonymous read access:
OFF
, which prevents anonymous access.BLOB
, which permits anonymous read access to blob resources, but not to
container metadata or to the list of blobs in the container.CONTAINER
, which permits anonymous read access to blob resources, container
metadata, and the list of blobs in the container.Enum Constant and Description |
---|
BLOB
Specifies blob-level public access.
|
CONTAINER
Specifies container-level public access.
|
OFF
Specifies no public access.
|
UNKNOWN
Specifies that the public access type is unknown.
|
Modifier and Type | Method and Description |
---|---|
static BlobContainerPublicAccessType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlobContainerPublicAccessType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlobContainerPublicAccessType BLOB
public static final BlobContainerPublicAccessType CONTAINER
public static final BlobContainerPublicAccessType OFF
public static final BlobContainerPublicAccessType UNKNOWN
public static BlobContainerPublicAccessType[] values()
for (BlobContainerPublicAccessType c : BlobContainerPublicAccessType.values()) System.out.println(c);
public static BlobContainerPublicAccessType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is null/**
* 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.
*/