Class DatabaseAccountGetResultsInner


  • public final class DatabaseAccountGetResultsInner
    extends ArmResourceProperties
    An Azure Cosmos DB database account.
    • Constructor Detail

      • DatabaseAccountGetResultsInner

        public DatabaseAccountGetResultsInner()
    • Method Detail

      • kind

        public DatabaseAccountKind kind()
        Get the kind property: Indicates the type of database account. This can only be set at database account creation.
        Returns:
        the kind value.
      • withKind

        public DatabaseAccountGetResultsInner withKind​(DatabaseAccountKind kind)
        Set the kind property: Indicates the type of database account. This can only be set at database account creation.
        Parameters:
        kind - the kind value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • identity

        public ManagedServiceIdentity identity()
        Get the identity property: Identity for the resource.
        Returns:
        the identity value.
      • withIdentity

        public DatabaseAccountGetResultsInner withIdentity​(ManagedServiceIdentity identity)
        Set the identity property: Identity for the resource.
        Parameters:
        identity - the identity value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • systemData

        public com.azure.core.management.SystemData systemData()
        Get the systemData property: The system meta data relating to this resource.
        Returns:
        the systemData value.
      • provisioningState

        public String provisioningState()
        Get the provisioningState property: The status of the Cosmos DB account at the time the operation was called. The status can be one of following. 'Creating' – the Cosmos DB account is being created. When an account is in Creating state, only properties that are specified as input for the Create Cosmos DB account operation are returned. 'Succeeded' – the Cosmos DB account is active for use. 'Updating' – the Cosmos DB account is being updated. 'Deleting' – the Cosmos DB account is being deleted. 'Failed' – the Cosmos DB account failed creation. 'DeletionFailed' – the Cosmos DB account deletion failed.
        Returns:
        the provisioningState value.
      • documentEndpoint

        public String documentEndpoint()
        Get the documentEndpoint property: The connection endpoint for the Cosmos DB database account.
        Returns:
        the documentEndpoint value.
      • databaseAccountOfferType

        public DatabaseAccountOfferType databaseAccountOfferType()
        Get the databaseAccountOfferType property: The offer type for the Cosmos DB database account. Default value: Standard.
        Returns:
        the databaseAccountOfferType value.
      • ipRules

        public List<IpAddressOrRange> ipRules()
        Get the ipRules property: List of IpRules.
        Returns:
        the ipRules value.
      • withIpRules

        public DatabaseAccountGetResultsInner withIpRules​(List<IpAddressOrRange> ipRules)
        Set the ipRules property: List of IpRules.
        Parameters:
        ipRules - the ipRules value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • isVirtualNetworkFilterEnabled

        public Boolean isVirtualNetworkFilterEnabled()
        Get the isVirtualNetworkFilterEnabled property: Flag to indicate whether to enable/disable Virtual Network ACL rules.
        Returns:
        the isVirtualNetworkFilterEnabled value.
      • withIsVirtualNetworkFilterEnabled

        public DatabaseAccountGetResultsInner withIsVirtualNetworkFilterEnabled​(Boolean isVirtualNetworkFilterEnabled)
        Set the isVirtualNetworkFilterEnabled property: Flag to indicate whether to enable/disable Virtual Network ACL rules.
        Parameters:
        isVirtualNetworkFilterEnabled - the isVirtualNetworkFilterEnabled value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • enableAutomaticFailover

        public Boolean enableAutomaticFailover()
        Get the enableAutomaticFailover property: Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
        Returns:
        the enableAutomaticFailover value.
      • withEnableAutomaticFailover

        public DatabaseAccountGetResultsInner withEnableAutomaticFailover​(Boolean enableAutomaticFailover)
        Set the enableAutomaticFailover property: Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
        Parameters:
        enableAutomaticFailover - the enableAutomaticFailover value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • consistencyPolicy

        public ConsistencyPolicy consistencyPolicy()
        Get the consistencyPolicy property: The consistency policy for the Cosmos DB database account.
        Returns:
        the consistencyPolicy value.
      • withConsistencyPolicy

        public DatabaseAccountGetResultsInner withConsistencyPolicy​(ConsistencyPolicy consistencyPolicy)
        Set the consistencyPolicy property: The consistency policy for the Cosmos DB database account.
        Parameters:
        consistencyPolicy - the consistencyPolicy value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • capabilities

        public List<Capability> capabilities()
        Get the capabilities property: List of Cosmos DB capabilities for the account.
        Returns:
        the capabilities value.
      • withCapabilities

        public DatabaseAccountGetResultsInner withCapabilities​(List<Capability> capabilities)
        Set the capabilities property: List of Cosmos DB capabilities for the account.
        Parameters:
        capabilities - the capabilities value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • writeLocations

        public List<Location> writeLocations()
        Get the writeLocations property: An array that contains the write location for the Cosmos DB account.
        Returns:
        the writeLocations value.
      • readLocations

        public List<Location> readLocations()
        Get the readLocations property: An array that contains of the read locations enabled for the Cosmos DB account.
        Returns:
        the readLocations value.
      • locations

        public List<Location> locations()
        Get the locations property: An array that contains all of the locations enabled for the Cosmos DB account.
        Returns:
        the locations value.
      • failoverPolicies

        public List<FailoverPolicy> failoverPolicies()
        Get the failoverPolicies property: An array that contains the regions ordered by their failover priorities.
        Returns:
        the failoverPolicies value.
      • virtualNetworkRules

        public List<VirtualNetworkRule> virtualNetworkRules()
        Get the virtualNetworkRules property: List of Virtual Network ACL rules configured for the Cosmos DB account.
        Returns:
        the virtualNetworkRules value.
      • withVirtualNetworkRules

        public DatabaseAccountGetResultsInner withVirtualNetworkRules​(List<VirtualNetworkRule> virtualNetworkRules)
        Set the virtualNetworkRules property: List of Virtual Network ACL rules configured for the Cosmos DB account.
        Parameters:
        virtualNetworkRules - the virtualNetworkRules value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • privateEndpointConnections

        public List<PrivateEndpointConnectionInner> privateEndpointConnections()
        Get the privateEndpointConnections property: List of Private Endpoint Connections configured for the Cosmos DB account.
        Returns:
        the privateEndpointConnections value.
      • enableMultipleWriteLocations

        public Boolean enableMultipleWriteLocations()
        Get the enableMultipleWriteLocations property: Enables the account to write in multiple locations.
        Returns:
        the enableMultipleWriteLocations value.
      • withEnableMultipleWriteLocations

        public DatabaseAccountGetResultsInner withEnableMultipleWriteLocations​(Boolean enableMultipleWriteLocations)
        Set the enableMultipleWriteLocations property: Enables the account to write in multiple locations.
        Parameters:
        enableMultipleWriteLocations - the enableMultipleWriteLocations value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • enableCassandraConnector

        public Boolean enableCassandraConnector()
        Get the enableCassandraConnector property: Enables the cassandra connector on the Cosmos DB C* account.
        Returns:
        the enableCassandraConnector value.
      • withEnableCassandraConnector

        public DatabaseAccountGetResultsInner withEnableCassandraConnector​(Boolean enableCassandraConnector)
        Set the enableCassandraConnector property: Enables the cassandra connector on the Cosmos DB C* account.
        Parameters:
        enableCassandraConnector - the enableCassandraConnector value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • connectorOffer

        public ConnectorOffer connectorOffer()
        Get the connectorOffer property: The cassandra connector offer type for the Cosmos DB database C* account.
        Returns:
        the connectorOffer value.
      • withConnectorOffer

        public DatabaseAccountGetResultsInner withConnectorOffer​(ConnectorOffer connectorOffer)
        Set the connectorOffer property: The cassandra connector offer type for the Cosmos DB database C* account.
        Parameters:
        connectorOffer - the connectorOffer value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • disableKeyBasedMetadataWriteAccess

        public Boolean disableKeyBasedMetadataWriteAccess()
        Get the disableKeyBasedMetadataWriteAccess property: Disable write operations on metadata resources (databases, containers, throughput) via account keys.
        Returns:
        the disableKeyBasedMetadataWriteAccess value.
      • withDisableKeyBasedMetadataWriteAccess

        public DatabaseAccountGetResultsInner withDisableKeyBasedMetadataWriteAccess​(Boolean disableKeyBasedMetadataWriteAccess)
        Set the disableKeyBasedMetadataWriteAccess property: Disable write operations on metadata resources (databases, containers, throughput) via account keys.
        Parameters:
        disableKeyBasedMetadataWriteAccess - the disableKeyBasedMetadataWriteAccess value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • keyVaultKeyUri

        public String keyVaultKeyUri()
        Get the keyVaultKeyUri property: The URI of the key vault.
        Returns:
        the keyVaultKeyUri value.
      • withKeyVaultKeyUri

        public DatabaseAccountGetResultsInner withKeyVaultKeyUri​(String keyVaultKeyUri)
        Set the keyVaultKeyUri property: The URI of the key vault.
        Parameters:
        keyVaultKeyUri - the keyVaultKeyUri value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • defaultIdentity

        public String defaultIdentity()
        Get the defaultIdentity property: The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", "SystemAssignedIdentity" and more.
        Returns:
        the defaultIdentity value.
      • withDefaultIdentity

        public DatabaseAccountGetResultsInner withDefaultIdentity​(String defaultIdentity)
        Set the defaultIdentity property: The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", "SystemAssignedIdentity" and more.
        Parameters:
        defaultIdentity - the defaultIdentity value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • publicNetworkAccess

        public PublicNetworkAccess publicNetworkAccess()
        Get the publicNetworkAccess property: Whether requests from Public Network are allowed.
        Returns:
        the publicNetworkAccess value.
      • withPublicNetworkAccess

        public DatabaseAccountGetResultsInner withPublicNetworkAccess​(PublicNetworkAccess publicNetworkAccess)
        Set the publicNetworkAccess property: Whether requests from Public Network are allowed.
        Parameters:
        publicNetworkAccess - the publicNetworkAccess value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • enableFreeTier

        public Boolean enableFreeTier()
        Get the enableFreeTier property: Flag to indicate whether Free Tier is enabled.
        Returns:
        the enableFreeTier value.
      • withEnableFreeTier

        public DatabaseAccountGetResultsInner withEnableFreeTier​(Boolean enableFreeTier)
        Set the enableFreeTier property: Flag to indicate whether Free Tier is enabled.
        Parameters:
        enableFreeTier - the enableFreeTier value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • apiProperties

        public ApiProperties apiProperties()
        Get the apiProperties property: API specific properties.
        Returns:
        the apiProperties value.
      • withApiProperties

        public DatabaseAccountGetResultsInner withApiProperties​(ApiProperties apiProperties)
        Set the apiProperties property: API specific properties.
        Parameters:
        apiProperties - the apiProperties value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • enableAnalyticalStorage

        public Boolean enableAnalyticalStorage()
        Get the enableAnalyticalStorage property: Flag to indicate whether to enable storage analytics.
        Returns:
        the enableAnalyticalStorage value.
      • withEnableAnalyticalStorage

        public DatabaseAccountGetResultsInner withEnableAnalyticalStorage​(Boolean enableAnalyticalStorage)
        Set the enableAnalyticalStorage property: Flag to indicate whether to enable storage analytics.
        Parameters:
        enableAnalyticalStorage - the enableAnalyticalStorage value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • analyticalStorageConfiguration

        public AnalyticalStorageConfiguration analyticalStorageConfiguration()
        Get the analyticalStorageConfiguration property: Analytical storage specific properties.
        Returns:
        the analyticalStorageConfiguration value.
      • withAnalyticalStorageConfiguration

        public DatabaseAccountGetResultsInner withAnalyticalStorageConfiguration​(AnalyticalStorageConfiguration analyticalStorageConfiguration)
        Set the analyticalStorageConfiguration property: Analytical storage specific properties.
        Parameters:
        analyticalStorageConfiguration - the analyticalStorageConfiguration value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • instanceId

        public String instanceId()
        Get the instanceId property: A unique identifier assigned to the database account.
        Returns:
        the instanceId value.
      • createMode

        public CreateMode createMode()
        Get the createMode property: Enum to indicate the mode of account creation.
        Returns:
        the createMode value.
      • withCreateMode

        public DatabaseAccountGetResultsInner withCreateMode​(CreateMode createMode)
        Set the createMode property: Enum to indicate the mode of account creation.
        Parameters:
        createMode - the createMode value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • restoreParameters

        public RestoreParameters restoreParameters()
        Get the restoreParameters property: Parameters to indicate the information about the restore.
        Returns:
        the restoreParameters value.
      • withRestoreParameters

        public DatabaseAccountGetResultsInner withRestoreParameters​(RestoreParameters restoreParameters)
        Set the restoreParameters property: Parameters to indicate the information about the restore.
        Parameters:
        restoreParameters - the restoreParameters value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • backupPolicy

        public BackupPolicy backupPolicy()
        Get the backupPolicy property: The object representing the policy for taking backups on an account.
        Returns:
        the backupPolicy value.
      • withBackupPolicy

        public DatabaseAccountGetResultsInner withBackupPolicy​(BackupPolicy backupPolicy)
        Set the backupPolicy property: The object representing the policy for taking backups on an account.
        Parameters:
        backupPolicy - the backupPolicy value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • cors

        public List<CorsPolicy> cors()
        Get the cors property: The CORS policy for the Cosmos DB database account.
        Returns:
        the cors value.
      • withCors

        public DatabaseAccountGetResultsInner withCors​(List<CorsPolicy> cors)
        Set the cors property: The CORS policy for the Cosmos DB database account.
        Parameters:
        cors - the cors value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • networkAclBypass

        public NetworkAclBypass networkAclBypass()
        Get the networkAclBypass property: Indicates what services are allowed to bypass firewall checks.
        Returns:
        the networkAclBypass value.
      • withNetworkAclBypass

        public DatabaseAccountGetResultsInner withNetworkAclBypass​(NetworkAclBypass networkAclBypass)
        Set the networkAclBypass property: Indicates what services are allowed to bypass firewall checks.
        Parameters:
        networkAclBypass - the networkAclBypass value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • networkAclBypassResourceIds

        public List<String> networkAclBypassResourceIds()
        Get the networkAclBypassResourceIds property: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.
        Returns:
        the networkAclBypassResourceIds value.
      • withNetworkAclBypassResourceIds

        public DatabaseAccountGetResultsInner withNetworkAclBypassResourceIds​(List<String> networkAclBypassResourceIds)
        Set the networkAclBypassResourceIds property: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.
        Parameters:
        networkAclBypassResourceIds - the networkAclBypassResourceIds value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • disableLocalAuth

        public Boolean disableLocalAuth()
        Get the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.
        Returns:
        the disableLocalAuth value.
      • withDisableLocalAuth

        public DatabaseAccountGetResultsInner withDisableLocalAuth​(Boolean disableLocalAuth)
        Set the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.
        Parameters:
        disableLocalAuth - the disableLocalAuth value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.
      • capacity

        public Capacity capacity()
        Get the capacity property: The object that represents all properties related to capacity enforcement on an account.
        Returns:
        the capacity value.
      • withCapacity

        public DatabaseAccountGetResultsInner withCapacity​(Capacity capacity)
        Set the capacity property: The object that represents all properties related to capacity enforcement on an account.
        Parameters:
        capacity - the capacity value to set.
        Returns:
        the DatabaseAccountGetResultsInner object itself.