Class SyncConfig
- java.lang.Object
-
- software.amazon.awssdk.services.appsync.model.SyncConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SyncConfig.Builder,SyncConfig>
@Generated("software.amazon.awssdk:codegen") public final class SyncConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SyncConfig.Builder,SyncConfig>
Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSyncConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncConfig.Builderbuilder()ConflictDetectionTypeconflictDetection()The Conflict Detection strategy to use.StringconflictDetectionAsString()The Conflict Detection strategy to use.ConflictHandlerTypeconflictHandler()The Conflict Resolution strategy to perform in the event of a conflict.StringconflictHandlerAsString()The Conflict Resolution strategy to perform in the event of a conflict.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LambdaConflictHandlerConfiglambdaConflictHandlerConfig()TheLambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.List<SdkField<?>>sdkFields()static Class<? extends SyncConfig.Builder>serializableBuilderClass()SyncConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
conflictHandler
public final ConflictHandlerType 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 Lambda function supplied in the
LambdaConflictHandlerConfig.
If the service returns an enum value that is not available in the current SDK version,
conflictHandlerwill returnConflictHandlerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconflictHandlerAsString().- Returns:
- 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.
-
- See Also:
ConflictHandlerType
-
-
conflictHandlerAsString
public final String conflictHandlerAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
conflictHandlerwill returnConflictHandlerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconflictHandlerAsString().- Returns:
- 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.
-
- See Also:
ConflictHandlerType
-
-
conflictDetection
public final ConflictDetectionType conflictDetection()
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.
If the service returns an enum value that is not available in the current SDK version,
conflictDetectionwill returnConflictDetectionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconflictDetectionAsString().- Returns:
- 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.
-
- See Also:
ConflictDetectionType
-
-
conflictDetectionAsString
public final String conflictDetectionAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
conflictDetectionwill returnConflictDetectionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconflictDetectionAsString().- Returns:
- 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.
-
- See Also:
ConflictDetectionType
-
-
lambdaConflictHandlerConfig
public final LambdaConflictHandlerConfig lambdaConflictHandlerConfig()
The
LambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.- Returns:
- The
LambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.
-
toBuilder
public SyncConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SyncConfig.Builder,SyncConfig>
-
builder
public static SyncConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends SyncConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-