Class ConflictResolutionPolicy
- java.lang.Object
-
- com.microsoft.azure.management.cosmosdb.ConflictResolutionPolicy
-
public class ConflictResolutionPolicy extends Object
The conflict resolution policy for the container.
-
-
Constructor Summary
Constructors Constructor Description ConflictResolutionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconflictResolutionPath()Get the conflict resolution path in the case of LastWriterWins mode.StringconflictResolutionProcedure()Get the procedure to resolve conflicts in the case of custom mode.ConflictResolutionModemode()Get indicates the conflict resolution mode.ConflictResolutionPolicywithConflictResolutionPath(String conflictResolutionPath)Set the conflict resolution path in the case of LastWriterWins mode.ConflictResolutionPolicywithConflictResolutionProcedure(String conflictResolutionProcedure)Set the procedure to resolve conflicts in the case of custom mode.ConflictResolutionPolicywithMode(ConflictResolutionMode mode)Set indicates the conflict resolution mode.
-
-
-
Method Detail
-
mode
public ConflictResolutionMode mode()
Get indicates the conflict resolution mode. Possible values include: 'LastWriterWins', 'Custom'.- Returns:
- the mode value
-
withMode
public ConflictResolutionPolicy withMode(ConflictResolutionMode mode)
Set indicates the conflict resolution mode. Possible values include: 'LastWriterWins', 'Custom'.- Parameters:
mode- the mode value to set- Returns:
- the ConflictResolutionPolicy object itself.
-
conflictResolutionPath
public String conflictResolutionPath()
Get the conflict resolution path in the case of LastWriterWins mode.- Returns:
- the conflictResolutionPath value
-
withConflictResolutionPath
public ConflictResolutionPolicy withConflictResolutionPath(String conflictResolutionPath)
Set the conflict resolution path in the case of LastWriterWins mode.- Parameters:
conflictResolutionPath- the conflictResolutionPath value to set- Returns:
- the ConflictResolutionPolicy object itself.
-
conflictResolutionProcedure
public String conflictResolutionProcedure()
Get the procedure to resolve conflicts in the case of custom mode.- Returns:
- the conflictResolutionProcedure value
-
withConflictResolutionProcedure
public ConflictResolutionPolicy withConflictResolutionProcedure(String conflictResolutionProcedure)
Set the procedure to resolve conflicts in the case of custom mode.- Parameters:
conflictResolutionProcedure- the conflictResolutionProcedure value to set- Returns:
- the ConflictResolutionPolicy object itself.
-
-