/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A single item in a batch that failed to perform the intended action because
* of an error preventing it from succeeding. See Also:
AWS
* API Reference
The id of the batch item that failed. This is the batch item id for the * BatchCreateTableRows and BatchUpsertTableRows operations and the row id for the * BatchUpdateTableRows and BatchDeleteTableRows operations.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The id of the batch item that failed. This is the batch item id for the * BatchCreateTableRows and BatchUpsertTableRows operations and the row id for the * BatchUpdateTableRows and BatchDeleteTableRows operations.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The id of the batch item that failed. This is the batch item id for the * BatchCreateTableRows and BatchUpsertTableRows operations and the row id for the * BatchUpdateTableRows and BatchDeleteTableRows operations.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The id of the batch item that failed. This is the batch item id for the * BatchCreateTableRows and BatchUpsertTableRows operations and the row id for the * BatchUpdateTableRows and BatchDeleteTableRows operations.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The id of the batch item that failed. This is the batch item id for the * BatchCreateTableRows and BatchUpsertTableRows operations and the row id for the * BatchUpdateTableRows and BatchDeleteTableRows operations.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The id of the batch item that failed. This is the batch item id for the * BatchCreateTableRows and BatchUpsertTableRows operations and the row id for the * BatchUpdateTableRows and BatchDeleteTableRows operations.
*/ inline FailedBatchItem& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The id of the batch item that failed. This is the batch item id for the * BatchCreateTableRows and BatchUpsertTableRows operations and the row id for the * BatchUpdateTableRows and BatchDeleteTableRows operations.
*/ inline FailedBatchItem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The id of the batch item that failed. This is the batch item id for the * BatchCreateTableRows and BatchUpsertTableRows operations and the row id for the * BatchUpdateTableRows and BatchDeleteTableRows operations.
*/ inline FailedBatchItem& WithId(const char* value) { SetId(value); return *this;} /** *The error message that indicates why the batch item failed.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *The error message that indicates why the batch item failed.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *The error message that indicates why the batch item failed.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *The error message that indicates why the batch item failed.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *The error message that indicates why the batch item failed.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *The error message that indicates why the batch item failed.
*/ inline FailedBatchItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *The error message that indicates why the batch item failed.
*/ inline FailedBatchItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *The error message that indicates why the batch item failed.
*/ inline FailedBatchItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws