Struct aws_sdk_appsync::types::builders::SyncConfigBuilder
source · #[non_exhaustive]pub struct SyncConfigBuilder { /* private fields */ }
Expand description
A builder for SyncConfig
.
Implementations§
source§impl SyncConfigBuilder
impl SyncConfigBuilder
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 get_conflict_handler(&self) -> &Option<ConflictHandlerType>
pub fn get_conflict_handler(&self) -> &Option<ConflictHandlerType>
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 get_conflict_detection(&self) -> &Option<ConflictDetectionType>
pub fn get_conflict_detection(&self) -> &Option<ConflictDetectionType>
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 get_lambda_conflict_handler_config(
&self
) -> &Option<LambdaConflictHandlerConfig>
pub fn get_lambda_conflict_handler_config( &self ) -> &Option<LambdaConflictHandlerConfig>
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
.
Trait Implementations§
source§impl Clone for SyncConfigBuilder
impl Clone for SyncConfigBuilder
source§fn clone(&self) -> SyncConfigBuilder
fn clone(&self) -> SyncConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SyncConfigBuilder
impl Debug for SyncConfigBuilder
source§impl Default for SyncConfigBuilder
impl Default for SyncConfigBuilder
source§fn default() -> SyncConfigBuilder
fn default() -> SyncConfigBuilder
source§impl PartialEq for SyncConfigBuilder
impl PartialEq for SyncConfigBuilder
source§fn eq(&self, other: &SyncConfigBuilder) -> bool
fn eq(&self, other: &SyncConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.