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>

public final class BlobContainerInner extends AzureEntityResource
Properties of the blob container, including Id, resource name, resource type, Etag.
  • Constructor Details

    • BlobContainerInner

      public BlobContainerInner()
      Creates an instance of BlobContainerInner class.
  • Method Details

    • etag

      public String etag()
      Get the etag property: Resource Etag.
      Overrides:
      etag in class AzureEntityResource
      Returns:
      the etag value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class AzureEntityResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class AzureEntityResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class AzureEntityResource
      Returns:
      the id value.
    • version

      public String version()
      Get the version property: The version of the deleted blob container.
      Returns:
      the version value.
    • deleted

      public Boolean deleted()
      Get the deleted property: Indicates whether the blob container was deleted.
      Returns:
      the deleted value.
    • deletedTime

      public OffsetDateTime deletedTime()
      Get the deletedTime property: Blob container deletion time.
      Returns:
      the deletedTime value.
    • remainingRetentionDays

      public Integer remainingRetentionDays()
      Get the remainingRetentionDays property: Remaining retention days for soft deleted blob container.
      Returns:
      the remainingRetentionDays value.
    • defaultEncryptionScope

      public String defaultEncryptionScope()
      Get the defaultEncryptionScope property: Default the container to use specified encryption scope for all writes.
      Returns:
      the defaultEncryptionScope value.
    • withDefaultEncryptionScope

      public BlobContainerInner withDefaultEncryptionScope(String defaultEncryptionScope)
      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

      public Boolean denyEncryptionScopeOverride()
      Get the denyEncryptionScopeOverride property: Block override of encryption scope from the container default.
      Returns:
      the denyEncryptionScopeOverride value.
    • withDenyEncryptionScopeOverride

      public BlobContainerInner withDenyEncryptionScopeOverride(Boolean denyEncryptionScopeOverride)
      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

      public PublicAccess 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

      public BlobContainerInner withPublicAccess(PublicAccess publicAccess)
      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

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: Returns the date and time the container was last modified.
      Returns:
      the lastModifiedTime value.
    • leaseStatus

      public LeaseStatus leaseStatus()
      Get the leaseStatus property: The lease status of the container.
      Returns:
      the leaseStatus value.
    • leaseState

      public LeaseState leaseState()
      Get the leaseState property: Lease state of the container.
      Returns:
      the leaseState value.
    • leaseDuration

      public LeaseDuration 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

      public Map<String,String> metadata()
      Get the metadata property: A name-value pair to associate with the container as metadata.
      Returns:
      the metadata value.
    • withMetadata

      public BlobContainerInner withMetadata(Map<String,String> metadata)
      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

      public ImmutabilityPolicyProperties immutabilityPolicy()
      Get the immutabilityPolicy property: The ImmutabilityPolicy property of the container.
      Returns:
      the immutabilityPolicy value.
    • legalHold

      public LegalHoldProperties legalHold()
      Get the legalHold property: The LegalHold property of the container.
      Returns:
      the legalHold value.
    • hasLegalHold

      public Boolean 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

      public Boolean 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

      public ImmutableStorageWithVersioning 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

      public Boolean enableNfsV3RootSquash()
      Get the enableNfsV3RootSquash property: Enable NFSv3 root squash on blob container.
      Returns:
      the enableNfsV3RootSquash value.
    • withEnableNfsV3RootSquash

      public BlobContainerInner withEnableNfsV3RootSquash(Boolean enableNfsV3RootSquash)
      Set the enableNfsV3RootSquash property: Enable NFSv3 root squash on blob container.
      Parameters:
      enableNfsV3RootSquash - the enableNfsV3RootSquash value to set.
      Returns:
      the BlobContainerInner object itself.
    • enableNfsV3AllSquash

      public Boolean enableNfsV3AllSquash()
      Get the enableNfsV3AllSquash property: Enable NFSv3 all squash on blob container.
      Returns:
      the enableNfsV3AllSquash value.
    • withEnableNfsV3AllSquash

      public BlobContainerInner withEnableNfsV3AllSquash(Boolean enableNfsV3AllSquash)
      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:
      validate in class AzureEntityResource
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class AzureEntityResource
      Throws:
      IOException
    • fromJson

      public static BlobContainerInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.