/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DynamoDB { namespace Model { class BatchExecuteStatementResult { public: AWS_DYNAMODB_API BatchExecuteStatementResult(); AWS_DYNAMODB_API BatchExecuteStatementResult(const Aws::AmazonWebServiceResult& result); AWS_DYNAMODB_API BatchExecuteStatementResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The response to each PartiQL statement in the batch. The values of the list * are ordered according to the ordering of the request statements.

*/ inline const Aws::Vector& GetResponses() const{ return m_responses; } /** *

The response to each PartiQL statement in the batch. The values of the list * are ordered according to the ordering of the request statements.

*/ inline void SetResponses(const Aws::Vector& value) { m_responses = value; } /** *

The response to each PartiQL statement in the batch. The values of the list * are ordered according to the ordering of the request statements.

*/ inline void SetResponses(Aws::Vector&& value) { m_responses = std::move(value); } /** *

The response to each PartiQL statement in the batch. The values of the list * are ordered according to the ordering of the request statements.

*/ inline BatchExecuteStatementResult& WithResponses(const Aws::Vector& value) { SetResponses(value); return *this;} /** *

The response to each PartiQL statement in the batch. The values of the list * are ordered according to the ordering of the request statements.

*/ inline BatchExecuteStatementResult& WithResponses(Aws::Vector&& value) { SetResponses(std::move(value)); return *this;} /** *

The response to each PartiQL statement in the batch. The values of the list * are ordered according to the ordering of the request statements.

*/ inline BatchExecuteStatementResult& AddResponses(const BatchStatementResponse& value) { m_responses.push_back(value); return *this; } /** *

The response to each PartiQL statement in the batch. The values of the list * are ordered according to the ordering of the request statements.

*/ inline BatchExecuteStatementResult& AddResponses(BatchStatementResponse&& value) { m_responses.push_back(std::move(value)); return *this; } /** *

The capacity units consumed by the entire operation. The values of the list * are ordered according to the ordering of the statements.

*/ inline const Aws::Vector& GetConsumedCapacity() const{ return m_consumedCapacity; } /** *

The capacity units consumed by the entire operation. The values of the list * are ordered according to the ordering of the statements.

*/ inline void SetConsumedCapacity(const Aws::Vector& value) { m_consumedCapacity = value; } /** *

The capacity units consumed by the entire operation. The values of the list * are ordered according to the ordering of the statements.

*/ inline void SetConsumedCapacity(Aws::Vector&& value) { m_consumedCapacity = std::move(value); } /** *

The capacity units consumed by the entire operation. The values of the list * are ordered according to the ordering of the statements.

*/ inline BatchExecuteStatementResult& WithConsumedCapacity(const Aws::Vector& value) { SetConsumedCapacity(value); return *this;} /** *

The capacity units consumed by the entire operation. The values of the list * are ordered according to the ordering of the statements.

*/ inline BatchExecuteStatementResult& WithConsumedCapacity(Aws::Vector&& value) { SetConsumedCapacity(std::move(value)); return *this;} /** *

The capacity units consumed by the entire operation. The values of the list * are ordered according to the ordering of the statements.

*/ inline BatchExecuteStatementResult& AddConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity.push_back(value); return *this; } /** *

The capacity units consumed by the entire operation. The values of the list * are ordered according to the ordering of the statements.

*/ inline BatchExecuteStatementResult& AddConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchExecuteStatementResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchExecuteStatementResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchExecuteStatementResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_responses; Aws::Vector m_consumedCapacity; Aws::String m_requestId; }; } // namespace Model } // namespace DynamoDB } // namespace Aws