Class StorageAccountUpdateParameters


  • public final class StorageAccountUpdateParameters
    extends Object
    The parameters that can be provided when updating the storage account properties.
    • Constructor Detail

      • StorageAccountUpdateParameters

        public StorageAccountUpdateParameters()
    • Method Detail

      • sku

        public Sku sku()
        Get the sku property: Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those SKU names be updated to any other value.
        Returns:
        the sku value.
      • withSku

        public StorageAccountUpdateParameters withSku​(Sku sku)
        Set the sku property: Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those SKU names be updated to any other value.
        Parameters:
        sku - the sku value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • tags

        public Map<String,​String> tags()
        Get the tags property: Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
        Returns:
        the tags value.
      • withTags

        public StorageAccountUpdateParameters withTags​(Map<String,​String> tags)
        Set the tags property: Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
        Parameters:
        tags - the tags value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • identity

        public Identity identity()
        Get the identity property: The identity of the resource.
        Returns:
        the identity value.
      • withIdentity

        public StorageAccountUpdateParameters withIdentity​(Identity identity)
        Set the identity property: The identity of the resource.
        Parameters:
        identity - the identity value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • kind

        public Kind kind()
        Get the kind property: Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server.
        Returns:
        the kind value.
      • withKind

        public StorageAccountUpdateParameters withKind​(Kind kind)
        Set the kind property: Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server.
        Parameters:
        kind - the kind value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • customDomain

        public CustomDomain customDomain()
        Get the customDomain property: Custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property.
        Returns:
        the customDomain value.
      • withCustomDomain

        public StorageAccountUpdateParameters withCustomDomain​(CustomDomain customDomain)
        Set the customDomain property: Custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property.
        Parameters:
        customDomain - the customDomain value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • encryption

        public Encryption encryption()
        Get the encryption property: Provides the encryption settings on the account. The default setting is unencrypted.
        Returns:
        the encryption value.
      • withEncryption

        public StorageAccountUpdateParameters withEncryption​(Encryption encryption)
        Set the encryption property: Provides the encryption settings on the account. The default setting is unencrypted.
        Parameters:
        encryption - the encryption value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • sasPolicy

        public SasPolicy sasPolicy()
        Get the sasPolicy property: SasPolicy assigned to the storage account.
        Returns:
        the sasPolicy value.
      • withSasPolicy

        public StorageAccountUpdateParameters withSasPolicy​(SasPolicy sasPolicy)
        Set the sasPolicy property: SasPolicy assigned to the storage account.
        Parameters:
        sasPolicy - the sasPolicy value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • keyPolicy

        public KeyPolicy keyPolicy()
        Get the keyPolicy property: KeyPolicy assigned to the storage account.
        Returns:
        the keyPolicy value.
      • withKeyPolicy

        public StorageAccountUpdateParameters withKeyPolicy​(KeyPolicy keyPolicy)
        Set the keyPolicy property: KeyPolicy assigned to the storage account.
        Parameters:
        keyPolicy - the keyPolicy value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • accessTier

        public AccessTier accessTier()
        Get the accessTier property: Required for storage accounts where kind = BlobStorage. The access tier used for billing.
        Returns:
        the accessTier value.
      • withAccessTier

        public StorageAccountUpdateParameters withAccessTier​(AccessTier accessTier)
        Set the accessTier property: Required for storage accounts where kind = BlobStorage. The access tier used for billing.
        Parameters:
        accessTier - the accessTier value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • azureFilesIdentityBasedAuthentication

        public AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication()
        Get the azureFilesIdentityBasedAuthentication property: Provides the identity based authentication settings for Azure Files.
        Returns:
        the azureFilesIdentityBasedAuthentication value.
      • withAzureFilesIdentityBasedAuthentication

        public StorageAccountUpdateParameters withAzureFilesIdentityBasedAuthentication​(AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication)
        Set the azureFilesIdentityBasedAuthentication property: Provides the identity based authentication settings for Azure Files.
        Parameters:
        azureFilesIdentityBasedAuthentication - the azureFilesIdentityBasedAuthentication value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • enableHttpsTrafficOnly

        public Boolean enableHttpsTrafficOnly()
        Get the enableHttpsTrafficOnly property: Allows https traffic only to storage service if sets to true.
        Returns:
        the enableHttpsTrafficOnly value.
      • withEnableHttpsTrafficOnly

        public StorageAccountUpdateParameters withEnableHttpsTrafficOnly​(Boolean enableHttpsTrafficOnly)
        Set the enableHttpsTrafficOnly property: Allows https traffic only to storage service if sets to true.
        Parameters:
        enableHttpsTrafficOnly - the enableHttpsTrafficOnly value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • networkRuleSet

        public NetworkRuleSet networkRuleSet()
        Get the networkRuleSet property: Network rule set.
        Returns:
        the networkRuleSet value.
      • withNetworkRuleSet

        public StorageAccountUpdateParameters withNetworkRuleSet​(NetworkRuleSet networkRuleSet)
        Set the networkRuleSet property: Network rule set.
        Parameters:
        networkRuleSet - the networkRuleSet value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • largeFileSharesState

        public LargeFileSharesState largeFileSharesState()
        Get the largeFileSharesState property: Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled.
        Returns:
        the largeFileSharesState value.
      • withLargeFileSharesState

        public StorageAccountUpdateParameters withLargeFileSharesState​(LargeFileSharesState largeFileSharesState)
        Set the largeFileSharesState property: Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled.
        Parameters:
        largeFileSharesState - the largeFileSharesState value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • routingPreference

        public RoutingPreference routingPreference()
        Get the routingPreference property: Maintains information about the network routing choice opted by the user for data transfer.
        Returns:
        the routingPreference value.
      • withRoutingPreference

        public StorageAccountUpdateParameters withRoutingPreference​(RoutingPreference routingPreference)
        Set the routingPreference property: Maintains information about the network routing choice opted by the user for data transfer.
        Parameters:
        routingPreference - the routingPreference value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • allowBlobPublicAccess

        public Boolean allowBlobPublicAccess()
        Get the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property.
        Returns:
        the allowBlobPublicAccess value.
      • withAllowBlobPublicAccess

        public StorageAccountUpdateParameters withAllowBlobPublicAccess​(Boolean allowBlobPublicAccess)
        Set the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property.
        Parameters:
        allowBlobPublicAccess - the allowBlobPublicAccess value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • minimumTlsVersion

        public MinimumTlsVersion minimumTlsVersion()
        Get the minimumTlsVersion property: Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property.
        Returns:
        the minimumTlsVersion value.
      • withMinimumTlsVersion

        public StorageAccountUpdateParameters withMinimumTlsVersion​(MinimumTlsVersion minimumTlsVersion)
        Set the minimumTlsVersion property: Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property.
        Parameters:
        minimumTlsVersion - the minimumTlsVersion value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • allowSharedKeyAccess

        public Boolean allowSharedKeyAccess()
        Get the allowSharedKeyAccess property: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.
        Returns:
        the allowSharedKeyAccess value.
      • withAllowSharedKeyAccess

        public StorageAccountUpdateParameters withAllowSharedKeyAccess​(Boolean allowSharedKeyAccess)
        Set the allowSharedKeyAccess property: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.
        Parameters:
        allowSharedKeyAccess - the allowSharedKeyAccess value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • allowCrossTenantReplication

        public Boolean allowCrossTenantReplication()
        Get the allowCrossTenantReplication property: Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property.
        Returns:
        the allowCrossTenantReplication value.
      • withAllowCrossTenantReplication

        public StorageAccountUpdateParameters withAllowCrossTenantReplication​(Boolean allowCrossTenantReplication)
        Set the allowCrossTenantReplication property: Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property.
        Parameters:
        allowCrossTenantReplication - the allowCrossTenantReplication value to set.
        Returns:
        the StorageAccountUpdateParameters object itself.
      • validate

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