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 Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultDynamoDbEnhancedClient
build()
Builds an enhanced client based on the settings supplied to this builderDefaultDynamoDbEnhancedClient.Builder
dynamoDbClient(DynamoDbClient dynamoDbClient)
The regular low-level SDK client to use with the enhanced client.DefaultDynamoDbEnhancedClient.Builder
extensions(List<DynamoDbEnhancedClientExtension> dynamoDbEnhancedClientExtensions)
Specifies the extensions to load with the enhanced client.DefaultDynamoDbEnhancedClient.Builder
extensions(DynamoDbEnhancedClientExtension... dynamoDbEnhancedClientExtensions)
Specifies the extensions to load with the enhanced client.
-
-
-
Method Detail
-
build
public DefaultDynamoDbEnhancedClient build()
Description copied from interface:DynamoDbEnhancedClient.Builder
Builds an enhanced client based on the settings supplied to this builder- Specified by:
build
in interfaceDynamoDbEnhancedClient.Builder
- Returns:
- An initialized
DynamoDbEnhancedClient
-
dynamoDbClient
public DefaultDynamoDbEnhancedClient.Builder dynamoDbClient(DynamoDbClient dynamoDbClient)
Description copied from interface:DynamoDbEnhancedClient.Builder
The regular low-level SDK client to use with the enhanced client.- Specified by:
dynamoDbClient
in interfaceDynamoDbEnhancedClient.Builder
- Parameters:
dynamoDbClient
- an initializedDynamoDbClient
-
extensions
public DefaultDynamoDbEnhancedClient.Builder extensions(DynamoDbEnhancedClientExtension... dynamoDbEnhancedClientExtensions)
Description copied from interface:DynamoDbEnhancedResource.Builder
Specifies 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:
extensions
in interfaceDynamoDbEnhancedClient.Builder
- Specified by:
extensions
in 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.Builder
Specifies 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:
extensions
in interfaceDynamoDbEnhancedClient.Builder
- Specified by:
extensions
in interfaceDynamoDbEnhancedResource.Builder
- Parameters:
dynamoDbEnhancedClientExtensions
- a list of extensions to load with the enhanced client
-
-