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

Contains information about the errors encountered.

See Also:

* AWS * API Reference

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

The ID of the message that caused the error. (See the value corresponding to * the "messageId" key in the "message" object.)

*/ inline const Aws::String& GetMessageId() const{ return m_messageId; } /** *

The ID of the message that caused the error. (See the value corresponding to * the "messageId" key in the "message" object.)

*/ inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; } /** *

The ID of the message that caused the error. (See the value corresponding to * the "messageId" key in the "message" object.)

*/ inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; } /** *

The ID of the message that caused the error. (See the value corresponding to * the "messageId" key in the "message" object.)

*/ inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); } /** *

The ID of the message that caused the error. (See the value corresponding to * the "messageId" key in the "message" object.)

*/ inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); } /** *

The ID of the message that caused the error. (See the value corresponding to * the "messageId" key in the "message" object.)

*/ inline BatchPutMessageErrorEntry& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} /** *

The ID of the message that caused the error. (See the value corresponding to * the "messageId" key in the "message" object.)

*/ inline BatchPutMessageErrorEntry& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} /** *

The ID of the message that caused the error. (See the value corresponding to * the "messageId" key in the "message" object.)

*/ inline BatchPutMessageErrorEntry& WithMessageId(const char* value) { SetMessageId(value); return *this;} /** *

The error code.

*/ inline const ErrorCode& GetErrorCode() const{ return m_errorCode; } /** *

The error code.

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

The error code.

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

The error code.

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

The error code.

*/ inline BatchPutMessageErrorEntry& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *

The error code.

*/ inline BatchPutMessageErrorEntry& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *

A message that describes the error.

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

A message that describes the error.

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

A message that describes the error.

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

A message that describes the error.

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

A message that describes the error.

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

A message that describes the error.

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

A message that describes the error.

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

A message that describes the error.

*/ inline BatchPutMessageErrorEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_messageId; bool m_messageIdHasBeenSet = false; ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace IoTEventsData } // namespace Aws