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
impl StructuralPartialEq for SyncConfigBuilder
Auto Trait Implementations§
impl Freeze for SyncConfigBuilder
impl RefUnwindSafe for SyncConfigBuilder
impl Send for SyncConfigBuilder
impl Sync for SyncConfigBuilder
impl Unpin for SyncConfigBuilder
impl UnwindSafe for SyncConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more