/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DynamoDB { namespace Model { /** *

A PartiQL batch statement response..

See Also:

AWS * API Reference

*/ class BatchStatementResponse { public: AWS_DYNAMODB_API BatchStatementResponse(); AWS_DYNAMODB_API BatchStatementResponse(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API BatchStatementResponse& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The error associated with a failed PartiQL batch statement.

*/ inline const BatchStatementError& GetError() const{ return m_error; } /** *

The error associated with a failed PartiQL batch statement.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

The error associated with a failed PartiQL batch statement.

*/ inline void SetError(const BatchStatementError& value) { m_errorHasBeenSet = true; m_error = value; } /** *

The error associated with a failed PartiQL batch statement.

*/ inline void SetError(BatchStatementError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

The error associated with a failed PartiQL batch statement.

*/ inline BatchStatementResponse& WithError(const BatchStatementError& value) { SetError(value); return *this;} /** *

The error associated with a failed PartiQL batch statement.

*/ inline BatchStatementResponse& WithError(BatchStatementError&& value) { SetError(std::move(value)); return *this;} /** *

The table name associated with a failed PartiQL batch statement.

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

The table name associated with a failed PartiQL batch statement.

*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *

The table name associated with a failed PartiQL batch statement.

*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *

The table name associated with a failed PartiQL batch statement.

*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *

The table name associated with a failed PartiQL batch statement.

*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *

The table name associated with a failed PartiQL batch statement.

*/ inline BatchStatementResponse& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

The table name associated with a failed PartiQL batch statement.

*/ inline BatchStatementResponse& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

The table name associated with a failed PartiQL batch statement.

*/ inline BatchStatementResponse& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline const Aws::Map& GetItem() const{ return m_item; } /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; } /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline void SetItem(const Aws::Map& value) { m_itemHasBeenSet = true; m_item = value; } /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline void SetItem(Aws::Map&& value) { m_itemHasBeenSet = true; m_item = std::move(value); } /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline BatchStatementResponse& WithItem(const Aws::Map& value) { SetItem(value); return *this;} /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline BatchStatementResponse& WithItem(Aws::Map&& value) { SetItem(std::move(value)); return *this;} /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline BatchStatementResponse& AddItem(const Aws::String& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; } /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline BatchStatementResponse& AddItem(Aws::String&& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), value); return *this; } /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline BatchStatementResponse& AddItem(const Aws::String& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; } /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline BatchStatementResponse& AddItem(Aws::String&& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), std::move(value)); return *this; } /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline BatchStatementResponse& AddItem(const char* key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; } /** *

A DynamoDB item associated with a BatchStatementResponse

*/ inline BatchStatementResponse& AddItem(const char* key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; } private: BatchStatementError m_error; bool m_errorHasBeenSet = false; Aws::String m_tableName; bool m_tableNameHasBeenSet = false; Aws::Map m_item; bool m_itemHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws