AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchStatementResponse.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/BatchStatementError.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/dynamodb/model/AttributeValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDB
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DYNAMODB_API BatchStatementResponse();
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const BatchStatementError& GetError() const{ return m_error; }
48 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
49 inline void SetError(const BatchStatementError& value) { m_errorHasBeenSet = true; m_error = value; }
50 inline void SetError(BatchStatementError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
51 inline BatchStatementResponse& WithError(const BatchStatementError& value) { SetError(value); return *this;}
52 inline BatchStatementResponse& WithError(BatchStatementError&& value) { SetError(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetTableName() const{ return m_tableName; }
60 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
61 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
62 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
63 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
64 inline BatchStatementResponse& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
65 inline BatchStatementResponse& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
66 inline BatchStatementResponse& WithTableName(const char* value) { SetTableName(value); return *this;}
68
70
73 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const{ return m_item; }
74 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
75 inline void SetItem(const Aws::Map<Aws::String, AttributeValue>& value) { m_itemHasBeenSet = true; m_item = value; }
76 inline void SetItem(Aws::Map<Aws::String, AttributeValue>&& value) { m_itemHasBeenSet = true; m_item = std::move(value); }
78 inline BatchStatementResponse& WithItem(Aws::Map<Aws::String, AttributeValue>&& value) { SetItem(std::move(value)); return *this;}
79 inline BatchStatementResponse& AddItem(const Aws::String& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
80 inline BatchStatementResponse& AddItem(Aws::String&& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), value); return *this; }
81 inline BatchStatementResponse& AddItem(const Aws::String& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
82 inline BatchStatementResponse& AddItem(Aws::String&& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), std::move(value)); return *this; }
83 inline BatchStatementResponse& AddItem(const char* key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
84 inline BatchStatementResponse& AddItem(const char* key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
86 private:
87
88 BatchStatementError m_error;
89 bool m_errorHasBeenSet = false;
90
91 Aws::String m_tableName;
92 bool m_tableNameHasBeenSet = false;
93
95 bool m_itemHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace DynamoDB
100} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
BatchStatementResponse & WithItem(const Aws::Map< Aws::String, AttributeValue > &value)
AWS_DYNAMODB_API BatchStatementResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API BatchStatementResponse(Aws::Utils::Json::JsonView jsonValue)
BatchStatementResponse & WithTableName(Aws::String &&value)
BatchStatementResponse & WithTableName(const Aws::String &value)
BatchStatementResponse & AddItem(const char *key, AttributeValue &&value)
BatchStatementResponse & AddItem(Aws::String &&key, const AttributeValue &value)
const BatchStatementError & GetError() const
void SetItem(const Aws::Map< Aws::String, AttributeValue > &value)
BatchStatementResponse & AddItem(const Aws::String &key, AttributeValue &&value)
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
BatchStatementResponse & AddItem(Aws::String &&key, AttributeValue &&value)
BatchStatementResponse & AddItem(const Aws::String &key, const AttributeValue &value)
void SetItem(Aws::Map< Aws::String, AttributeValue > &&value)
BatchStatementResponse & AddItem(const char *key, const AttributeValue &value)
void SetError(const BatchStatementError &value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
BatchStatementResponse & WithItem(Aws::Map< Aws::String, AttributeValue > &&value)
BatchStatementResponse & WithError(const BatchStatementError &value)
BatchStatementResponse & WithTableName(const char *value)
BatchStatementResponse & WithError(BatchStatementError &&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