AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetItemResult.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/dynamodb/model/ConsumedCapacity.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dynamodb/model/AttributeValue.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DynamoDB
27{
28namespace Model
29{
37 {
38 public:
39 AWS_DYNAMODB_API GetItemResult() = default;
42
43
45
49 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const { return m_item; }
50 template<typename ItemT = Aws::Map<Aws::String, AttributeValue>>
51 void SetItem(ItemT&& value) { m_itemHasBeenSet = true; m_item = std::forward<ItemT>(value); }
52 template<typename ItemT = Aws::Map<Aws::String, AttributeValue>>
53 GetItemResult& WithItem(ItemT&& value) { SetItem(std::forward<ItemT>(value)); return *this;}
54 template<typename ItemKeyT = Aws::String, typename ItemValueT = AttributeValue>
55 GetItemResult& AddItem(ItemKeyT&& key, ItemValueT&& value) {
56 m_itemHasBeenSet = true; m_item.emplace(std::forward<ItemKeyT>(key), std::forward<ItemValueT>(value)); return *this;
57 }
59
61
72 inline const ConsumedCapacity& GetConsumedCapacity() const { return m_consumedCapacity; }
73 template<typename ConsumedCapacityT = ConsumedCapacity>
74 void SetConsumedCapacity(ConsumedCapacityT&& value) { m_consumedCapacityHasBeenSet = true; m_consumedCapacity = std::forward<ConsumedCapacityT>(value); }
75 template<typename ConsumedCapacityT = ConsumedCapacity>
76 GetItemResult& WithConsumedCapacity(ConsumedCapacityT&& value) { SetConsumedCapacity(std::forward<ConsumedCapacityT>(value)); return *this;}
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template<typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
84 template<typename RequestIdT = Aws::String>
85 GetItemResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
87 private:
88
90 bool m_itemHasBeenSet = false;
91
92 ConsumedCapacity m_consumedCapacity;
93 bool m_consumedCapacityHasBeenSet = false;
94
95 Aws::String m_requestId;
96 bool m_requestIdHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace DynamoDB
101} // namespace Aws
const Aws::String & GetRequestId() const
AWS_DYNAMODB_API GetItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetItemResult & AddItem(ItemKeyT &&key, ItemValueT &&value)
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
GetItemResult & WithRequestId(RequestIdT &&value)
AWS_DYNAMODB_API GetItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetConsumedCapacity(ConsumedCapacityT &&value)
AWS_DYNAMODB_API GetItemResult()=default
GetItemResult & WithItem(ItemT &&value)
GetItemResult & WithConsumedCapacity(ConsumedCapacityT &&value)
void SetRequestId(RequestIdT &&value)
const ConsumedCapacity & GetConsumedCapacity() const
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
Aws::Utils::Json::JsonValue JsonValue