Class StorageAccountInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.storage.fluent.models.StorageAccountInner
-
public final class StorageAccountInner extends com.azure.core.management.ResourceThe storage account.
-
-
Constructor Summary
Constructors Constructor Description StorageAccountInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTieraccessTier()Get the accessTier property: Required for storage accounts where kind = BlobStorage.BooleanallowBlobPublicAccess()Get the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage account.BooleanallowCrossTenantReplication()Get the allowCrossTenantReplication property: Allow or disallow cross AAD tenant object replication.BooleanallowSharedKeyAccess()Get the allowSharedKeyAccess property: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key.AzureFilesIdentityBasedAuthenticationazureFilesIdentityBasedAuthentication()Get the azureFilesIdentityBasedAuthentication property: Provides the identity based authentication settings for Azure Files.BlobRestoreStatusInnerblobRestoreStatus()Get the blobRestoreStatus property: Blob restore status.OffsetDateTimecreationTime()Get the creationTime property: Gets the creation date and time of the storage account in UTC.CustomDomaincustomDomain()Get the customDomain property: Gets the custom domain the user assigned to this storage account.BooleanenableHttpsTrafficOnly()Get the enableHttpsTrafficOnly property: Allows https traffic only to storage service if sets to true.BooleanenableNfsV3()Get the enableNfsV3 property: NFS 3.0 protocol support enabled if set to true.Encryptionencryption()Get the encryption property: Gets the encryption settings on the account.ExtendedLocationextendedLocation()Get the extendedLocation property: The extendedLocation of the resource.BooleanfailoverInProgress()Get the failoverInProgress property: If the failover is in progress, the value will be true, otherwise, it will be null.GeoReplicationStatsgeoReplicationStats()Get the geoReplicationStats property: Geo Replication Stats.Identityidentity()Get the identity property: The identity of the resource.BooleanisHnsEnabled()Get the isHnsEnabled property: Account HierarchicalNamespace enabled if sets to true.KeyCreationTimekeyCreationTime()Get the keyCreationTime property: Storage account keys creation time.KeyPolicykeyPolicy()Get the keyPolicy property: KeyPolicy assigned to the storage account.Kindkind()Get the kind property: Gets the Kind.LargeFileSharesStatelargeFileSharesState()Get the largeFileSharesState property: Allow large file shares if sets to Enabled.OffsetDateTimelastGeoFailoverTime()Get the lastGeoFailoverTime property: Gets the timestamp of the most recent instance of a failover to the secondary location.MinimumTlsVersionminimumTlsVersion()Get the minimumTlsVersion property: Set the minimum TLS version to be permitted on requests to storage.NetworkRuleSetnetworkRuleSet()Get the networkRuleSet property: Network rule set.EndpointsprimaryEndpoints()Get the primaryEndpoints property: Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object.StringprimaryLocation()Get the primaryLocation property: Gets the location of the primary data center for the storage account.List<PrivateEndpointConnectionInner>privateEndpointConnections()Get the privateEndpointConnections property: List of private endpoint connection associated with the specified storage account.ProvisioningStateprovisioningState()Get the provisioningState property: Gets the status of the storage account at the time the operation was called.RoutingPreferenceroutingPreference()Get the routingPreference property: Maintains information about the network routing choice opted by the user for data transfer.SasPolicysasPolicy()Get the sasPolicy property: SasPolicy assigned to the storage account.EndpointssecondaryEndpoints()Get the secondaryEndpoints property: Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account.StringsecondaryLocation()Get the secondaryLocation property: Gets the location of the geo-replicated secondary for the storage account.Skusku()Get the sku property: Gets the SKU.AccountStatusstatusOfPrimary()Get the statusOfPrimary property: Gets the status indicating whether the primary location of the storage account is available or unavailable.AccountStatusstatusOfSecondary()Get the statusOfSecondary property: Gets the status indicating whether the secondary location of the storage account is available or unavailable.voidvalidate()Validates the instance.StorageAccountInnerwithAllowBlobPublicAccess(Boolean allowBlobPublicAccess)Set the allowBlobPublicAccess property: Allow or disallow public access to all blobs or containers in the storage account.StorageAccountInnerwithAllowCrossTenantReplication(Boolean allowCrossTenantReplication)Set the allowCrossTenantReplication property: Allow or disallow cross AAD tenant object replication.StorageAccountInnerwithAllowSharedKeyAccess(Boolean allowSharedKeyAccess)Set the allowSharedKeyAccess property: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key.StorageAccountInnerwithAzureFilesIdentityBasedAuthentication(AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication)Set the azureFilesIdentityBasedAuthentication property: Provides the identity based authentication settings for Azure Files.StorageAccountInnerwithEnableHttpsTrafficOnly(Boolean enableHttpsTrafficOnly)Set the enableHttpsTrafficOnly property: Allows https traffic only to storage service if sets to true.StorageAccountInnerwithEnableNfsV3(Boolean enableNfsV3)Set the enableNfsV3 property: NFS 3.0 protocol support enabled if set to true.StorageAccountInnerwithExtendedLocation(ExtendedLocation extendedLocation)Set the extendedLocation property: The extendedLocation of the resource.StorageAccountInnerwithIdentity(Identity identity)Set the identity property: The identity of the resource.StorageAccountInnerwithIsHnsEnabled(Boolean isHnsEnabled)Set the isHnsEnabled property: Account HierarchicalNamespace enabled if sets to true.StorageAccountInnerwithLargeFileSharesState(LargeFileSharesState largeFileSharesState)Set the largeFileSharesState property: Allow large file shares if sets to Enabled.StorageAccountInnerwithLocation(String location)StorageAccountInnerwithMinimumTlsVersion(MinimumTlsVersion minimumTlsVersion)Set the minimumTlsVersion property: Set the minimum TLS version to be permitted on requests to storage.StorageAccountInnerwithRoutingPreference(RoutingPreference routingPreference)Set the routingPreference property: Maintains information about the network routing choice opted by the user for data transfer.StorageAccountInnerwithTags(Map<String,String> tags)
-
-
-
Method Detail
-
sku
public Sku sku()
Get the sku property: Gets the SKU.- Returns:
- the sku value.
-
kind
public Kind kind()
Get the kind property: Gets the Kind.- Returns:
- the kind value.
-
identity
public Identity identity()
Get the identity property: The identity of the resource.- Returns:
- the identity value.
-
withIdentity
public StorageAccountInner withIdentity(Identity identity)
Set the identity property: The identity of the resource.- Parameters:
identity- the identity value to set.- Returns:
- the StorageAccountInner object itself.
-
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: The extendedLocation of the resource.- Returns:
- the extendedLocation value.
-
withExtendedLocation
public StorageAccountInner withExtendedLocation(ExtendedLocation extendedLocation)
Set the extendedLocation property: The extendedLocation of the resource.- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the StorageAccountInner object itself.
-
withLocation
public StorageAccountInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public StorageAccountInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Gets the status of the storage account at the time the operation was called.- Returns:
- the provisioningState value.
-
primaryEndpoints
public Endpoints primaryEndpoints()
Get the primaryEndpoints property: Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint.- Returns:
- the primaryEndpoints value.
-
primaryLocation
public String primaryLocation()
Get the primaryLocation property: Gets the location of the primary data center for the storage account.- Returns:
- the primaryLocation value.
-
statusOfPrimary
public AccountStatus statusOfPrimary()
Get the statusOfPrimary property: Gets the status indicating whether the primary location of the storage account is available or unavailable.- Returns:
- the statusOfPrimary value.
-
lastGeoFailoverTime
public OffsetDateTime lastGeoFailoverTime()
Get the lastGeoFailoverTime property: Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS.- Returns:
- the lastGeoFailoverTime value.
-
secondaryLocation
public String secondaryLocation()
Get the secondaryLocation property: Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS.- Returns:
- the secondaryLocation value.
-
statusOfSecondary
public AccountStatus statusOfSecondary()
Get the statusOfSecondary property: Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS.- Returns:
- the statusOfSecondary value.
-
creationTime
public OffsetDateTime creationTime()
Get the creationTime property: Gets the creation date and time of the storage account in UTC.- Returns:
- the creationTime value.
-
customDomain
public CustomDomain customDomain()
Get the customDomain property: Gets the custom domain the user assigned to this storage account.- Returns:
- the customDomain value.
-
sasPolicy
public SasPolicy sasPolicy()
Get the sasPolicy property: SasPolicy assigned to the storage account.- Returns:
- the sasPolicy value.
-
keyPolicy
public KeyPolicy keyPolicy()
Get the keyPolicy property: KeyPolicy assigned to the storage account.- Returns:
- the keyPolicy value.
-
keyCreationTime
public KeyCreationTime keyCreationTime()
Get the keyCreationTime property: Storage account keys creation time.- Returns:
- the keyCreationTime value.
-
secondaryEndpoints
public Endpoints secondaryEndpoints()
Get the secondaryEndpoints property: Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS.- Returns:
- the secondaryEndpoints value.
-
encryption
public Encryption encryption()
Get the encryption property: Gets the encryption settings on the account. If unspecified, the account is unencrypted.- Returns:
- the encryption value.
-
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.
-
azureFilesIdentityBasedAuthentication
public AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication()
Get the azureFilesIdentityBasedAuthentication property: Provides the identity based authentication settings for Azure Files.- Returns:
- the azureFilesIdentityBasedAuthentication value.
-
withAzureFilesIdentityBasedAuthentication
public StorageAccountInner 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 StorageAccountInner 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 StorageAccountInner 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 StorageAccountInner object itself.
-
networkRuleSet
public NetworkRuleSet networkRuleSet()
Get the networkRuleSet property: Network rule set.- Returns:
- the networkRuleSet value.
-
isHnsEnabled
public Boolean isHnsEnabled()
Get the isHnsEnabled property: Account HierarchicalNamespace enabled if sets to true.- Returns:
- the isHnsEnabled value.
-
withIsHnsEnabled
public StorageAccountInner withIsHnsEnabled(Boolean isHnsEnabled)
Set the isHnsEnabled property: Account HierarchicalNamespace enabled if sets to true.- Parameters:
isHnsEnabled- the isHnsEnabled value to set.- Returns:
- the StorageAccountInner object itself.
-
geoReplicationStats
public GeoReplicationStats geoReplicationStats()
Get the geoReplicationStats property: Geo Replication Stats.- Returns:
- the geoReplicationStats value.
-
failoverInProgress
public Boolean failoverInProgress()
Get the failoverInProgress property: If the failover is in progress, the value will be true, otherwise, it will be null.- Returns:
- the failoverInProgress value.
-
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 StorageAccountInner 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 StorageAccountInner object itself.
-
privateEndpointConnections
public List<PrivateEndpointConnectionInner> privateEndpointConnections()
Get the privateEndpointConnections property: List of private endpoint connection associated with the specified storage account.- Returns:
- the privateEndpointConnections value.
-
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 StorageAccountInner 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 StorageAccountInner object itself.
-
blobRestoreStatus
public BlobRestoreStatusInner blobRestoreStatus()
Get the blobRestoreStatus property: Blob restore status.- Returns:
- the blobRestoreStatus value.
-
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 StorageAccountInner 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 StorageAccountInner 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 StorageAccountInner 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 StorageAccountInner 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 StorageAccountInner 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 StorageAccountInner object itself.
-
enableNfsV3
public Boolean enableNfsV3()
Get the enableNfsV3 property: NFS 3.0 protocol support enabled if set to true.- Returns:
- the enableNfsV3 value.
-
withEnableNfsV3
public StorageAccountInner withEnableNfsV3(Boolean enableNfsV3)
Set the enableNfsV3 property: NFS 3.0 protocol support enabled if set to true.- Parameters:
enableNfsV3- the enableNfsV3 value to set.- Returns:
- the StorageAccountInner 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 StorageAccountInner 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 StorageAccountInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-