/** * 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 Firehose { namespace Model { /** *

Contains the result for an individual record from a PutRecordBatch * request. If the record is successfully added to your delivery stream, it * receives a record ID. If the record fails to be added to your delivery stream, * the result includes an error code and an error message.

See Also:

* AWS * API Reference

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

The ID of the record.

*/ inline const Aws::String& GetRecordId() const{ return m_recordId; } /** *

The ID of the record.

*/ inline bool RecordIdHasBeenSet() const { return m_recordIdHasBeenSet; } /** *

The ID of the record.

*/ inline void SetRecordId(const Aws::String& value) { m_recordIdHasBeenSet = true; m_recordId = value; } /** *

The ID of the record.

*/ inline void SetRecordId(Aws::String&& value) { m_recordIdHasBeenSet = true; m_recordId = std::move(value); } /** *

The ID of the record.

*/ inline void SetRecordId(const char* value) { m_recordIdHasBeenSet = true; m_recordId.assign(value); } /** *

The ID of the record.

*/ inline PutRecordBatchResponseEntry& WithRecordId(const Aws::String& value) { SetRecordId(value); return *this;} /** *

The ID of the record.

*/ inline PutRecordBatchResponseEntry& WithRecordId(Aws::String&& value) { SetRecordId(std::move(value)); return *this;} /** *

The ID of the record.

*/ inline PutRecordBatchResponseEntry& WithRecordId(const char* value) { SetRecordId(value); return *this;} /** *

The error code for an individual record result.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

The error code for an individual record result.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code for an individual record result.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code for an individual record result.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code for an individual record result.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

The error code for an individual record result.

*/ inline PutRecordBatchResponseEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

The error code for an individual record result.

*/ inline PutRecordBatchResponseEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The error code for an individual record result.

*/ inline PutRecordBatchResponseEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

The error message for an individual record result.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The error message for an individual record result.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The error message for an individual record result.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The error message for an individual record result.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The error message for an individual record result.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The error message for an individual record result.

*/ inline PutRecordBatchResponseEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message for an individual record result.

*/ inline PutRecordBatchResponseEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The error message for an individual record result.

*/ inline PutRecordBatchResponseEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_recordId; bool m_recordIdHasBeenSet; Aws::String m_errorCode; bool m_errorCodeHasBeenSet; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws