UniqueKeyPolicy Class
- java.
lang. Object - JsonSerializable
- com.
microsoft. azure. cosmosdb. UniqueKeyPolicy
- com.
public class UniqueKeyPolicy extends JsonSerializable
Represents the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
Constructor Summary
Constructor | Description | |
---|---|---|
UniqueKeyPolicy() | ||
UniqueKeyPolicy(String jsonString) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Collection<Unique |
getUniqueKeys()
Gets or sets collection of UniqueKey that guarantee uniqueness of documents in collection in the Azure Cosmos DB service. |
void | setUniqueKeys(Collection<UniqueKey> uniqueKeys) |
Inherited Members
JsonSerializable.get(String propertyName)
JsonSerializable.getBoolean(String propertyName)
JsonSerializable.getCollection(String propertyName)
JsonSerializable.getDouble(String propertyName)
JsonSerializable.getHashMap()
JsonSerializable.getInt(String propertyName)
JsonSerializable.getLogger()
JsonSerializable.getLong(String propertyName)
JsonSerializable.getMapper()
JsonSerializable.getObject(String propertyName)
JsonSerializable.getObjectByPath(List<String> propertyNames)
JsonSerializable.getString(String propertyName)
JsonSerializable.has(String propertyName)
JsonSerializable.JsonSerializable()
JsonSerializable.JsonSerializable(String jsonString, ObjectMapper objectMapper)
JsonSerializable.JsonSerializable(String jsonString)
JsonSerializable.remove(String propertyName)
JsonSerializable.toJson()
JsonSerializable.toJson(SerializationFormattingPolicy formattingPolicy)
JsonSerializable.toString()
Constructor Details
UniqueKeyPolicy
public UniqueKeyPolicy()
UniqueKeyPolicy
public UniqueKeyPolicy(String jsonString)
Constructor.
Parameters:
jsonString
- the json string that represents the Unique Key policy.
Method Details
getUniqueKeys
public Collection
Gets or sets collection of UniqueKey that guarantee uniqueness of documents in collection in the Azure Cosmos DB service.
Returns:
the unique keys.
setUniqueKeys
public void setUniqueKeys(Collection
Parameters:
uniqueKeys
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java