AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutItemResult.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/dynamodb/model/ItemCollectionMetrics.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/dynamodb/model/AttributeValue.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DynamoDB
28{
29namespace Model
30{
38 {
39 public:
40 AWS_DYNAMODB_API PutItemResult();
43
44
46
52 inline const Aws::Map<Aws::String, AttributeValue>& GetAttributes() const{ return m_attributes; }
53 inline void SetAttributes(const Aws::Map<Aws::String, AttributeValue>& value) { m_attributes = value; }
54 inline void SetAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { m_attributes = std::move(value); }
56 inline PutItemResult& WithAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { SetAttributes(std::move(value)); return *this;}
57 inline PutItemResult& AddAttributes(const Aws::String& key, const AttributeValue& value) { m_attributes.emplace(key, value); return *this; }
58 inline PutItemResult& AddAttributes(Aws::String&& key, const AttributeValue& value) { m_attributes.emplace(std::move(key), value); return *this; }
59 inline PutItemResult& AddAttributes(const Aws::String& key, AttributeValue&& value) { m_attributes.emplace(key, std::move(value)); return *this; }
60 inline PutItemResult& AddAttributes(Aws::String&& key, AttributeValue&& value) { m_attributes.emplace(std::move(key), std::move(value)); return *this; }
61 inline PutItemResult& AddAttributes(const char* key, AttributeValue&& value) { m_attributes.emplace(key, std::move(value)); return *this; }
62 inline PutItemResult& AddAttributes(const char* key, const AttributeValue& value) { m_attributes.emplace(key, value); return *this; }
64
66
77 inline const ConsumedCapacity& GetConsumedCapacity() const{ return m_consumedCapacity; }
78 inline void SetConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity = value; }
79 inline void SetConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity = std::move(value); }
80 inline PutItemResult& WithConsumedCapacity(const ConsumedCapacity& value) { SetConsumedCapacity(value); return *this;}
81 inline PutItemResult& WithConsumedCapacity(ConsumedCapacity&& value) { SetConsumedCapacity(std::move(value)); return *this;}
83
85
103 inline const ItemCollectionMetrics& GetItemCollectionMetrics() const{ return m_itemCollectionMetrics; }
104 inline void SetItemCollectionMetrics(const ItemCollectionMetrics& value) { m_itemCollectionMetrics = value; }
105 inline void SetItemCollectionMetrics(ItemCollectionMetrics&& value) { m_itemCollectionMetrics = std::move(value); }
109
111
112 inline const Aws::String& GetRequestId() const{ return m_requestId; }
113 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
114 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
115 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
116 inline PutItemResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
117 inline PutItemResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
118 inline PutItemResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
120 private:
121
123
124 ConsumedCapacity m_consumedCapacity;
125
126 ItemCollectionMetrics m_itemCollectionMetrics;
127
128 Aws::String m_requestId;
129 };
130
131} // namespace Model
132} // namespace DynamoDB
133} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
PutItemResult & WithAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
PutItemResult & AddAttributes(const char *key, AttributeValue &&value)
const ItemCollectionMetrics & GetItemCollectionMetrics() const
AWS_DYNAMODB_API PutItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetConsumedCapacity(ConsumedCapacity &&value)
PutItemResult & AddAttributes(Aws::String &&key, AttributeValue &&value)
void SetRequestId(const char *value)
void SetAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
PutItemResult & AddAttributes(const char *key, const AttributeValue &value)
const ConsumedCapacity & GetConsumedCapacity() const
PutItemResult & WithConsumedCapacity(const ConsumedCapacity &value)
PutItemResult & AddAttributes(const Aws::String &key, AttributeValue &&value)
void SetRequestId(const Aws::String &value)
PutItemResult & AddAttributes(Aws::String &&key, const AttributeValue &value)
PutItemResult & AddAttributes(const Aws::String &key, const AttributeValue &value)
void SetConsumedCapacity(const ConsumedCapacity &value)
void SetItemCollectionMetrics(ItemCollectionMetrics &&value)
void SetItemCollectionMetrics(const ItemCollectionMetrics &value)
PutItemResult & WithAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
PutItemResult & WithRequestId(Aws::String &&value)
const Aws::String & GetRequestId() const
PutItemResult & WithRequestId(const char *value)
void SetAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
PutItemResult & WithItemCollectionMetrics(const ItemCollectionMetrics &value)
AWS_DYNAMODB_API PutItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, AttributeValue > & GetAttributes() const
PutItemResult & WithConsumedCapacity(ConsumedCapacity &&value)
PutItemResult & WithRequestId(const Aws::String &value)
PutItemResult & WithItemCollectionMetrics(ItemCollectionMetrics &&value)
void SetRequestId(Aws::String &&value)
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