Package com.azure.storage.blob.models
Class BlobContainerProperties
java.lang.Object
com.azure.storage.blob.models.BlobContainerProperties
This class contains the response information returned from the service when getting container properties.
-
Constructor Summary
ConstructorDescriptionBlobContainerProperties
(Map<String, String> metadata, String eTag, OffsetDateTime lastModified, LeaseDurationType leaseDuration, LeaseStateType leaseState, LeaseStatusType leaseStatus, PublicAccessType blobPublicAccess, boolean hasImmutabilityPolicy, boolean hasLegalHold) Constructs aBlobContainerProperties
.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 aBlobContainerProperties
.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 aBlobContainerProperties
. -
Method Summary
-
Constructor Details
-
BlobContainerProperties
public BlobContainerProperties(Map<String, String> metadata, String eTag, OffsetDateTime lastModified, LeaseDurationType leaseDuration, LeaseStateType leaseState, LeaseStatusType leaseStatus, PublicAccessType blobPublicAccess, boolean hasImmutabilityPolicy, boolean hasLegalHold) Constructs aBlobContainerProperties
.- 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<String, String> metadata, String eTag, OffsetDateTime lastModified, LeaseDurationType leaseDuration, LeaseStateType leaseState, LeaseStatusType leaseStatus, PublicAccessType blobPublicAccess, boolean hasImmutabilityPolicy, boolean hasLegalHold, String defaultEncryptionScope, Boolean encryptionScopeOverridePrevented) Constructs aBlobContainerProperties
.- 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<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 aBlobContainerProperties
.- 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 overriddenisImmutableStorageWithVersioningEnabled
- Whether or not immutable storage with versioning is enabled on this container.
-
-
Method Details
-
getMetadata
- Returns:
- the metadata associated with the container
-
getETag
- Returns:
- the eTag of the container
-
getLastModified
- Returns:
- the time the container was last modified
-
getLeaseDuration
- Returns:
- the type of lease on the container
-
getLeaseState
- Returns:
- the lease state of the container
-
getLeaseStatus
- Returns:
- the lease status of the container
-
getBlobPublicAccess
- Returns:
- the access type for 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
-
getDefaultEncryptionScope
- Returns:
- the container's default encryption scope
-
isEncryptionScopeOverridePrevented
- Returns:
- the container's deny encryption scope override property.
-
isImmutableStorageWithVersioningEnabled
- Returns:
- Whether or not immutable storage with versioning is enabled on this container.
-