@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Get extends Object implements Serializable, Cloneable, StructuredPojo
Specifies an item and related attribute values to retrieve in a TransactGetItem
object.
Constructor and Description |
---|
Get() |
Modifier and Type | Method and Description |
---|---|
Get |
addExpressionAttributeNamesEntry(String key,
String value)
Add a single ExpressionAttributeNames entry
|
Get |
addKeyEntry(String key,
AttributeValue value)
Add a single Key entry
|
Get |
clearExpressionAttributeNamesEntries()
Removes all the entries added into ExpressionAttributeNames.
|
Get |
clearKeyEntries()
Removes all the entries added into Key.
|
Get |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getExpressionAttributeNames()
One or more substitution tokens for attribute names in the ProjectionExpression parameter.
|
Map<String,AttributeValue> |
getKey()
A map of attribute names to
AttributeValue objects that specifies the primary key of the item to
retrieve. |
String |
getProjectionExpression()
A string that identifies one or more attributes of the specified item to retrieve from the table.
|
String |
getTableName()
The name of the table from which to retrieve the specified item.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in the ProjectionExpression parameter.
|
void |
setKey(Map<String,AttributeValue> key)
A map of attribute names to
AttributeValue objects that specifies the primary key of the item to
retrieve. |
void |
setProjectionExpression(String projectionExpression)
A string that identifies one or more attributes of the specified item to retrieve from the table.
|
void |
setTableName(String tableName)
The name of the table from which to retrieve the specified item.
|
String |
toString()
Returns a string representation of this object.
|
Get |
withExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in the ProjectionExpression parameter.
|
Get |
withKey(Map<String,AttributeValue> key)
A map of attribute names to
AttributeValue objects that specifies the primary key of the item to
retrieve. |
Get |
withProjectionExpression(String projectionExpression)
A string that identifies one or more attributes of the specified item to retrieve from the table.
|
Get |
withTableName(String tableName)
The name of the table from which to retrieve the specified item.
|
public Map<String,AttributeValue> getKey()
A map of attribute names to AttributeValue
objects that specifies the primary key of the item to
retrieve.
AttributeValue
objects that specifies the primary key of the
item to retrieve.public void setKey(Map<String,AttributeValue> key)
A map of attribute names to AttributeValue
objects that specifies the primary key of the item to
retrieve.
key
- A map of attribute names to AttributeValue
objects that specifies the primary key of the item
to retrieve.public Get withKey(Map<String,AttributeValue> key)
A map of attribute names to AttributeValue
objects that specifies the primary key of the item to
retrieve.
key
- A map of attribute names to AttributeValue
objects that specifies the primary key of the item
to retrieve.public Get addKeyEntry(String key, AttributeValue value)
public Get clearKeyEntries()
public void setTableName(String tableName)
The name of the table from which to retrieve the specified item.
tableName
- The name of the table from which to retrieve the specified item.public String getTableName()
The name of the table from which to retrieve the specified item.
public Get withTableName(String tableName)
The name of the table from which to retrieve the specified item.
tableName
- The name of the table from which to retrieve the specified item.public void setProjectionExpression(String projectionExpression)
A string that identifies one or more attributes of the specified item to retrieve from the table. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes of the specified item are returned. If any of the requested attributes are not found, they do not appear in the result.
projectionExpression
- A string that identifies one or more attributes of the specified item to retrieve from the table. The
attributes in the expression must be separated by commas. If no attribute names are specified, then all
attributes of the specified item are returned. If any of the requested attributes are not found, they do
not appear in the result.public String getProjectionExpression()
A string that identifies one or more attributes of the specified item to retrieve from the table. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes of the specified item are returned. If any of the requested attributes are not found, they do not appear in the result.
public Get withProjectionExpression(String projectionExpression)
A string that identifies one or more attributes of the specified item to retrieve from the table. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes of the specified item are returned. If any of the requested attributes are not found, they do not appear in the result.
projectionExpression
- A string that identifies one or more attributes of the specified item to retrieve from the table. The
attributes in the expression must be separated by commas. If no attribute names are specified, then all
attributes of the specified item are returned. If any of the requested attributes are not found, they do
not appear in the result.public Map<String,String> getExpressionAttributeNames()
One or more substitution tokens for attribute names in the ProjectionExpression parameter.
public void setExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in the ProjectionExpression parameter.
expressionAttributeNames
- One or more substitution tokens for attribute names in the ProjectionExpression parameter.public Get withExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in the ProjectionExpression parameter.
expressionAttributeNames
- One or more substitution tokens for attribute names in the ProjectionExpression parameter.public Get addExpressionAttributeNamesEntry(String key, String value)
public Get clearExpressionAttributeNamesEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2022. All rights reserved.