/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Honeycode { namespace Model { /** *

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

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

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