primaryKey
Get the primaryKey property: The primary key of the cosmos DB account.
- Returns:
- the primaryKey value.
id()
identity()
name()
void
validate()
withAuthenticationType(AuthenticationType authenticationType)
withCollectionName(String collectionName)
withDatabaseName(String databaseName)
withEndpointUri(String endpointUri)
withIdentity(ManagedIdentity identity)
withPartitionKeyName(String partitionKeyName)
withPartitionKeyTemplate(String partitionKeyTemplate)
withPrimaryKey(String primaryKey)
withResourceGroup(String resourceGroup)
withSecondaryKey(String secondaryKey)
withSubscriptionId(String subscriptionId)
name
- the name value to set.id
- the id value to set.subscriptionId
- the subscriptionId value to set.resourceGroup
- the resourceGroup value to set.endpointUri
- the endpointUri value to set.authenticationType
- the authenticationType value to set.identity
- the identity value to set.primaryKey
- the primaryKey value to set.secondaryKey
- the secondaryKey value to set.databaseName
- the databaseName value to set.collectionName
- the collectionName value to set.partitionKeyName
- the partitionKeyName value to set.partitionKeyTemplate
- the partitionKeyTemplate value to set.IllegalArgumentException
- thrown if the instance is not valid.