Class CfnResolver.SyncConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnResolver.SyncConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResolver.SyncConfigProperty>
- Enclosing interface:
CfnResolver.SyncConfigProperty
@Stability(Stable)
public static final class CfnResolver.SyncConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResolver.SyncConfigProperty>
A builder for
CfnResolver.SyncConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.conflictDetection
(String conflictDetection) Sets the value ofCfnResolver.SyncConfigProperty.getConflictDetection()
conflictHandler
(String conflictHandler) Sets the value ofCfnResolver.SyncConfigProperty.getConflictHandler()
lambdaConflictHandlerConfig
(IResolvable lambdaConflictHandlerConfig) Sets the value ofCfnResolver.SyncConfigProperty.getLambdaConflictHandlerConfig()
lambdaConflictHandlerConfig
(CfnResolver.LambdaConflictHandlerConfigProperty lambdaConflictHandlerConfig) Sets the value ofCfnResolver.SyncConfigProperty.getLambdaConflictHandlerConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conflictDetection
@Stability(Stable) public CfnResolver.SyncConfigProperty.Builder conflictDetection(String conflictDetection) Sets the value ofCfnResolver.SyncConfigProperty.getConflictDetection()
- Parameters:
conflictDetection
- The Conflict Detection strategy to use. This parameter is required.- VERSION : Detect conflicts based on object versions for this resolver.
- NONE : Do not detect conflicts when invoking this resolver.
- Returns:
this
-
conflictHandler
@Stability(Stable) public CfnResolver.SyncConfigProperty.Builder conflictHandler(String conflictHandler) Sets the value ofCfnResolver.SyncConfigProperty.getConflictHandler()
- 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 AWS Lambda function supplied in the
LambdaConflictHandlerConfig
.
- Returns:
this
-
lambdaConflictHandlerConfig
@Stability(Stable) public CfnResolver.SyncConfigProperty.Builder lambdaConflictHandlerConfig(IResolvable lambdaConflictHandlerConfig) Sets the value ofCfnResolver.SyncConfigProperty.getLambdaConflictHandlerConfig()
- Parameters:
lambdaConflictHandlerConfig
- TheLambdaConflictHandlerConfig
when configuringLAMBDA
as the Conflict Handler.- Returns:
this
-
lambdaConflictHandlerConfig
@Stability(Stable) public CfnResolver.SyncConfigProperty.Builder lambdaConflictHandlerConfig(CfnResolver.LambdaConflictHandlerConfigProperty lambdaConflictHandlerConfig) Sets the value ofCfnResolver.SyncConfigProperty.getLambdaConflictHandlerConfig()
- Parameters:
lambdaConflictHandlerConfig
- TheLambdaConflictHandlerConfig
when configuringLAMBDA
as the Conflict Handler.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResolver.SyncConfigProperty>
- Returns:
- a new instance of
CfnResolver.SyncConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-