AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateItemResult.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 UpdateItemResult();
43
44
46
54 inline const Aws::Map<Aws::String, AttributeValue>& GetAttributes() const{ return m_attributes; }
55 inline void SetAttributes(const Aws::Map<Aws::String, AttributeValue>& value) { m_attributes = value; }
56 inline void SetAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { m_attributes = std::move(value); }
58 inline UpdateItemResult& WithAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { SetAttributes(std::move(value)); return *this;}
59 inline UpdateItemResult& AddAttributes(const Aws::String& key, const AttributeValue& value) { m_attributes.emplace(key, value); return *this; }
60 inline UpdateItemResult& AddAttributes(Aws::String&& key, const AttributeValue& value) { m_attributes.emplace(std::move(key), value); return *this; }
61 inline UpdateItemResult& AddAttributes(const Aws::String& key, AttributeValue&& value) { m_attributes.emplace(key, std::move(value)); return *this; }
62 inline UpdateItemResult& AddAttributes(Aws::String&& key, AttributeValue&& value) { m_attributes.emplace(std::move(key), std::move(value)); return *this; }
63 inline UpdateItemResult& AddAttributes(const char* key, AttributeValue&& value) { m_attributes.emplace(key, std::move(value)); return *this; }
64 inline UpdateItemResult& AddAttributes(const char* key, const AttributeValue& value) { m_attributes.emplace(key, value); return *this; }
66
68
79 inline const ConsumedCapacity& GetConsumedCapacity() const{ return m_consumedCapacity; }
80 inline void SetConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity = value; }
81 inline void SetConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity = std::move(value); }
82 inline UpdateItemResult& WithConsumedCapacity(const ConsumedCapacity& value) { SetConsumedCapacity(value); return *this;}
83 inline UpdateItemResult& WithConsumedCapacity(ConsumedCapacity&& value) { SetConsumedCapacity(std::move(value)); return *this;}
85
87
105 inline const ItemCollectionMetrics& GetItemCollectionMetrics() const{ return m_itemCollectionMetrics; }
106 inline void SetItemCollectionMetrics(const ItemCollectionMetrics& value) { m_itemCollectionMetrics = value; }
107 inline void SetItemCollectionMetrics(ItemCollectionMetrics&& value) { m_itemCollectionMetrics = std::move(value); }
111
113
114 inline const Aws::String& GetRequestId() const{ return m_requestId; }
115 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
116 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
117 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
118 inline UpdateItemResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
119 inline UpdateItemResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
120 inline UpdateItemResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
122 private:
123
125
126 ConsumedCapacity m_consumedCapacity;
127
128 ItemCollectionMetrics m_itemCollectionMetrics;
129
130 Aws::String m_requestId;
131 };
132
133} // namespace Model
134} // namespace DynamoDB
135} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
UpdateItemResult & AddAttributes(Aws::String &&key, AttributeValue &&value)
const Aws::String & GetRequestId() const
const Aws::Map< Aws::String, AttributeValue > & GetAttributes() const
void SetItemCollectionMetrics(const ItemCollectionMetrics &value)
UpdateItemResult & WithItemCollectionMetrics(const ItemCollectionMetrics &value)
UpdateItemResult & AddAttributes(const Aws::String &key, const AttributeValue &value)
UpdateItemResult & WithAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
UpdateItemResult & WithAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
UpdateItemResult & WithRequestId(Aws::String &&value)
UpdateItemResult & WithConsumedCapacity(ConsumedCapacity &&value)
void SetConsumedCapacity(const ConsumedCapacity &value)
UpdateItemResult & AddAttributes(const Aws::String &key, AttributeValue &&value)
void SetItemCollectionMetrics(ItemCollectionMetrics &&value)
const ConsumedCapacity & GetConsumedCapacity() const
UpdateItemResult & WithConsumedCapacity(const ConsumedCapacity &value)
const ItemCollectionMetrics & GetItemCollectionMetrics() const
UpdateItemResult & WithRequestId(const char *value)
void SetAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
UpdateItemResult & AddAttributes(Aws::String &&key, const AttributeValue &value)
UpdateItemResult & AddAttributes(const char *key, const AttributeValue &value)
void SetAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
UpdateItemResult & WithItemCollectionMetrics(ItemCollectionMetrics &&value)
AWS_DYNAMODB_API UpdateItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateItemResult & AddAttributes(const char *key, AttributeValue &&value)
void SetConsumedCapacity(ConsumedCapacity &&value)
UpdateItemResult & WithRequestId(const Aws::String &value)
void SetRequestId(const Aws::String &value)
AWS_DYNAMODB_API UpdateItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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