Package com.azure.storage.blob.models
Class BlobContainerProperties
- java.lang.Object
-
- com.azure.storage.blob.models.BlobContainerProperties
-
public final class BlobContainerProperties extends Object
This class contains the response information returned from the service when getting container properties.
-
-
Constructor Summary
Constructors Constructor Description BlobContainerProperties(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicAccessTypegetBlobPublicAccess()StringgetDefaultEncryptionScope()StringgetETag()OffsetDateTimegetLastModified()LeaseDurationTypegetLeaseDuration()LeaseStateTypegetLeaseState()LeaseStatusTypegetLeaseStatus()Map<String,String>getMetadata()booleanhasImmutabilityPolicy()booleanhasLegalHold()BooleanisEncryptionScopeOverridePrevented()BooleanisImmutableStorageWithVersioningEnabled()
-
-
-
Constructor Detail
-
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 overriden
-
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 overridenisImmutableStorageWithVersioningEnabled- Whether or not immutable storage with versioning is enabled on this container.
-
-
Method Detail
-
getMetadata
public Map<String,String> getMetadata()
- Returns:
- the metadata associated with the container
-
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
-
getBlobPublicAccess
public PublicAccessType 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
public String getDefaultEncryptionScope()
- Returns:
- the container's default encryption scope
-
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.
-
-