@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.
Specifies which Conflict Detection strategy and Resolution strategy to use 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 final 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
.
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 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 final String conflictHandlerAsString()
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
.
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 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 final 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.
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 invoking this resolver.
ConflictDetectionTypepublic final String conflictDetectionAsString()
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.
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 invoking this resolver.
ConflictDetectionTypepublic final 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 final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.