public static class DynamoDBMapperConfig.Builder extends Object
Constructor and Description |
---|
Builder()
Creates a new builder initialized with the
DynamoDBMapperConfig.DEFAULT values. |
public Builder()
DynamoDBMapperConfig.DEFAULT
values.public DynamoDBMapperConfig.SaveBehavior getSaveBehavior()
public void setSaveBehavior(DynamoDBMapperConfig.SaveBehavior value)
value
- the new save behaviorpublic DynamoDBMapperConfig.Builder withSaveBehavior(DynamoDBMapperConfig.SaveBehavior value)
value
- the new save behaviorpublic DynamoDBMapperConfig.ConsistentReads getConsistentReads()
public void setConsistentReads(DynamoDBMapperConfig.ConsistentReads value)
value
- the new consistent read behavior.public DynamoDBMapperConfig.Builder withConsistentReads(DynamoDBMapperConfig.ConsistentReads value)
value
- the new consistent read behaviorpublic DynamoDBMapperConfig.TableNameOverride getTableNameOverride()
public void setTableNameOverride(DynamoDBMapperConfig.TableNameOverride value)
value
- the new table name overridepublic DynamoDBMapperConfig.Builder withTableNameOverride(DynamoDBMapperConfig.TableNameOverride value)
value
- the new table name overridepublic DynamoDBMapperConfig.TableNameResolver getTableNameResolver()
public void setTableNameResolver(DynamoDBMapperConfig.TableNameResolver value)
value
- the new table name resolverpublic DynamoDBMapperConfig.Builder withTableNameResolver(DynamoDBMapperConfig.TableNameResolver value)
value
- the new table name resolverpublic DynamoDBMapperConfig.ObjectTableNameResolver getObjectTableNameResolver()
public void setObjectTableNameResolver(DynamoDBMapperConfig.ObjectTableNameResolver value)
value
- the new object table name resolverpublic DynamoDBMapperConfig.Builder withObjectTableNameResolver(DynamoDBMapperConfig.ObjectTableNameResolver value)
value
- the new object table name resolverpublic DynamoDBMapperConfig.PaginationLoadingStrategy getPaginationLoadingStrategy()
public void setPaginationLoadingStrategy(DynamoDBMapperConfig.PaginationLoadingStrategy value)
value
- the new pagination loading strategypublic DynamoDBMapperConfig.Builder withPaginationLoadingStrategy(DynamoDBMapperConfig.PaginationLoadingStrategy value)
value
- the new pagination loading strategypublic RequestMetricCollector getRequestMetricCollector()
public void setRequestMetricCollector(RequestMetricCollector value)
value
- the new request metric collectorpublic DynamoDBMapperConfig.Builder withRequestMetricCollector(RequestMetricCollector value)
value
- the new request metric collectorpublic ConversionSchema getConversionSchema()
public void setConversionSchema(ConversionSchema value)
value
- the new conversion schemapublic DynamoDBMapperConfig.Builder withConversionSchema(ConversionSchema value)
value
- the new conversion schemapublic DynamoDBMapperConfig.BatchWriteRetryStrategy getBatchWriteRetryStrategy()
public void setBatchWriteRetryStrategy(DynamoDBMapperConfig.BatchWriteRetryStrategy value)
value
- the new BatchWriteRetryStrategypublic DynamoDBMapperConfig.Builder withBatchWriteRetryStrategy(DynamoDBMapperConfig.BatchWriteRetryStrategy value)
value
- the new BatchWriteRetryStrategypublic DynamoDBMapperConfig.BatchLoadRetryStrategy getBatchLoadRetryStrategy()
public void setBatchLoadRetryStrategy(DynamoDBMapperConfig.BatchLoadRetryStrategy value)
value
- the new BatchLoadRetryStrategypublic DynamoDBMapperConfig.Builder withBatchLoadRetryStrategy(DynamoDBMapperConfig.BatchLoadRetryStrategy value)
value
- the new BatchLoadRetryStrategypublic final DynamoDBTypeConverterFactory getTypeConverterFactory()
public final void setTypeConverterFactory(DynamoDBTypeConverterFactory value)
value
- the new type-converter factorypublic final DynamoDBMapperConfig.Builder withTypeConverterFactory(DynamoDBTypeConverterFactory value)
To override standard type-conversions,
DynamoDBMapperConfig config = DynamoDBMapperConfig.builder() .withTypeConverterFactory(DynamoDBTypeConverterFactory.standard().override() .with(String.class, MyObject.class, new StringToMyObjectConverter()) .build()) .build();
Then, on the property, specify the attribute binding,
@DynamoDBTyped(DynamoDBAttributeType.S) public MyObject getMyObject()
value
- the new type-converter factorypublic DynamoDBMapperConfig build()
DynamoDBMapperConfig
object.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.