7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/dynamodb/model/ReturnConsumedCapacity.h>
13#include <aws/dynamodb/model/AttributeValue.h>
56 template<
typename TableNameT = Aws::String>
57 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet =
true; m_tableName = std::forward<TableNameT>(value); }
58 template<
typename TableNameT = Aws::String>
72 template<
typename KeyT = Aws::Map<Aws::String, AttributeValue>>
73 void SetKey(KeyT&& value) { m_keyHasBeenSet =
true; m_key = std::forward<KeyT>(value); }
74 template<
typename KeyT = Aws::Map<Aws::String, AttributeValue>>
76 template<
typename KeyKeyT = Aws::String,
typename KeyValueT = AttributeValue>
78 m_keyHasBeenSet =
true; m_key.emplace(std::forward<KeyKeyT>(key), std::forward<KeyValueT>(value));
return *
this;
91 template<
typename AttributesToGetT = Aws::Vector<Aws::String>>
92 void SetAttributesToGet(AttributesToGetT&& value) { m_attributesToGetHasBeenSet =
true; m_attributesToGet = std::forward<AttributesToGetT>(value); }
93 template<
typename AttributesToGetT = Aws::Vector<Aws::String>>
95 template<
typename AttributesToGetT = Aws::String>
96 GetItemRequest&
AddAttributesToGet(AttributesToGetT&& value) { m_attributesToGetHasBeenSet =
true; m_attributesToGet.emplace_back(std::forward<AttributesToGetT>(value));
return *
this; }
107 inline void SetConsistentRead(
bool value) { m_consistentReadHasBeenSet =
true; m_consistentRead = value; }
132 template<
typename ProjectionExpressionT = Aws::String>
133 void SetProjectionExpression(ProjectionExpressionT&& value) { m_projectionExpressionHasBeenSet =
true; m_projectionExpression = std::forward<ProjectionExpressionT>(value); }
134 template<
typename ProjectionExpressionT = Aws::String>
166 template<
typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
167 void SetExpressionAttributeNames(ExpressionAttributeNamesT&& value) { m_expressionAttributeNamesHasBeenSet =
true; m_expressionAttributeNames = std::forward<ExpressionAttributeNamesT>(value); }
168 template<
typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
170 template<
typename ExpressionAttributeNamesKeyT = Aws::String,
typename ExpressionAttributeNamesValueT = Aws::String>
172 m_expressionAttributeNamesHasBeenSet =
true; m_expressionAttributeNames.emplace(std::forward<ExpressionAttributeNamesKeyT>(key), std::forward<ExpressionAttributeNamesValueT>(value));
return *
this;
178 bool m_tableNameHasBeenSet =
false;
181 bool m_keyHasBeenSet =
false;
184 bool m_attributesToGetHasBeenSet =
false;
186 bool m_consistentRead{
false};
187 bool m_consistentReadHasBeenSet =
false;
190 bool m_returnConsumedCapacityHasBeenSet =
false;
193 bool m_projectionExpressionHasBeenSet =
false;
196 bool m_expressionAttributeNamesHasBeenSet =
false;
Aws::Endpoint::EndpointParameters EndpointParameters
bool ExpressionAttributeNamesHasBeenSet() const
void SetExpressionAttributeNames(ExpressionAttributeNamesT &&value)
void SetKey(KeyT &&value)
bool ReturnConsumedCapacityHasBeenSet() const
GetItemRequest & WithProjectionExpression(ProjectionExpressionT &&value)
bool GetConsistentRead() const
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
GetItemRequest & WithConsistentRead(bool value)
bool TableNameHasBeenSet() const
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetItemRequest & WithKey(KeyT &&value)
GetItemRequest & WithExpressionAttributeNames(ExpressionAttributeNamesT &&value)
bool AttributesToGetHasBeenSet() const
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
void SetReturnConsumedCapacity(ReturnConsumedCapacity value)
GetItemRequest & AddAttributesToGet(AttributesToGetT &&value)
GetItemRequest & WithTableName(TableNameT &&value)
void SetProjectionExpression(ProjectionExpressionT &&value)
AWS_DYNAMODB_API GetItemRequest()=default
virtual const char * GetServiceRequestName() const override
void SetAttributesToGet(AttributesToGetT &&value)
GetItemRequest & AddKey(KeyKeyT &&key, KeyValueT &&value)
const Aws::String & GetProjectionExpression() const
GetItemRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity value)
GetItemRequest & AddExpressionAttributeNames(ExpressionAttributeNamesKeyT &&key, ExpressionAttributeNamesValueT &&value)
const Aws::String & GetTableName() const
GetItemRequest & WithAttributesToGet(AttributesToGetT &&value)
void SetTableName(TableNameT &&value)
void SetConsistentRead(bool value)
ReturnConsumedCapacity GetReturnConsumedCapacity() const
bool KeyHasBeenSet() const
bool ProjectionExpressionHasBeenSet() const
bool ConsistentReadHasBeenSet() const
const Aws::Vector< Aws::String > & GetAttributesToGet() const
AWS_DYNAMODB_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector