public final class CosmosDatabaseProperties extends Object
Each Azure Cosmos DB Service is able to support multiple independent named databases, with the database being the logical container for data. Each Database consists of one or more cosmos containers, each of which in turn contain one or more cosmos items. Since databases are an an administrative resource and the Service Key will be required in order to access and successfully complete any action using the User APIs.
Constructor and Description |
---|
CosmosDatabaseProperties(String id)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getETag()
Get the entity tag associated with the resource.
|
String |
getId()
Gets the name of the resource.
|
String |
getResourceId()
Gets the ID associated with the resource.
|
Instant |
getTimestamp()
Get the last modified timestamp associated with the resource.
|
CosmosDatabaseProperties |
setId(String id)
Sets the name of the resource.
|
public CosmosDatabaseProperties(String id)
id
- id of the databasepublic String getId()
public CosmosDatabaseProperties setId(String id)
id
- the name of the resource.CosmosDatabaseProperties
.public String getResourceId()
public Instant getTimestamp()
public String getETag()
Copyright © 2021 Microsoft Corporation. All rights reserved.