CosmosDatabaseProperties Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosDatabaseProperties
- com.
public final class CosmosDatabaseProperties
Represents a CosmosAsyncDatabase in the Azure Cosmos database service. A cosmos database manages users, permissions and a set of containers
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 Summary
Constructor | Description |
---|---|
CosmosDatabaseProperties(String id) |
Constructor |
Method Summary
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. |
Cosmos |
setId(String id)
Sets the name of the resource. |
Methods inherited from java.lang.Object
Constructor Details
CosmosDatabaseProperties
public CosmosDatabaseProperties(String id)
Constructor
Parameters:
Method Details
getETag
public String getETag()
Get the entity tag associated with the resource. This is only relevant when getting response from the server.
Returns:
getId
public String getId()
Gets the name of the resource.
Returns:
getResourceId
public String getResourceId()
Gets the ID associated with the resource.
Returns:
getTimestamp
public Instant getTimestamp()
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.
Returns:
setId
public CosmosDatabaseProperties setId(String id)
Sets the name of the resource.
Parameters:
Returns:
Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기