Class UniqueKey


  • public final class UniqueKey
    extends Object
    The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
    • Constructor Detail

      • UniqueKey

        public UniqueKey()
    • Method Detail

      • paths

        public List<String> paths()
        Get the paths property: List of paths must be unique for each document in the Azure Cosmos DB service.
        Returns:
        the paths value.
      • withPaths

        public UniqueKey withPaths​(List<String> paths)
        Set the paths property: List of paths must be unique for each document in the Azure Cosmos DB service.
        Parameters:
        paths - the paths value to set.
        Returns:
        the UniqueKey object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.