Class EncryptionContext.Builder
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.datamodeling.encryption.EncryptionContext.Builder
-
- Enclosing class:
- EncryptionContext
public static final class EncryptionContext.Builder extends Object
Builder class forEncryptionContext. Mutable objects (other thandeveloperContext) will undergo a defensive copy prior to being stored in the builder. This class is not thread-safe.
-
-
Constructor Summary
Constructors Constructor Description Builder()Defaults all fields tonull.Builder(EncryptionContext context)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionContextbuild()Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue>getAttributeValues()ObjectgetDeveloperContext()StringgetHashKeyName()Map<String,String>getMaterialDescription()Class<?>getModeledClass()StringgetRangeKeyName()StringgetTableName()EncryptionContext.BuilderwithAttributeValues(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributeValues)EncryptionContext.BuilderwithDeveloperContext(Object developerContext)EncryptionContext.BuilderwithHashKeyName(String hashKeyName)EncryptionContext.BuilderwithMaterialDescription(Map<String,String> materialDescription)EncryptionContext.BuilderwithModeledClass(Class<?> modeledClass)EncryptionContext.BuilderwithRangeKeyName(String rangeKeyName)EncryptionContext.BuilderwithTableName(String tableName)
-
-
-
Constructor Detail
-
Builder
public Builder()
Defaults all fields tonull.
-
Builder
public Builder(EncryptionContext context)
Copy constructor. This will perform a shallow copy of theDeveloperContext.
-
-
Method Detail
-
build
public EncryptionContext build()
-
withTableName
public EncryptionContext.Builder withTableName(String tableName)
-
withAttributeValues
public EncryptionContext.Builder withAttributeValues(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributeValues)
-
withModeledClass
public EncryptionContext.Builder withModeledClass(Class<?> modeledClass)
-
withDeveloperContext
public EncryptionContext.Builder withDeveloperContext(Object developerContext)
-
withHashKeyName
public EncryptionContext.Builder withHashKeyName(String hashKeyName)
-
withRangeKeyName
public EncryptionContext.Builder withRangeKeyName(String rangeKeyName)
-
withMaterialDescription
public EncryptionContext.Builder withMaterialDescription(Map<String,String> materialDescription)
-
getTableName
public String getTableName()
-
getAttributeValues
public Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> getAttributeValues()
-
getModeledClass
public Class<?> getModeledClass()
-
getDeveloperContext
public Object getDeveloperContext()
-
getHashKeyName
public String getHashKeyName()
-
getRangeKeyName
public String getRangeKeyName()
-
-