Class CfnFunctionConfiguration.SyncConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnFunctionConfiguration.SyncConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionConfiguration.SyncConfigProperty>
- Enclosing interface:
- CfnFunctionConfiguration.SyncConfigProperty
@Stability(Stable)
public static final class CfnFunctionConfiguration.SyncConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionConfiguration.SyncConfigProperty>
A builder for
CfnFunctionConfiguration.SyncConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conflictDetection(String conflictDetection) Sets the value ofCfnFunctionConfiguration.SyncConfigProperty.getConflictDetection()conflictHandler(String conflictHandler) Sets the value ofCfnFunctionConfiguration.SyncConfigProperty.getConflictHandler()lambdaConflictHandlerConfig(IResolvable lambdaConflictHandlerConfig) lambdaConflictHandlerConfig(CfnFunctionConfiguration.LambdaConflictHandlerConfigProperty lambdaConflictHandlerConfig)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conflictDetection
@Stability(Stable) public CfnFunctionConfiguration.SyncConfigProperty.Builder conflictDetection(String conflictDetection) Sets the value ofCfnFunctionConfiguration.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 CfnFunctionConfiguration.SyncConfigProperty.Builder conflictHandler(String conflictHandler) Sets the value ofCfnFunctionConfiguration.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 CfnFunctionConfiguration.SyncConfigProperty.Builder lambdaConflictHandlerConfig(IResolvable lambdaConflictHandlerConfig) - Parameters:
lambdaConflictHandlerConfig- TheLambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.- Returns:
this
-
lambdaConflictHandlerConfig
@Stability(Stable) public CfnFunctionConfiguration.SyncConfigProperty.Builder lambdaConflictHandlerConfig(CfnFunctionConfiguration.LambdaConflictHandlerConfigProperty lambdaConflictHandlerConfig) - Parameters:
lambdaConflictHandlerConfig- TheLambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionConfiguration.SyncConfigProperty>- Returns:
- a new instance of
CfnFunctionConfiguration.SyncConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-