Class StorageAccountUpdateParameters
java.lang.Object
com.azure.resourcemanager.storage.models.StorageAccountUpdateParameters
The parameters that can be provided when updating the storage account properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of StorageAccountUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accessTier property: Required for storage accounts where kind = BlobStorage.Get the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage account.Get the allowCrossTenantReplication property: Allow or disallow cross AAD tenant object replication.Get the allowedCopyScope property: Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet.Get the allowSharedKeyAccess property: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key.Get the azureFilesIdentityBasedAuthentication property: Provides the identity based authentication settings for Azure Files.Get the customDomain property: Custom domain assigned to the storage account by the user.Get the defaultToOAuthAuthentication property: A boolean flag which indicates whether the default authentication is OAuth or not.Get the dnsEndpointType property: Allows you to specify the type of endpoint.Get the enableHttpsTrafficOnly property: Allows https traffic only to storage service if sets to true.Get the encryption property: Not applicable.identity()Get the identity property: The identity of the resource.Get the immutableStorageWithVersioning property: The property is immutable and can only be set to true at the account creation time.Get the isLocalUserEnabled property: Enables local users feature, if set to true.Get the isSftpEnabled property: Enables Secure File Transfer Protocol, if set to true.Get the keyPolicy property: KeyPolicy assigned to the storage account.kind()Get the kind property: Optional.Get the largeFileSharesState property: Allow large file shares if sets to Enabled.Get the minimumTlsVersion property: Set the minimum TLS version to be permitted on requests to storage.Get the networkRuleSet property: Network rule set.Get the publicNetworkAccess property: Allow or disallow public network access to Storage Account.Get the routingPreference property: Maintains information about the network routing choice opted by the user for data transfer.Get the sasPolicy property: SasPolicy assigned to the storage account.sku()Get the sku property: Gets or sets the SKU name.tags()Get the tags property: Gets or sets a list of key value pairs that describe the resource.voidvalidate()Validates the instance.withAccessTier(AccessTier accessTier) Set the accessTier property: Required for storage accounts where kind = BlobStorage.withAllowBlobPublicAccess(Boolean allowBlobPublicAccess) Set the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage account.withAllowCrossTenantReplication(Boolean allowCrossTenantReplication) Set the allowCrossTenantReplication property: Allow or disallow cross AAD tenant object replication.withAllowedCopyScope(AllowedCopyScope allowedCopyScope) Set the allowedCopyScope property: Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet.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.withAzureFilesIdentityBasedAuthentication(AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication) Set the azureFilesIdentityBasedAuthentication property: Provides the identity based authentication settings for Azure Files.withCustomDomain(CustomDomain customDomain) Set the customDomain property: Custom domain assigned to the storage account by the user.withDefaultToOAuthAuthentication(Boolean defaultToOAuthAuthentication) Set the defaultToOAuthAuthentication property: A boolean flag which indicates whether the default authentication is OAuth or not.withDnsEndpointType(DnsEndpointType dnsEndpointType) Set the dnsEndpointType property: Allows you to specify the type of endpoint.withEnableHttpsTrafficOnly(Boolean enableHttpsTrafficOnly) Set the enableHttpsTrafficOnly property: Allows https traffic only to storage service if sets to true.withEncryption(Encryption encryption) Set the encryption property: Not applicable.withIdentity(Identity identity) Set the identity property: The identity of the resource.withImmutableStorageWithVersioning(ImmutableStorageAccount immutableStorageWithVersioning) Set the immutableStorageWithVersioning property: The property is immutable and can only be set to true at the account creation time.withIsLocalUserEnabled(Boolean isLocalUserEnabled) Set the isLocalUserEnabled property: Enables local users feature, if set to true.withIsSftpEnabled(Boolean isSftpEnabled) Set the isSftpEnabled property: Enables Secure File Transfer Protocol, if set to true.withKeyPolicy(KeyPolicy keyPolicy) Set the keyPolicy property: KeyPolicy assigned to the storage account.Set the kind property: Optional.withLargeFileSharesState(LargeFileSharesState largeFileSharesState) Set the largeFileSharesState property: Allow large file shares if sets to Enabled.withMinimumTlsVersion(MinimumTlsVersion minimumTlsVersion) Set the minimumTlsVersion property: Set the minimum TLS version to be permitted on requests to storage.withNetworkRuleSet(NetworkRuleSet networkRuleSet) Set the networkRuleSet property: Network rule set.withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) Set the publicNetworkAccess property: Allow or disallow public network access to Storage Account.withRoutingPreference(RoutingPreference routingPreference) Set the routingPreference property: Maintains information about the network routing choice opted by the user for data transfer.withSasPolicy(SasPolicy sasPolicy) Set the sasPolicy property: SasPolicy assigned to the storage account.Set the sku property: Gets or sets the SKU name.Set the tags property: Gets or sets a list of key value pairs that describe the resource.
-
Constructor Details
-
StorageAccountUpdateParameters
public StorageAccountUpdateParameters()Creates an instance of StorageAccountUpdateParameters class.
-
-
Method Details
-
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
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
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
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
Get the identity property: The identity of the resource.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The identity of the resource.- Parameters:
identity- the identity value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
kind
Get the kind property: Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server.- Returns:
- the kind value.
-
withKind
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
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
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
Get the encryption property: Not applicable. Azure Storage encryption at rest is enabled by default for all storage accounts and cannot be disabled.- Returns:
- the encryption value.
-
withEncryption
Set the encryption property: Not applicable. Azure Storage encryption at rest is enabled by default for all storage accounts and cannot be disabled.- Parameters:
encryption- the encryption value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
sasPolicy
Get the sasPolicy property: SasPolicy assigned to the storage account.- Returns:
- the sasPolicy value.
-
withSasPolicy
Set the sasPolicy property: SasPolicy assigned to the storage account.- Parameters:
sasPolicy- the sasPolicy value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
keyPolicy
Get the keyPolicy property: KeyPolicy assigned to the storage account.- Returns:
- the keyPolicy value.
-
withKeyPolicy
Set the keyPolicy property: KeyPolicy assigned to the storage account.- Parameters:
keyPolicy- the keyPolicy value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
accessTier
Get the accessTier property: Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type.- Returns:
- the accessTier value.
-
withAccessTier
Set the accessTier property: Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type.- Parameters:
accessTier- the accessTier value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
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
Get the enableHttpsTrafficOnly property: Allows https traffic only to storage service if sets to true.- Returns:
- the enableHttpsTrafficOnly value.
-
withEnableHttpsTrafficOnly
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.
-
isSftpEnabled
Get the isSftpEnabled property: Enables Secure File Transfer Protocol, if set to true.- Returns:
- the isSftpEnabled value.
-
withIsSftpEnabled
Set the isSftpEnabled property: Enables Secure File Transfer Protocol, if set to true.- Parameters:
isSftpEnabled- the isSftpEnabled value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
isLocalUserEnabled
Get the isLocalUserEnabled property: Enables local users feature, if set to true.- Returns:
- the isLocalUserEnabled value.
-
withIsLocalUserEnabled
Set the isLocalUserEnabled property: Enables local users feature, if set to true.- Parameters:
isLocalUserEnabled- the isLocalUserEnabled value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
networkRuleSet
Get the networkRuleSet property: Network rule set.- Returns:
- the networkRuleSet value.
-
withNetworkRuleSet
Set the networkRuleSet property: Network rule set.- Parameters:
networkRuleSet- the networkRuleSet value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
routingPreference
Get the routingPreference property: Maintains information about the network routing choice opted by the user for data transfer.- Returns:
- the routingPreference value.
-
withRoutingPreference
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
Get the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property.- Returns:
- the allowBlobPublicAccess value.
-
withAllowBlobPublicAccess
Set the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property.- Parameters:
allowBlobPublicAccess- the allowBlobPublicAccess value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
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
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.
-
allowCrossTenantReplication
Get the allowCrossTenantReplication property: Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default.- Returns:
- the allowCrossTenantReplication value.
-
withAllowCrossTenantReplication
public StorageAccountUpdateParameters withAllowCrossTenantReplication(Boolean allowCrossTenantReplication) Set the allowCrossTenantReplication property: Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default.- Parameters:
allowCrossTenantReplication- the allowCrossTenantReplication value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
defaultToOAuthAuthentication
Get the defaultToOAuthAuthentication property: A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property.- Returns:
- the defaultToOAuthAuthentication value.
-
withDefaultToOAuthAuthentication
public StorageAccountUpdateParameters withDefaultToOAuthAuthentication(Boolean defaultToOAuthAuthentication) Set the defaultToOAuthAuthentication property: A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property.- Parameters:
defaultToOAuthAuthentication- the defaultToOAuthAuthentication value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
publicNetworkAccess
Get the publicNetworkAccess property: Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
public StorageAccountUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) Set the publicNetworkAccess property: Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
immutableStorageWithVersioning
Get the immutableStorageWithVersioning property: The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the containers in the account by default.- Returns:
- the immutableStorageWithVersioning value.
-
withImmutableStorageWithVersioning
public StorageAccountUpdateParameters withImmutableStorageWithVersioning(ImmutableStorageAccount immutableStorageWithVersioning) Set the immutableStorageWithVersioning property: The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the containers in the account by default.- Parameters:
immutableStorageWithVersioning- the immutableStorageWithVersioning value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
allowedCopyScope
Get the allowedCopyScope property: Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet.- Returns:
- the allowedCopyScope value.
-
withAllowedCopyScope
Set the allowedCopyScope property: Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet.- Parameters:
allowedCopyScope- the allowedCopyScope value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
dnsEndpointType
Get the dnsEndpointType property: Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier.- Returns:
- the dnsEndpointType value.
-
withDnsEndpointType
Set the dnsEndpointType property: Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier.- Parameters:
dnsEndpointType- the dnsEndpointType value to set.- Returns:
- the StorageAccountUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-