Partager via


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()
String getDefaultEncryptionScope()
String getETag()
OffsetDateTime getLastModified()
LeaseDurationType getLeaseDuration()
LeaseStateType getLeaseState()
LeaseStatusType getLeaseStatus()
Map<String,String> getMetadata()
boolean hasImmutabilityPolicy()
boolean hasLegalHold()
Boolean isEncryptionScopeOverridePrevented()
Boolean isImmutableStorageWithVersioningEnabled()

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()

Returns:

the access type for the container

getDefaultEncryptionScope

public String getDefaultEncryptionScope()

Returns:

the container's default encryption scope

getETag

public String getETag()

Returns:

the eTag of the container

getLastModified

public OffsetDateTime getLastModified()

Returns:

the time the container was last modified

getLeaseDuration

public LeaseDurationType getLeaseDuration()

Returns:

the type of lease on the container

getLeaseState

public LeaseStateType getLeaseState()

Returns:

the lease state of the container

getLeaseStatus

public LeaseStatusType getLeaseStatus()

Returns:

the lease status of the container

getMetadata

public Map getMetadata()

Returns:

the metadata associated with the container

hasImmutabilityPolicy

public boolean hasImmutabilityPolicy()

Returns:

the immutability status for the container

hasLegalHold

public boolean hasLegalHold()

Returns:

the legal hold status for the container

isEncryptionScopeOverridePrevented

public Boolean isEncryptionScopeOverridePrevented()

Returns:

the container's deny encryption scope override property.

isImmutableStorageWithVersioningEnabled

public Boolean isImmutableStorageWithVersioningEnabled()

Returns:

Whether or not immutable storage with versioning is enabled on this container.

Applies to