Class ConflictResolutionPolicy
java.lang.Object
com.azure.resourcemanager.cosmos.models.ConflictResolutionPolicy
The conflict resolution policy for the container.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConflictResolutionPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the conflictResolutionPath property: The conflict resolution path in the case of LastWriterWins mode.Get the conflictResolutionProcedure property: The procedure to resolve conflicts in the case of custom mode.mode()Get the mode property: Indicates the conflict resolution mode.voidvalidate()Validates the instance.withConflictResolutionPath(String conflictResolutionPath) Set the conflictResolutionPath property: The conflict resolution path in the case of LastWriterWins mode.withConflictResolutionProcedure(String conflictResolutionProcedure) Set the conflictResolutionProcedure property: The procedure to resolve conflicts in the case of custom mode.Set the mode property: Indicates the conflict resolution mode.
-
Constructor Details
-
ConflictResolutionPolicy
public ConflictResolutionPolicy()Creates an instance of ConflictResolutionPolicy class.
-
-
Method Details
-
mode
Get the mode property: Indicates the conflict resolution mode.- Returns:
- the mode value.
-
withMode
Set the mode property: Indicates the conflict resolution mode.- Parameters:
mode- the mode value to set.- Returns:
- the ConflictResolutionPolicy object itself.
-
conflictResolutionPath
Get the conflictResolutionPath property: The conflict resolution path in the case of LastWriterWins mode.- Returns:
- the conflictResolutionPath value.
-
withConflictResolutionPath
Set the conflictResolutionPath property: 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 conflictResolutionProcedure property: The procedure to resolve conflicts in the case of custom mode.- Returns:
- the conflictResolutionProcedure value.
-
withConflictResolutionProcedure
Set the conflictResolutionProcedure property: The procedure to resolve conflicts in the case of custom mode.- Parameters:
conflictResolutionProcedure- the conflictResolutionProcedure value to set.- Returns:
- the ConflictResolutionPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-