@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.
Specifies which Conflict Detection strategy and Resolution strategy to use 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)
Marshalls this structured data using the given
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 don't match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with an 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 don't match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with an 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 don't match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with an Lambda function supplied in the LambdaConflictHandlerConfig
.
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with an 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 don't match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with an 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 don't match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with an 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 don't match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with an 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 don't match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with an 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 invoking 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 invoking 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 invoking this resolver.
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when invoking 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 invoking 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 invoking 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 invoking 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 invoking 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)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.