AWS SDK for C++  1.8.71
AWS SDK for C++
BatchGetItemRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace DynamoDB
18 {
19 namespace Model
20 {
21 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "BatchGetItem"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42 
43 
93  inline const Aws::Map<Aws::String, KeysAndAttributes>& GetRequestItems() const{ return m_requestItems; }
94 
144  inline bool RequestItemsHasBeenSet() const { return m_requestItemsHasBeenSet; }
145 
195  inline void SetRequestItems(const Aws::Map<Aws::String, KeysAndAttributes>& value) { m_requestItemsHasBeenSet = true; m_requestItems = value; }
196 
246  inline void SetRequestItems(Aws::Map<Aws::String, KeysAndAttributes>&& value) { m_requestItemsHasBeenSet = true; m_requestItems = std::move(value); }
247 
297  inline BatchGetItemRequest& WithRequestItems(const Aws::Map<Aws::String, KeysAndAttributes>& value) { SetRequestItems(value); return *this;}
298 
348  inline BatchGetItemRequest& WithRequestItems(Aws::Map<Aws::String, KeysAndAttributes>&& value) { SetRequestItems(std::move(value)); return *this;}
349 
399  inline BatchGetItemRequest& AddRequestItems(const Aws::String& key, const KeysAndAttributes& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, value); return *this; }
400 
450  inline BatchGetItemRequest& AddRequestItems(Aws::String&& key, const KeysAndAttributes& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(std::move(key), value); return *this; }
451 
501  inline BatchGetItemRequest& AddRequestItems(const Aws::String& key, KeysAndAttributes&& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, std::move(value)); return *this; }
502 
552  inline BatchGetItemRequest& AddRequestItems(Aws::String&& key, KeysAndAttributes&& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(std::move(key), std::move(value)); return *this; }
553 
603  inline BatchGetItemRequest& AddRequestItems(const char* key, KeysAndAttributes&& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, std::move(value)); return *this; }
604 
654  inline BatchGetItemRequest& AddRequestItems(const char* key, const KeysAndAttributes& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, value); return *this; }
655 
656 
657 
658  inline const ReturnConsumedCapacity& GetReturnConsumedCapacity() const{ return m_returnConsumedCapacity; }
659 
660 
661  inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; }
662 
663 
664  inline void SetReturnConsumedCapacity(const ReturnConsumedCapacity& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; }
665 
666 
667  inline void SetReturnConsumedCapacity(ReturnConsumedCapacity&& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = std::move(value); }
668 
669 
670  inline BatchGetItemRequest& WithReturnConsumedCapacity(const ReturnConsumedCapacity& value) { SetReturnConsumedCapacity(value); return *this;}
671 
672 
673  inline BatchGetItemRequest& WithReturnConsumedCapacity(ReturnConsumedCapacity&& value) { SetReturnConsumedCapacity(std::move(value)); return *this;}
674 
675  private:
676 
678  bool m_requestItemsHasBeenSet;
679 
680  ReturnConsumedCapacity m_returnConsumedCapacity;
681  bool m_returnConsumedCapacityHasBeenSet;
682  };
683 
684 } // namespace Model
685 } // namespace DynamoDB
686 } // namespace Aws
BatchGetItemRequest & WithRequestItems(const Aws::Map< Aws::String, KeysAndAttributes > &value)
BatchGetItemRequest & AddRequestItems(const char *key, KeysAndAttributes &&value)
void SetReturnConsumedCapacity(ReturnConsumedCapacity &&value)
void SetRequestItems(Aws::Map< Aws::String, KeysAndAttributes > &&value)
void SetReturnConsumedCapacity(const ReturnConsumedCapacity &value)
BatchGetItemRequest & AddRequestItems(Aws::String &&key, const KeysAndAttributes &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
BatchGetItemRequest & AddRequestItems(const Aws::String &key, const KeysAndAttributes &value)
BatchGetItemRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity &&value)
#define AWS_DYNAMODB_API
void SetRequestItems(const Aws::Map< Aws::String, KeysAndAttributes > &value)
const ReturnConsumedCapacity & GetReturnConsumedCapacity() const
BatchGetItemRequest & AddRequestItems(Aws::String &&key, KeysAndAttributes &&value)
const Aws::Map< Aws::String, KeysAndAttributes > & GetRequestItems() const
BatchGetItemRequest & AddRequestItems(const char *key, const KeysAndAttributes &value)
BatchGetItemRequest & AddRequestItems(const Aws::String &key, KeysAndAttributes &&value)
BatchGetItemRequest & WithRequestItems(Aws::Map< Aws::String, KeysAndAttributes > &&value)
BatchGetItemRequest & WithReturnConsumedCapacity(const ReturnConsumedCapacity &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override