ConflictResolutionPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ConflictResolutionPolicy
- com.
Implements
public final class ConflictResolutionPolicy
implements JsonSerializable<ConflictResolutionPolicy>
The conflict resolution policy for the container.
Constructor Summary
Constructor | Description |
---|---|
ConflictResolutionPolicy() |
Creates an instance of Conflict |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
conflictResolutionPath()
Get the conflict |
String |
conflictResolutionProcedure()
Get the conflict |
static
Conflict |
fromJson(JsonReader jsonReader)
Reads an instance of Conflict |
Conflict |
mode()
Get the mode property: Indicates the conflict resolution mode. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Conflict |
withConflictResolutionPath(String conflictResolutionPath)
Set the conflict |
Conflict |
withConflictResolutionProcedure(String conflictResolutionProcedure)
Set the conflict |
Conflict |
withMode(ConflictResolutionMode mode)
Set the mode property: Indicates the conflict resolution mode. |
Methods inherited from java.lang.Object
Constructor Details
ConflictResolutionPolicy
public ConflictResolutionPolicy()
Creates an instance of ConflictResolutionPolicy class.
Method Details
conflictResolutionPath
public String conflictResolutionPath()
Get the conflictResolutionPath property: The conflict resolution path in the case of LastWriterWins mode.
Returns:
conflictResolutionProcedure
public String conflictResolutionProcedure()
Get the conflictResolutionProcedure property: The procedure to resolve conflicts in the case of custom mode.
Returns:
fromJson
public static ConflictResolutionPolicy fromJson(JsonReader jsonReader)
Reads an instance of ConflictResolutionPolicy from the JsonReader.
Parameters:
Returns:
Throws:
mode
public ConflictResolutionMode mode()
Get the mode property: Indicates the conflict resolution mode.
Returns:
toJson
validate
public void validate()
Validates the instance.
withConflictResolutionPath
public ConflictResolutionPolicy withConflictResolutionPath(String conflictResolutionPath)
Set the conflictResolutionPath property: The conflict resolution path in the case of LastWriterWins mode.
Parameters:
Returns:
withConflictResolutionProcedure
public ConflictResolutionPolicy withConflictResolutionProcedure(String conflictResolutionProcedure)
Set the conflictResolutionProcedure property: The procedure to resolve conflicts in the case of custom mode.
Parameters:
Returns:
withMode
public ConflictResolutionPolicy withMode(ConflictResolutionMode mode)
Set the mode property: Indicates the conflict resolution mode.
Parameters:
Returns:
Applies to
Azure SDK for Java