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/dynamodb/model/Select.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/dynamodb/model/ConditionalOperator.h>
14#include <aws/dynamodb/model/ReturnConsumedCapacity.h>
15#include <aws/dynamodb/model/Condition.h>
16#include <aws/dynamodb/model/AttributeValue.h>
59 template<
typename TableNameT = Aws::String>
60 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet =
true; m_tableName = std::forward<TableNameT>(value); }
61 template<
typename TableNameT = Aws::String>
74 template<
typename IndexNameT = Aws::String>
75 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet =
true; m_indexName = std::forward<IndexNameT>(value); }
76 template<
typename IndexNameT = Aws::String>
136 template<
typename AttributesToGetT = Aws::Vector<Aws::String>>
137 void SetAttributesToGet(AttributesToGetT&& value) { m_attributesToGetHasBeenSet =
true; m_attributesToGet = std::forward<AttributesToGetT>(value); }
138 template<
typename AttributesToGetT = Aws::Vector<Aws::String>>
140 template<
typename AttributesToGetT = Aws::String>
141 QueryRequest&
AddAttributesToGet(AttributesToGetT&& value) { m_attributesToGetHasBeenSet =
true; m_attributesToGet.emplace_back(std::forward<AttributesToGetT>(value));
return *
this; }
160 inline void SetLimit(
int value) { m_limitHasBeenSet =
true; m_limit = value; }
175 inline void SetConsistentRead(
bool value) { m_consistentReadHasBeenSet =
true; m_consistentRead = value; }
188 template<
typename KeyConditionsT = Aws::Map<Aws::String, Condition>>
189 void SetKeyConditions(KeyConditionsT&& value) { m_keyConditionsHasBeenSet =
true; m_keyConditions = std::forward<KeyConditionsT>(value); }
190 template<
typename KeyConditionsT = Aws::Map<Aws::String, Condition>>
192 template<
typename KeyConditionsKeyT = Aws::String,
typename KeyConditionsValueT = Condition>
194 m_keyConditionsHasBeenSet =
true; m_keyConditions.emplace(std::forward<KeyConditionsKeyT>(key), std::forward<KeyConditionsValueT>(value));
return *
this;
207 template<
typename QueryFilterT = Aws::Map<Aws::String, Condition>>
208 void SetQueryFilter(QueryFilterT&& value) { m_queryFilterHasBeenSet =
true; m_queryFilter = std::forward<QueryFilterT>(value); }
209 template<
typename QueryFilterT = Aws::Map<Aws::String, Condition>>
211 template<
typename QueryFilterKeyT = Aws::String,
typename QueryFilterValueT = Condition>
213 m_queryFilterHasBeenSet =
true; m_queryFilter.emplace(std::forward<QueryFilterKeyT>(key), std::forward<QueryFilterValueT>(value));
return *
this;
247 inline void SetScanIndexForward(
bool value) { m_scanIndexForwardHasBeenSet =
true; m_scanIndexForward = value; }
260 template<
typename ExclusiveStartKeyT = Aws::Map<Aws::String, AttributeValue>>
261 void SetExclusiveStartKey(ExclusiveStartKeyT&& value) { m_exclusiveStartKeyHasBeenSet =
true; m_exclusiveStartKey = std::forward<ExclusiveStartKeyT>(value); }
262 template<
typename ExclusiveStartKeyT = Aws::Map<Aws::String, AttributeValue>>
264 template<
typename ExclusiveStartKeyKeyT = Aws::String,
typename ExclusiveStartKeyValueT = AttributeValue>
266 m_exclusiveStartKeyHasBeenSet =
true; m_exclusiveStartKey.emplace(std::forward<ExclusiveStartKeyKeyT>(key), std::forward<ExclusiveStartKeyValueT>(value));
return *
this;
291 template<
typename ProjectionExpressionT = Aws::String>
292 void SetProjectionExpression(ProjectionExpressionT&& value) { m_projectionExpressionHasBeenSet =
true; m_projectionExpression = std::forward<ProjectionExpressionT>(value); }
293 template<
typename ProjectionExpressionT = Aws::String>
312 template<
typename FilterExpressionT = Aws::String>
313 void SetFilterExpression(FilterExpressionT&& value) { m_filterExpressionHasBeenSet =
true; m_filterExpression = std::forward<FilterExpressionT>(value); }
314 template<
typename FilterExpressionT = Aws::String>
377 template<
typename KeyConditionExpressionT = Aws::String>
378 void SetKeyConditionExpression(KeyConditionExpressionT&& value) { m_keyConditionExpressionHasBeenSet =
true; m_keyConditionExpression = std::forward<KeyConditionExpressionT>(value); }
379 template<
typename KeyConditionExpressionT = Aws::String>
411 template<
typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
412 void SetExpressionAttributeNames(ExpressionAttributeNamesT&& value) { m_expressionAttributeNamesHasBeenSet =
true; m_expressionAttributeNames = std::forward<ExpressionAttributeNamesT>(value); }
413 template<
typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
415 template<
typename ExpressionAttributeNamesKeyT = Aws::String,
typename ExpressionAttributeNamesValueT = Aws::String>
417 m_expressionAttributeNamesHasBeenSet =
true; m_expressionAttributeNames.emplace(std::forward<ExpressionAttributeNamesKeyT>(key), std::forward<ExpressionAttributeNamesValueT>(value));
return *
this;
439 template<
typename ExpressionAttributeValuesT = Aws::Map<Aws::String, AttributeValue>>
440 void SetExpressionAttributeValues(ExpressionAttributeValuesT&& value) { m_expressionAttributeValuesHasBeenSet =
true; m_expressionAttributeValues = std::forward<ExpressionAttributeValuesT>(value); }
441 template<
typename ExpressionAttributeValuesT = Aws::Map<Aws::String, AttributeValue>>
443 template<
typename ExpressionAttributeValuesKeyT = Aws::String,
typename ExpressionAttributeValuesValueT = AttributeValue>
445 m_expressionAttributeValuesHasBeenSet =
true; m_expressionAttributeValues.emplace(std::forward<ExpressionAttributeValuesKeyT>(key), std::forward<ExpressionAttributeValuesValueT>(value));
return *
this;
451 bool m_tableNameHasBeenSet =
false;
454 bool m_indexNameHasBeenSet =
false;
457 bool m_selectHasBeenSet =
false;
460 bool m_attributesToGetHasBeenSet =
false;
463 bool m_limitHasBeenSet =
false;
465 bool m_consistentRead{
false};
466 bool m_consistentReadHasBeenSet =
false;
469 bool m_keyConditionsHasBeenSet =
false;
472 bool m_queryFilterHasBeenSet =
false;
475 bool m_conditionalOperatorHasBeenSet =
false;
477 bool m_scanIndexForward{
false};
478 bool m_scanIndexForwardHasBeenSet =
false;
481 bool m_exclusiveStartKeyHasBeenSet =
false;
484 bool m_returnConsumedCapacityHasBeenSet =
false;
487 bool m_projectionExpressionHasBeenSet =
false;
490 bool m_filterExpressionHasBeenSet =
false;
493 bool m_keyConditionExpressionHasBeenSet =
false;
496 bool m_expressionAttributeNamesHasBeenSet =
false;
499 bool m_expressionAttributeValuesHasBeenSet =
false;
Aws::Endpoint::EndpointParameters EndpointParameters
void SetKeyConditionExpression(KeyConditionExpressionT &&value)
ConditionalOperator GetConditionalOperator() const
QueryRequest & WithLimit(int value)
const Aws::String & GetKeyConditionExpression() const
bool GetScanIndexForward() const
bool KeyConditionExpressionHasBeenSet() const
QueryRequest & AddExpressionAttributeValues(ExpressionAttributeValuesKeyT &&key, ExpressionAttributeValuesValueT &&value)
const Aws::Map< Aws::String, AttributeValue > & GetExclusiveStartKey() const
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
QueryRequest & WithExpressionAttributeNames(ExpressionAttributeNamesT &&value)
QueryRequest & WithFilterExpression(FilterExpressionT &&value)
QueryRequest & WithScanIndexForward(bool value)
void SetAttributesToGet(AttributesToGetT &&value)
bool TableNameHasBeenSet() const
bool GetConsistentRead() const
void SetConsistentRead(bool value)
QueryRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity value)
void SetScanIndexForward(bool value)
QueryRequest & WithExclusiveStartKey(ExclusiveStartKeyT &&value)
void SetConditionalOperator(ConditionalOperator value)
void SetTableName(TableNameT &&value)
void SetQueryFilter(QueryFilterT &&value)
bool QueryFilterHasBeenSet() const
QueryRequest & AddExpressionAttributeNames(ExpressionAttributeNamesKeyT &&key, ExpressionAttributeNamesValueT &&value)
bool ExpressionAttributeValuesHasBeenSet() const
QueryRequest & WithQueryFilter(QueryFilterT &&value)
void SetKeyConditions(KeyConditionsT &&value)
void SetExclusiveStartKey(ExclusiveStartKeyT &&value)
void SetReturnConsumedCapacity(ReturnConsumedCapacity value)
QueryRequest & AddAttributesToGet(AttributesToGetT &&value)
QueryRequest & AddQueryFilter(QueryFilterKeyT &&key, QueryFilterValueT &&value)
QueryRequest & WithAttributesToGet(AttributesToGetT &&value)
QueryRequest & WithSelect(Select value)
virtual const char * GetServiceRequestName() const override
void SetExpressionAttributeNames(ExpressionAttributeNamesT &&value)
bool LimitHasBeenSet() const
QueryRequest & WithProjectionExpression(ProjectionExpressionT &&value)
QueryRequest & WithTableName(TableNameT &&value)
QueryRequest & WithKeyConditionExpression(KeyConditionExpressionT &&value)
QueryRequest & AddKeyConditions(KeyConditionsKeyT &&key, KeyConditionsValueT &&value)
bool ConditionalOperatorHasBeenSet() const
AWS_DYNAMODB_API Aws::String SerializePayload() const override
void SetIndexName(IndexNameT &&value)
bool FilterExpressionHasBeenSet() const
QueryRequest & AddExclusiveStartKey(ExclusiveStartKeyKeyT &&key, ExclusiveStartKeyValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
bool ProjectionExpressionHasBeenSet() const
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
QueryRequest & WithConsistentRead(bool value)
QueryRequest & WithKeyConditions(KeyConditionsT &&value)
bool ConsistentReadHasBeenSet() const
const Aws::Map< Aws::String, AttributeValue > & GetExpressionAttributeValues() const
bool SelectHasBeenSet() const
bool ScanIndexForwardHasBeenSet() const
bool AttributesToGetHasBeenSet() const
bool ExclusiveStartKeyHasBeenSet() const
const Aws::String & GetProjectionExpression() const
QueryRequest & WithExpressionAttributeValues(ExpressionAttributeValuesT &&value)
const Aws::Vector< Aws::String > & GetAttributesToGet() const
const Aws::String & GetFilterExpression() const
QueryRequest & WithConditionalOperator(ConditionalOperator value)
ReturnConsumedCapacity GetReturnConsumedCapacity() const
void SetSelect(Select value)
QueryRequest & WithIndexName(IndexNameT &&value)
const Aws::Map< Aws::String, Condition > & GetKeyConditions() const
const Aws::String & GetIndexName() const
const Aws::String & GetTableName() const
bool ReturnConsumedCapacityHasBeenSet() const
bool ExpressionAttributeNamesHasBeenSet() const
const Aws::Map< Aws::String, Condition > & GetQueryFilter() const
void SetProjectionExpression(ProjectionExpressionT &&value)
bool KeyConditionsHasBeenSet() const
bool IndexNameHasBeenSet() const
void SetExpressionAttributeValues(ExpressionAttributeValuesT &&value)
void SetFilterExpression(FilterExpressionT &&value)
AWS_DYNAMODB_API QueryRequest()=default
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