Class ConflictResolutionPolicy
java.lang.Object
com.microsoft.azure.management.cosmosdb.ConflictResolutionPolicy
The conflict resolution policy for the container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the conflict resolution path in the case of LastWriterWins mode.Get the procedure to resolve conflicts in the case of custom mode.mode()
Get indicates the conflict resolution mode.withConflictResolutionPath
(String conflictResolutionPath) Set the conflict resolution path in the case of LastWriterWins mode.withConflictResolutionProcedure
(String conflictResolutionProcedure) Set the procedure to resolve conflicts in the case of custom mode.Set indicates the conflict resolution mode.
-
Constructor Details
-
ConflictResolutionPolicy
public ConflictResolutionPolicy()
-
-
Method Details
-
mode
Get indicates the conflict resolution mode. Possible values include: 'LastWriterWins', 'Custom'.- Returns:
- the mode value
-
withMode
Set indicates the conflict resolution mode. Possible values include: 'LastWriterWins', 'Custom'.- Parameters:
mode
- the mode value to set- Returns:
- the ConflictResolutionPolicy object itself.
-
conflictResolutionPath
Get the conflict resolution path in the case of LastWriterWins mode.- Returns:
- the conflictResolutionPath value
-
withConflictResolutionPath
Set the conflict resolution path in the case of LastWriterWins mode.- Parameters:
conflictResolutionPath
- the conflictResolutionPath value to set- Returns:
- the ConflictResolutionPolicy object itself.
-
conflictResolutionProcedure
Get the procedure to resolve conflicts in the case of custom mode.- Returns:
- the conflictResolutionProcedure value
-
withConflictResolutionProcedure
Set the procedure to resolve conflicts in the case of custom mode.- Parameters:
conflictResolutionProcedure
- the conflictResolutionProcedure value to set- Returns:
- the ConflictResolutionPolicy object itself.
-