Class DefaultDynamoDbEnhancedClient.Builder
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.client.DefaultDynamoDbEnhancedClient.Builder
- All Implemented Interfaces:
DynamoDbEnhancedClient.Builder,DynamoDbEnhancedResource.Builder
- Enclosing class:
DefaultDynamoDbEnhancedClient
@NotThreadSafe
public static final class DefaultDynamoDbEnhancedClient.Builder
extends Object
implements DynamoDbEnhancedClient.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an enhanced client based on the settings supplied to this builderdynamoDbClient(DynamoDbClient dynamoDbClient) The regular low-level SDK client to use with the enhanced client.extensions(List<DynamoDbEnhancedClientExtension> dynamoDbEnhancedClientExtensions) Specifies the extensions to load with the enhanced client.extensions(DynamoDbEnhancedClientExtension... dynamoDbEnhancedClientExtensions) Specifies the extensions to load with the enhanced client.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:DynamoDbEnhancedClient.BuilderBuilds an enhanced client based on the settings supplied to this builder- Specified by:
buildin interfaceDynamoDbEnhancedClient.Builder- Returns:
- An initialized
DynamoDbEnhancedClient
-
dynamoDbClient
Description copied from interface:DynamoDbEnhancedClient.BuilderThe regular low-level SDK client to use with the enhanced client.- Specified by:
dynamoDbClientin interfaceDynamoDbEnhancedClient.Builder- Parameters:
dynamoDbClient- an initializedDynamoDbClient
-
extensions
public DefaultDynamoDbEnhancedClient.Builder extensions(DynamoDbEnhancedClientExtension... dynamoDbEnhancedClientExtensions) Description copied from interface:DynamoDbEnhancedResource.BuilderSpecifies the extensions to load with the enhanced client. The extensions will be loaded in the strict order they are supplied here. Calling this method will override any bundled extensions that are loaded by default, namely theVersionedRecordExtension, so this extension must be included in the supplied list otherwise it will not be loaded. Providing an empty list here will cause no extensions to get loaded, effectively dropping the default ones.- Specified by:
extensionsin interfaceDynamoDbEnhancedClient.Builder- Specified by:
extensionsin interfaceDynamoDbEnhancedResource.Builder- Parameters:
dynamoDbEnhancedClientExtensions- a list of extensions to load with the enhanced client
-
extensions
public DefaultDynamoDbEnhancedClient.Builder extensions(List<DynamoDbEnhancedClientExtension> dynamoDbEnhancedClientExtensions) Description copied from interface:DynamoDbEnhancedResource.BuilderSpecifies the extensions to load with the enhanced client. The extensions will be loaded in the strict order they are supplied here. Calling this method will override any bundled extensions that are loaded by default, namely theVersionedRecordExtension, so this extension must be included in the supplied list otherwise it will not be loaded. Providing an empty list here will cause no extensions to get loaded, effectively dropping the default ones.- Specified by:
extensionsin interfaceDynamoDbEnhancedClient.Builder- Specified by:
extensionsin interfaceDynamoDbEnhancedResource.Builder- Parameters:
dynamoDbEnhancedClientExtensions- a list of extensions to load with the enhanced client
-