次の方法で共有


BlobContainerProperties Class

  • java.lang.Object
    • com.azure.storage.blob.models.BlobContainerProperties

public final class BlobContainerProperties

This class contains the response information returned from the service when getting container properties.

Constructor Summary

Constructor Description
BlobContainerProperties(Map<String,String> metadata, String eTag, OffsetDateTime lastModified, LeaseDurationType leaseDuration, LeaseStateType leaseState, LeaseStatusType leaseStatus, PublicAccessType blobPublicAccess, boolean hasImmutabilityPolicy, boolean hasLegalHold)

Constructs a BlobContainerProperties.

BlobContainerProperties(Map<String,String> metadata, String eTag, OffsetDateTime lastModified, LeaseDurationType leaseDuration, LeaseStateType leaseState, LeaseStatusType leaseStatus, PublicAccessType blobPublicAccess, boolean hasImmutabilityPolicy, boolean hasLegalHold, String defaultEncryptionScope, Boolean encryptionScopeOverridePrevented)

Constructs a BlobContainerProperties.

BlobContainerProperties(Map<String,String> metadata, String eTag, OffsetDateTime lastModified, LeaseDurationType leaseDuration, LeaseStateType leaseState, LeaseStatusType leaseStatus, PublicAccessType blobPublicAccess, boolean hasImmutabilityPolicy, boolean hasLegalHold, String defaultEncryptionScope, Boolean encryptionScopeOverridePrevented, Boolean isImmutableStorageWithVersioningEnabled)

Constructs a BlobContainerProperties.

Method Summary

Modifier and Type Method and Description
PublicAccessType getBlobPublicAccess()

Gets the access type for the container.

String getDefaultEncryptionScope()

Gets the container's default encryption scope.

String getETag()

Gets the eTag of the container.

OffsetDateTime getLastModified()

Gets the time the container was last modified.

LeaseDurationType getLeaseDuration()

Gets the type of lease on the container.

LeaseStateType getLeaseState()

Gets the lease state of the container.

LeaseStatusType getLeaseStatus()

Gets the lease status of the container.

Map<String,String> getMetadata()

Gets the metadata associated with the container.

boolean hasImmutabilityPolicy()

Gets the immutability status for the container.

boolean hasLegalHold()

Gets the legal hold status for the container.

Boolean isEncryptionScopeOverridePrevented()

Gets the container's deny encryption scope override property.

Boolean isImmutableStorageWithVersioningEnabled()

Gets whether immutable storage with versioning is enabled on this container.

Methods inherited from java.lang.Object

Constructor Details

BlobContainerProperties

public BlobContainerProperties(Map metadata, String eTag, OffsetDateTime lastModified, LeaseDurationType leaseDuration, LeaseStateType leaseState, LeaseStatusType leaseStatus, PublicAccessType blobPublicAccess, boolean hasImmutabilityPolicy, boolean hasLegalHold)

Constructs a BlobContainerProperties.

Parameters:

metadata - Metadata associated with the container.
eTag - ETag of the container.
lastModified - Datetime when the container was last modified.
leaseDuration - Type of the lease on the container.
leaseState - State of the lease on the container.
leaseStatus - Status of the lease on the container.
blobPublicAccess - Public access status for the container.
hasImmutabilityPolicy - Flag indicating if the container has an immutability policy set on it.
hasLegalHold - Flag indicating if the container has a legal hold.

BlobContainerProperties

public BlobContainerProperties(Map metadata, String eTag, OffsetDateTime lastModified, LeaseDurationType leaseDuration, LeaseStateType leaseState, LeaseStatusType leaseStatus, PublicAccessType blobPublicAccess, boolean hasImmutabilityPolicy, boolean hasLegalHold, String defaultEncryptionScope, Boolean encryptionScopeOverridePrevented)

Constructs a BlobContainerProperties.

Parameters:

metadata - Metadata associated with the container.
eTag - ETag of the container.
lastModified - Datetime when the container was last modified.
leaseDuration - Type of the lease on the container.
leaseState - State of the lease on the container.
leaseStatus - Status of the lease on the container.
blobPublicAccess - Public access status for the container.
hasImmutabilityPolicy - Flag indicating if the container has an immutability policy set on it.
hasLegalHold - Flag indicating if the container has a legal hold.
defaultEncryptionScope - The container's default encryption scope to encrypt blobs with.
encryptionScopeOverridePrevented - Whether or not a container's default encryption scope can be overridden

BlobContainerProperties

public BlobContainerProperties(Map metadata, String eTag, OffsetDateTime lastModified, LeaseDurationType leaseDuration, LeaseStateType leaseState, LeaseStatusType leaseStatus, PublicAccessType blobPublicAccess, boolean hasImmutabilityPolicy, boolean hasLegalHold, String defaultEncryptionScope, Boolean encryptionScopeOverridePrevented, Boolean isImmutableStorageWithVersioningEnabled)

Constructs a BlobContainerProperties.

Parameters:

metadata - Metadata associated with the container.
eTag - ETag of the container.
lastModified - Datetime when the container was last modified.
leaseDuration - Type of the lease on the container.
leaseState - State of the lease on the container.
leaseStatus - Status of the lease on the container.
blobPublicAccess - Public access status for the container.
hasImmutabilityPolicy - Flag indicating if the container has an immutability policy set on it.
hasLegalHold - Flag indicating if the container has a legal hold.
defaultEncryptionScope - The container's default encryption scope to encrypt blobs with.
encryptionScopeOverridePrevented - Whether or not a container's default encryption scope can be overridden
isImmutableStorageWithVersioningEnabled - Whether or not immutable storage with versioning is enabled on this container.

Method Details

getBlobPublicAccess

public PublicAccessType getBlobPublicAccess()

Gets the access type for the container.

Returns:

the access type for the container

getDefaultEncryptionScope

public String getDefaultEncryptionScope()

Gets the container's default encryption scope.

Returns:

the container's default encryption scope

getETag

public String getETag()

Gets the eTag of the container.

Returns:

the eTag of the container

getLastModified

public OffsetDateTime getLastModified()

Gets the time the container was last modified.

Returns:

the time the container was last modified

getLeaseDuration

public LeaseDurationType getLeaseDuration()

Gets the type of lease on the container.

Returns:

the type of lease on the container

getLeaseState

public LeaseStateType getLeaseState()

Gets the lease state of the container.

Returns:

the lease state of the container

getLeaseStatus

public LeaseStatusType getLeaseStatus()

Gets the lease status of the container.

Returns:

the lease status of the container

getMetadata

public Map getMetadata()

Gets the metadata associated with the container.

Returns:

the metadata associated with the container

hasImmutabilityPolicy

public boolean hasImmutabilityPolicy()

Gets the immutability status for the container.

Returns:

the immutability status for the container

hasLegalHold

public boolean hasLegalHold()

Gets the legal hold status for the container.

Returns:

the legal hold status for the container

isEncryptionScopeOverridePrevented

public Boolean isEncryptionScopeOverridePrevented()

Gets the container's deny encryption scope override property.

Returns:

the container's deny encryption scope override property.

isImmutableStorageWithVersioningEnabled

public Boolean isImmutableStorageWithVersioningEnabled()

Gets whether immutable storage with versioning is enabled on this container.

Returns:

Whether immutable storage with versioning is enabled on this container.

Applies to