AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchExecuteStatementResult.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dynamodb/model/BatchStatementResponse.h>
11#include <aws/dynamodb/model/ConsumedCapacity.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{
31 {
32 public:
33 AWS_DYNAMODB_API BatchExecuteStatementResult();
36
37
39
43 inline const Aws::Vector<BatchStatementResponse>& GetResponses() const{ return m_responses; }
44 inline void SetResponses(const Aws::Vector<BatchStatementResponse>& value) { m_responses = value; }
45 inline void SetResponses(Aws::Vector<BatchStatementResponse>&& value) { m_responses = std::move(value); }
48 inline BatchExecuteStatementResult& AddResponses(const BatchStatementResponse& value) { m_responses.push_back(value); return *this; }
49 inline BatchExecuteStatementResult& AddResponses(BatchStatementResponse&& value) { m_responses.push_back(std::move(value)); return *this; }
51
53
57 inline const Aws::Vector<ConsumedCapacity>& GetConsumedCapacity() const{ return m_consumedCapacity; }
58 inline void SetConsumedCapacity(const Aws::Vector<ConsumedCapacity>& value) { m_consumedCapacity = value; }
59 inline void SetConsumedCapacity(Aws::Vector<ConsumedCapacity>&& value) { m_consumedCapacity = std::move(value); }
62 inline BatchExecuteStatementResult& AddConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity.push_back(value); return *this; }
63 inline BatchExecuteStatementResult& AddConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity.push_back(std::move(value)); return *this; }
65
67
68 inline const Aws::String& GetRequestId() const{ return m_requestId; }
69 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
70 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
71 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
72 inline BatchExecuteStatementResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
73 inline BatchExecuteStatementResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
74 inline BatchExecuteStatementResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
76 private:
77
79
80 Aws::Vector<ConsumedCapacity> m_consumedCapacity;
81
82 Aws::String m_requestId;
83 };
84
85} // namespace Model
86} // namespace DynamoDB
87} // namespace Aws
BatchExecuteStatementResult & AddResponses(BatchStatementResponse &&value)
BatchExecuteStatementResult & WithConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
void SetResponses(Aws::Vector< BatchStatementResponse > &&value)
const Aws::Vector< BatchStatementResponse > & GetResponses() const
BatchExecuteStatementResult & AddConsumedCapacity(ConsumedCapacity &&value)
AWS_DYNAMODB_API BatchExecuteStatementResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchExecuteStatementResult & AddConsumedCapacity(const ConsumedCapacity &value)
AWS_DYNAMODB_API BatchExecuteStatementResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchExecuteStatementResult & WithResponses(Aws::Vector< BatchStatementResponse > &&value)
void SetConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
BatchExecuteStatementResult & WithRequestId(const char *value)
BatchExecuteStatementResult & AddResponses(const BatchStatementResponse &value)
BatchExecuteStatementResult & WithRequestId(Aws::String &&value)
void SetResponses(const Aws::Vector< BatchStatementResponse > &value)
void SetConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
const Aws::Vector< ConsumedCapacity > & GetConsumedCapacity() const
BatchExecuteStatementResult & WithRequestId(const Aws::String &value)
BatchExecuteStatementResult & WithResponses(const Aws::Vector< BatchStatementResponse > &value)
BatchExecuteStatementResult & WithConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue