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
ConstructorsConstructorDescriptionBlobContainerProperties
(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
Modifier and TypeMethodDescriptionGets the access type for the container.Gets the container's default encryption scope.getETag()
Gets the eTag of the container.Gets the time the container was last modified.Gets the type of lease on the container.Gets the lease state of the container.Gets the lease status of the container.Gets the metadata associated with the container.boolean
Gets the immutability status for the container.boolean
Gets the legal hold status for the container.Gets the container's deny encryption scope override property.Gets whether immutable storage with versioning is enabled on this container.
-
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
Gets the metadata associated with the container.- Returns:
- the metadata associated with the container
-
getETag
Gets the eTag of the container.- Returns:
- the eTag of the container
-
getLastModified
Gets the time the container was last modified.- Returns:
- the time the container was last modified
-
getLeaseDuration
Gets the type of lease on the container.- Returns:
- the type of lease on the container
-
getLeaseState
Gets the lease state of the container.- Returns:
- the lease state of the container
-
getLeaseStatus
Gets the lease status of the container.- Returns:
- the lease status of the container
-
getBlobPublicAccess
Gets the access type for the container.- Returns:
- the access type for 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
-
getDefaultEncryptionScope
Gets the container's default encryption scope.- Returns:
- the container's default encryption scope
-
isEncryptionScopeOverridePrevented
Gets the container's deny encryption scope override property.- Returns:
- the container's deny encryption scope override property.
-
isImmutableStorageWithVersioningEnabled
Gets whether immutable storage with versioning is enabled on this container.- Returns:
- Whether immutable storage with versioning is enabled on this container.
-