Struct aws_sdk_appsync::model::sync_config::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for SyncConfig
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn conflict_handler(self, input: ConflictHandlerType) -> Self
pub fn conflict_handler(self, input: ConflictHandlerType) -> Self
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
.
sourcepub fn set_conflict_handler(self, input: Option<ConflictHandlerType>) -> Self
pub fn set_conflict_handler(self, input: Option<ConflictHandlerType>) -> Self
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
.
sourcepub fn conflict_detection(self, input: ConflictDetectionType) -> Self
pub fn conflict_detection(self, input: ConflictDetectionType) -> Self
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.
sourcepub fn set_conflict_detection(self, input: Option<ConflictDetectionType>) -> Self
pub fn set_conflict_detection(self, input: Option<ConflictDetectionType>) -> Self
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.
sourcepub fn lambda_conflict_handler_config(
self,
input: LambdaConflictHandlerConfig
) -> Self
pub fn lambda_conflict_handler_config(
self,
input: LambdaConflictHandlerConfig
) -> Self
The LambdaConflictHandlerConfig
when configuring LAMBDA
as the Conflict Handler.
sourcepub fn set_lambda_conflict_handler_config(
self,
input: Option<LambdaConflictHandlerConfig>
) -> Self
pub fn set_lambda_conflict_handler_config(
self,
input: Option<LambdaConflictHandlerConfig>
) -> Self
The LambdaConflictHandlerConfig
when configuring LAMBDA
as the Conflict Handler.
sourcepub fn build(self) -> SyncConfig
pub fn build(self) -> SyncConfig
Consumes the builder and constructs a SyncConfig
.