com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper
Class DynamoDBMapperConfig.Builder
java.lang.Object
com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.DynamoDBMapperConfig.Builder
- Enclosing class:
- DynamoDBMapperConfig
public static class DynamoDBMapperConfig.Builder
- extends java.lang.Object
A fluent builder for DynamoDBMapperConfig objects.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamoDBMapperConfig.Builder
public DynamoDBMapperConfig.Builder()
- Creates a new builder initialized with the
DynamoDBMapperConfig.DEFAULT
values.
getSaveBehavior
public DynamoDBMapperConfig.SaveBehavior getSaveBehavior()
- Returns:
- the currently-configured save behavior
setSaveBehavior
public void setSaveBehavior(DynamoDBMapperConfig.SaveBehavior value)
- Parameters:
value
- the new save behavior
withSaveBehavior
public DynamoDBMapperConfig.Builder withSaveBehavior(DynamoDBMapperConfig.SaveBehavior value)
- Parameters:
value
- the new save behavior
- Returns:
- this builder
getConsistentReads
public DynamoDBMapperConfig.ConsistentReads getConsistentReads()
- Returns:
- the currently-configured consistent read behavior
setConsistentReads
public void setConsistentReads(DynamoDBMapperConfig.ConsistentReads value)
- Parameters:
value
- the new consistent read behavior
withConsistentReads
public DynamoDBMapperConfig.Builder withConsistentReads(DynamoDBMapperConfig.ConsistentReads value)
- Parameters:
value
- the new consistent read behavior
- Returns:
- this builder
getTableNameOverride
public DynamoDBMapperConfig.TableNameOverride getTableNameOverride()
- Returns:
- the current table name override
setTableNameOverride
public void setTableNameOverride(DynamoDBMapperConfig.TableNameOverride value)
- Parameters:
value
- the new table name override
withTableNameOverride
public DynamoDBMapperConfig.Builder withTableNameOverride(DynamoDBMapperConfig.TableNameOverride value)
- Parameters:
value
- the new table name override
- Returns:
- this builder
getTableNameResolver
public DynamoDBMapperConfig.TableNameResolver getTableNameResolver()
- Returns:
- the current table name resolver
setTableNameResolver
public void setTableNameResolver(DynamoDBMapperConfig.TableNameResolver value)
- Parameters:
value
- the new table name resolver
withTableNameResolver
public DynamoDBMapperConfig.Builder withTableNameResolver(DynamoDBMapperConfig.TableNameResolver value)
- Parameters:
value
- the new table name resolver
- Returns:
- this builder
getObjectTableNameResolver
public DynamoDBMapperConfig.ObjectTableNameResolver getObjectTableNameResolver()
- Returns:
- the current object table name resolver
setObjectTableNameResolver
public void setObjectTableNameResolver(DynamoDBMapperConfig.ObjectTableNameResolver value)
- Parameters:
value
- the new object table name resolver
withObjectTableNameResolver
public DynamoDBMapperConfig.Builder withObjectTableNameResolver(DynamoDBMapperConfig.ObjectTableNameResolver value)
- Parameters:
value
- the new object table name resolver
- Returns:
- this builder
getPaginationLoadingStrategy
public DynamoDBMapperConfig.PaginationLoadingStrategy getPaginationLoadingStrategy()
- Returns:
- the currently-configured pagination loading strategy
setPaginationLoadingStrategy
public void setPaginationLoadingStrategy(DynamoDBMapperConfig.PaginationLoadingStrategy value)
- Parameters:
value
- the new pagination loading strategy
withPaginationLoadingStrategy
public DynamoDBMapperConfig.Builder withPaginationLoadingStrategy(DynamoDBMapperConfig.PaginationLoadingStrategy value)
- Parameters:
value
- the new pagination loading strategy
- Returns:
- this builder
getRequestMetricCollector
public com.amazonaws.metrics.RequestMetricCollector getRequestMetricCollector()
- Returns:
- the currently-configured request metric collector
setRequestMetricCollector
public void setRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector value)
- Parameters:
value
- the new request metric collector
withRequestMetricCollector
public DynamoDBMapperConfig.Builder withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector value)
- Parameters:
value
- the new request metric collector
- Returns:
- this builder
getConversionSchema
public ConversionSchema getConversionSchema()
- Returns:
- the current conversion schema
setConversionSchema
public void setConversionSchema(ConversionSchema value)
- Parameters:
value
- the new conversion schema
withConversionSchema
public DynamoDBMapperConfig.Builder withConversionSchema(ConversionSchema value)
- Parameters:
value
- the new conversion schema
- Returns:
- this builder
build
public DynamoDBMapperConfig build()
- Builds a new
DynamoDBMapperConfig
object.
- Returns:
- the new, immutable config object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.