/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.dynamodbv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies an item and related attribute values to retrieve in a TransactGetItem
object.
*
* A map of attribute names to AttributeValue
objects that specifies the primary key of the item to
* retrieve.
*
* The name of the table from which to retrieve the specified item. *
*/ private String tableName; /** ** 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. *
*/ private String projectionExpression; /** ** One or more substitution tokens for attribute names in the ProjectionExpression parameter. *
*/ private java.util.Map
* 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 java.util.Map
* 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(java.util.Map
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Get withKey(java.util.Map* The name of the table from which to retrieve the specified item. *
* * @param tableName * The name of the table from which to retrieve the specified item. */ public void setTableName(String tableName) { this.tableName = tableName; } /** ** The name of the table from which to retrieve the specified item. *
* * @return The name of the table from which to retrieve the specified item. */ public String getTableName() { return this.tableName; } /** ** The name of the table from which to retrieve the specified item. *
* * @param tableName * The name of the table from which to retrieve the specified item. * @return Returns a reference to this object so that method calls can be chained together. */ public Get withTableName(String tableName) { setTableName(tableName); return this; } /** ** 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. *
* * @param 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 void setProjectionExpression(String projectionExpression) { this.projectionExpression = 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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Get withProjectionExpression(String projectionExpression) { setProjectionExpression(projectionExpression); return this; } /** ** One or more substitution tokens for attribute names in the ProjectionExpression parameter. *
* * @return One or more substitution tokens for attribute names in the ProjectionExpression parameter. */ public java.util.Map* One or more substitution tokens for attribute names in the ProjectionExpression parameter. *
* * @param expressionAttributeNames * One or more substitution tokens for attribute names in the ProjectionExpression parameter. */ public void setExpressionAttributeNames(java.util.Map* One or more substitution tokens for attribute names in the ProjectionExpression parameter. *
* * @param expressionAttributeNames * One or more substitution tokens for attribute names in the ProjectionExpression parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public Get withExpressionAttributeNames(java.util.Map