public class Key extends Object
| Constructor and Description |
|---|
Key()
Constructs a new Key object.
|
Key(Map<String,AttributeValue> attributes)
Constructs a new Key object.
|
Key(String attributeName,
AttributeValue value)
Constructs a new Key object.
|
Key(String hashKeyName,
AttributeValue hashKeyValue,
String rangeKeyName,
AttributeValue rangeKeyValue)
Constructs a new Key object.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,AttributeValue> |
getAttributes()
Get this object's attribute map with name and value.
|
void |
setAttributes(Map<String,AttributeValue> attributes)
Set this object with a given attribute value map.
|
protected Map<String,Object> |
toJsonObj() |
String |
toString()
Return a string representation of the object.
|
Key |
withAttribute(String attributeName,
AttributeValue value)
The method set attribute name and attribute value with input parameters for a key.
|
Key |
withAttributes(Map<String,AttributeValue> attributes)
Set this object with a given attribute value map.
|
public Key()
public Key(String attributeName, AttributeValue value)
attributeName - The attribute name to set for a key.value - The attribute value to set for a key.public Key(String hashKeyName, AttributeValue hashKeyValue, String rangeKeyName, AttributeValue rangeKeyValue)
hashKeyName - The attribute name to set for a hashKey.hashKeyValue - The attribute value to set for a hashKey.rangeKeyName - The attribute name to set for a rangeKey.rangeKeyValue - The attribute value to set for a rangeKey.public Key(Map<String,AttributeValue> attributes)
attributes - An attribute map with name and value to set for a key.public Key withAttribute(String attributeName, AttributeValue value)
attributeName - The attribute name to set for a key.value - The attribute value to set for a key.public Map<String,AttributeValue> getAttributes()
public void setAttributes(Map<String,AttributeValue> attributes)
attributes - An attribute value map to be set for this object.public Key withAttributes(Map<String,AttributeValue> attributes)
attributes - An attribute value map to be set for this object.public String toString()
Copyright © 2023. All rights reserved.