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 EncryptionContext
build()
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue>
getAttributeValues()
Object
getDeveloperContext()
String
getHashKeyName()
Map<String,String>
getMaterialDescription()
Class<?>
getModeledClass()
String
getRangeKeyName()
String
getTableName()
EncryptionContext.Builder
withAttributeValues(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributeValues)
EncryptionContext.Builder
withDeveloperContext(Object developerContext)
EncryptionContext.Builder
withHashKeyName(String hashKeyName)
EncryptionContext.Builder
withMaterialDescription(Map<String,String> materialDescription)
EncryptionContext.Builder
withModeledClass(Class<?> modeledClass)
EncryptionContext.Builder
withRangeKeyName(String rangeKeyName)
EncryptionContext.Builder
withTableName(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()
-
-