Class ContainerProperties

java.lang.Object
com.azure.resourcemanager.storage.fluent.models.ContainerProperties

public final class ContainerProperties extends Object
The properties of a container.
  • Constructor Details

    • ContainerProperties

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

    • 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 ContainerProperties 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 ContainerProperties 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 ContainerProperties 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 ContainerProperties 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 ContainerProperties 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 ContainerProperties 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 ContainerProperties 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 ContainerProperties 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 ContainerProperties 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 ContainerProperties object itself.
    • enableNfsV3RootSquash

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

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

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

      public ContainerProperties withEnableNfsV3AllSquash(Boolean enableNfsV3AllSquash)
      Set the enableNfsV3AllSquash property: Enable NFSv3 all squash on blob container.
      Parameters:
      enableNfsV3AllSquash - the enableNfsV3AllSquash value to set.
      Returns:
      the ContainerProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.