Interface SyncConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SyncConfig.Builder,
,SyncConfig> SdkBuilder<SyncConfig.Builder,
,SyncConfig> SdkPojo
- Enclosing class:
SyncConfig
-
Method Summary
Modifier and TypeMethodDescriptionconflictDetection
(String conflictDetection) The Conflict Detection strategy to use.conflictDetection
(ConflictDetectionType conflictDetection) The Conflict Detection strategy to use.conflictHandler
(String conflictHandler) The Conflict Resolution strategy to perform in the event of a conflict.conflictHandler
(ConflictHandlerType conflictHandler) The Conflict Resolution strategy to perform in the event of a conflict.default SyncConfig.Builder
lambdaConflictHandlerConfig
(Consumer<LambdaConflictHandlerConfig.Builder> lambdaConflictHandlerConfig) TheLambdaConflictHandlerConfig
when configuringLAMBDA
as the Conflict Handler.lambdaConflictHandlerConfig
(LambdaConflictHandlerConfig lambdaConflictHandlerConfig) TheLambdaConflictHandlerConfig
when configuringLAMBDA
as the Conflict Handler.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
.
- Parameters:
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
.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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
.
- Parameters:
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
.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
lambdaConflictHandlerConfig
SyncConfig.Builder lambdaConflictHandlerConfig(LambdaConflictHandlerConfig lambdaConflictHandlerConfig) The
LambdaConflictHandlerConfig
when configuringLAMBDA
as the Conflict Handler.- Parameters:
lambdaConflictHandlerConfig
- TheLambdaConflictHandlerConfig
when configuringLAMBDA
as the Conflict Handler.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaConflictHandlerConfig
default SyncConfig.Builder lambdaConflictHandlerConfig(Consumer<LambdaConflictHandlerConfig.Builder> lambdaConflictHandlerConfig) The
This is a convenience method that creates an instance of theLambdaConflictHandlerConfig
when configuringLAMBDA
as the Conflict Handler.LambdaConflictHandlerConfig.Builder
avoiding the need to create one manually viaLambdaConflictHandlerConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolambdaConflictHandlerConfig(LambdaConflictHandlerConfig)
.- Parameters:
lambdaConflictHandlerConfig
- a consumer that will call methods onLambdaConflictHandlerConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-