@Generated(value="software.amazon.awssdk:codegen") public final class SyncConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SyncConfig.Builder,SyncConfig>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SyncConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SyncConfig.Builder |
builder() |
ConflictDetectionType |
conflictDetection()
The Conflict Detection strategy to use.
|
String |
conflictDetectionAsString()
The Conflict Detection strategy to use.
|
ConflictHandlerType |
conflictHandler()
The Conflict Resolution strategy to perform in the event of a conflict.
|
String |
conflictHandlerAsString()
The Conflict Resolution strategy to perform in the event of a conflict.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
LambdaConflictHandlerConfig |
lambdaConflictHandlerConfig()
The
LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SyncConfig.Builder> |
serializableBuilderClass() |
SyncConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
If the service returns an enum value that is not available in the current SDK version, conflictHandler
will return ConflictHandlerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from conflictHandlerAsString().
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 conflictHandlerAsString()
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.
If the service returns an enum value that is not available in the current SDK version, conflictHandler
will return ConflictHandlerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from conflictHandlerAsString().
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 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.
If the service returns an enum value that is not available in the current SDK version, conflictDetection
will return ConflictDetectionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from conflictDetectionAsString().
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when executing this resolver.
ConflictDetectionTypepublic String conflictDetectionAsString()
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.
If the service returns an enum value that is not available in the current SDK version, conflictDetection
will return ConflictDetectionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from conflictDetectionAsString().
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when executing this resolver.
ConflictDetectionTypepublic LambdaConflictHandlerConfig lambdaConflictHandlerConfig()
The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.
LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.public SyncConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SyncConfig.Builder,SyncConfig>public static SyncConfig.Builder builder()
public static Class<? extends SyncConfig.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.