@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SyncConfig extends Object implements Serializable, Cloneable, StructuredPojo
Describes a Sync configuration for a resolver.
Contains information on which Conflict Detection as well as Resolution strategy should be performed when the resolver is invoked.
| Constructor and Description |
|---|
SyncConfig() |
| Modifier and Type | Method and Description |
|---|---|
SyncConfig |
clone() |
boolean |
equals(Object obj) |
String |
getConflictDetection()
The Conflict Detection strategy to use.
|
String |
getConflictHandler()
The Conflict Resolution strategy to perform in the event of a conflict.
|
LambdaConflictHandlerConfig |
getLambdaConflictHandlerConfig()
The
LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setConflictDetection(String conflictDetection)
The Conflict Detection strategy to use.
|
void |
setConflictHandler(String conflictHandler)
The Conflict Resolution strategy to perform in the event of a conflict.
|
void |
setLambdaConflictHandlerConfig(LambdaConflictHandlerConfig lambdaConflictHandlerConfig)
The
LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler. |
String |
toString()
Returns a string representation of this object.
|
SyncConfig |
withConflictDetection(ConflictDetectionType conflictDetection)
The Conflict Detection strategy to use.
|
SyncConfig |
withConflictDetection(String conflictDetection)
The Conflict Detection strategy to use.
|
SyncConfig |
withConflictHandler(ConflictHandlerType conflictHandler)
The Conflict Resolution strategy to perform in the event of a conflict.
|
SyncConfig |
withConflictHandler(String conflictHandler)
The Conflict Resolution strategy to perform in the event of a conflict.
|
SyncConfig |
withLambdaConflictHandlerConfig(LambdaConflictHandlerConfig lambdaConflictHandlerConfig)
The
LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler. |
public void setConflictHandler(String conflictHandler)
The Conflict Resolution strategy to perform in the event of a conflict.
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions do not match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.
conflictHandler - The Conflict Resolution strategy to perform in the event of a conflict.
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions do not match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.
ConflictHandlerTypepublic String getConflictHandler()
The Conflict Resolution strategy to perform in the event of a conflict.
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions do not match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions do not match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.
ConflictHandlerTypepublic SyncConfig withConflictHandler(String conflictHandler)
The Conflict Resolution strategy to perform in the event of a conflict.
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions do not match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.
conflictHandler - The Conflict Resolution strategy to perform in the event of a conflict.
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions do not match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.
ConflictHandlerTypepublic SyncConfig withConflictHandler(ConflictHandlerType conflictHandler)
The Conflict Resolution strategy to perform in the event of a conflict.
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions do not match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.
conflictHandler - The Conflict Resolution strategy to perform in the event of a conflict.
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions do not match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.
ConflictHandlerTypepublic void setConflictDetection(String conflictDetection)
The Conflict Detection strategy to use.
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when executing this resolver.
conflictDetection - The Conflict Detection strategy to use.
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when executing this resolver.
ConflictDetectionTypepublic String getConflictDetection()
The Conflict Detection strategy to use.
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when executing this resolver.
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when executing this resolver.
ConflictDetectionTypepublic SyncConfig withConflictDetection(String conflictDetection)
The Conflict Detection strategy to use.
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when executing this resolver.
conflictDetection - The Conflict Detection strategy to use.
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when executing this resolver.
ConflictDetectionTypepublic SyncConfig withConflictDetection(ConflictDetectionType conflictDetection)
The Conflict Detection strategy to use.
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when executing this resolver.
conflictDetection - The Conflict Detection strategy to use.
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when executing this resolver.
ConflictDetectionTypepublic void setLambdaConflictHandlerConfig(LambdaConflictHandlerConfig lambdaConflictHandlerConfig)
The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.
lambdaConflictHandlerConfig - The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.public LambdaConflictHandlerConfig getLambdaConflictHandlerConfig()
The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.
LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.public SyncConfig withLambdaConflictHandlerConfig(LambdaConflictHandlerConfig lambdaConflictHandlerConfig)
The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.
lambdaConflictHandlerConfig - The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.public String toString()
toString in class ObjectObject.toString()public SyncConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.