Class BlobContainerInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.storage.models.AzureEntityResource
com.azure.resourcemanager.storage.fluent.models.BlobContainerInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Properties of the blob container, including Id, resource name, resource type, Etag.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultEncryptionScope property: Default the container to use specified encryption scope for all writes.deleted()Get the deleted property: Indicates whether the blob container was deleted.Get the deletedTime property: Blob container deletion time.Get the denyEncryptionScopeOverride property: Block override of encryption scope from the container default.Get the enableNfsV3AllSquash property: Enable NFSv3 all squash on blob container.Get the enableNfsV3RootSquash property: Enable NFSv3 root squash on blob container.etag()Get the etag property: Resource Etag.static BlobContainerInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BlobContainerInner from the JsonReader.Get the hasImmutabilityPolicy property: The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container.Get the hasLegalHold property: The hasLegalHold public property is set to true by SRP if there are at least one existing tag.id()Get the id property: Fully qualified resource Id for the resource.Get the immutabilityPolicy property: The ImmutabilityPolicy property of the container.Get the immutableStorageWithVersioning property: The object level immutability property of the container.Get the lastModifiedTime property: Returns the date and time the container was last modified.Get the leaseDuration property: Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased.Get the leaseState property: Lease state of the container.Get the leaseStatus property: The lease status of the container.Get the legalHold property: The LegalHold property of the container.metadata()Get the metadata property: A name-value pair to associate with the container as metadata.name()Get the name property: The name of the resource.Get the publicAccess property: Specifies whether data in the container may be accessed publicly and the level of access.Get the remainingRetentionDays property: Remaining retention days for soft deleted blob container.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.version()Get the version property: The version of the deleted blob container.withDefaultEncryptionScope(String defaultEncryptionScope) Set the defaultEncryptionScope property: Default the container to use specified encryption scope for all writes.withDenyEncryptionScopeOverride(Boolean denyEncryptionScopeOverride) Set the denyEncryptionScopeOverride property: Block override of encryption scope from the container default.withEnableNfsV3AllSquash(Boolean enableNfsV3AllSquash) Set the enableNfsV3AllSquash property: Enable NFSv3 all squash on blob container.withEnableNfsV3RootSquash(Boolean enableNfsV3RootSquash) Set the enableNfsV3RootSquash property: Enable NFSv3 root squash on blob container.withImmutableStorageWithVersioning(ImmutableStorageWithVersioning immutableStorageWithVersioning) Set the immutableStorageWithVersioning property: The object level immutability property of the container.withMetadata(Map<String, String> metadata) Set the metadata property: A name-value pair to associate with the container as metadata.withPublicAccess(PublicAccess publicAccess) Set the publicAccess property: Specifies whether data in the container may be accessed publicly and the level of access.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BlobContainerInner
public BlobContainerInner()Creates an instance of BlobContainerInner class.
-
-
Method Details
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classAzureEntityResource- Returns:
- the id value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classAzureEntityResource- Returns:
- the name value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classAzureEntityResource- Returns:
- the type value.
-
etag
Get the etag property: Resource Etag.- Overrides:
etagin classAzureEntityResource- Returns:
- the etag value.
-
version
Get the version property: The version of the deleted blob container.- Returns:
- the version value.
-
deleted
Get the deleted property: Indicates whether the blob container was deleted.- Returns:
- the deleted value.
-
deletedTime
Get the deletedTime property: Blob container deletion time.- Returns:
- the deletedTime value.
-
remainingRetentionDays
Get the remainingRetentionDays property: Remaining retention days for soft deleted blob container.- Returns:
- the remainingRetentionDays value.
-
defaultEncryptionScope
Get the defaultEncryptionScope property: Default the container to use specified encryption scope for all writes.- Returns:
- the defaultEncryptionScope value.
-
withDefaultEncryptionScope
Set the defaultEncryptionScope property: Default the container to use specified encryption scope for all writes.- Parameters:
defaultEncryptionScope- the defaultEncryptionScope value to set.- Returns:
- the BlobContainerInner object itself.
-
denyEncryptionScopeOverride
Get the denyEncryptionScopeOverride property: Block override of encryption scope from the container default.- Returns:
- the denyEncryptionScopeOverride value.
-
withDenyEncryptionScopeOverride
Set the denyEncryptionScopeOverride property: Block override of encryption scope from the container default.- Parameters:
denyEncryptionScopeOverride- the denyEncryptionScopeOverride value to set.- Returns:
- the BlobContainerInner object itself.
-
publicAccess
Get the publicAccess property: Specifies whether data in the container may be accessed publicly and the level of access.- Returns:
- the publicAccess value.
-
withPublicAccess
Set the publicAccess property: Specifies whether data in the container may be accessed publicly and the level of access.- Parameters:
publicAccess- the publicAccess value to set.- Returns:
- the BlobContainerInner object itself.
-
lastModifiedTime
Get the lastModifiedTime property: Returns the date and time the container was last modified.- Returns:
- the lastModifiedTime value.
-
leaseStatus
Get the leaseStatus property: The lease status of the container.- Returns:
- the leaseStatus value.
-
leaseState
Get the leaseState property: Lease state of the container.- Returns:
- the leaseState value.
-
leaseDuration
Get the leaseDuration property: Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased.- Returns:
- the leaseDuration value.
-
metadata
Get the metadata property: A name-value pair to associate with the container as metadata.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: A name-value pair to associate with the container as metadata.- Parameters:
metadata- the metadata value to set.- Returns:
- the BlobContainerInner object itself.
-
immutabilityPolicy
Get the immutabilityPolicy property: The ImmutabilityPolicy property of the container.- Returns:
- the immutabilityPolicy value.
-
legalHold
Get the legalHold property: The LegalHold property of the container.- Returns:
- the legalHold value.
-
hasLegalHold
Get the hasLegalHold property: The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.- Returns:
- the hasLegalHold value.
-
hasImmutabilityPolicy
Get the hasImmutabilityPolicy property: The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container.- Returns:
- the hasImmutabilityPolicy value.
-
immutableStorageWithVersioning
Get the immutableStorageWithVersioning property: The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process.- Returns:
- the immutableStorageWithVersioning value.
-
withImmutableStorageWithVersioning
public BlobContainerInner withImmutableStorageWithVersioning(ImmutableStorageWithVersioning immutableStorageWithVersioning) Set the immutableStorageWithVersioning property: The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process.- Parameters:
immutableStorageWithVersioning- the immutableStorageWithVersioning value to set.- Returns:
- the BlobContainerInner object itself.
-
enableNfsV3RootSquash
Get the enableNfsV3RootSquash property: Enable NFSv3 root squash on blob container.- Returns:
- the enableNfsV3RootSquash value.
-
withEnableNfsV3RootSquash
Set the enableNfsV3RootSquash property: Enable NFSv3 root squash on blob container.- Parameters:
enableNfsV3RootSquash- the enableNfsV3RootSquash value to set.- Returns:
- the BlobContainerInner object itself.
-
enableNfsV3AllSquash
Get the enableNfsV3AllSquash property: Enable NFSv3 all squash on blob container.- Returns:
- the enableNfsV3AllSquash value.
-
withEnableNfsV3AllSquash
Set the enableNfsV3AllSquash property: Enable NFSv3 all squash on blob container.- Parameters:
enableNfsV3AllSquash- the enableNfsV3AllSquash value to set.- Returns:
- the BlobContainerInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAzureEntityResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classAzureEntityResource- Throws:
IOException
-
fromJson
Reads an instance of BlobContainerInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BlobContainerInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BlobContainerInner.
-