/** * 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 error messages associated with the deletion request.

See * Also:

AWS * API Reference

*/ class BatchDeleteDetectorErrorEntry { public: AWS_IOTEVENTSDATA_API BatchDeleteDetectorErrorEntry(); AWS_IOTEVENTSDATA_API BatchDeleteDetectorErrorEntry(Aws::Utils::Json::JsonView jsonValue); AWS_IOTEVENTSDATA_API BatchDeleteDetectorErrorEntry& 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 of the * "messageId" in the detectors * object of the DeleteDetectorRequest.)

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

The ID of the message that caused the error. (See the value of the * "messageId" in the detectors * object of the DeleteDetectorRequest.)

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

The ID of the message that caused the error. (See the value of the * "messageId" in the detectors * object of the DeleteDetectorRequest.)

*/ 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 of the * "messageId" in the detectors * object of the DeleteDetectorRequest.)

*/ 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 of the * "messageId" in the detectors * object of the DeleteDetectorRequest.)

*/ 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 of the * "messageId" in the detectors * object of the DeleteDetectorRequest.)

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

The ID of the message that caused the error. (See the value of the * "messageId" in the detectors * object of the DeleteDetectorRequest.)

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

The ID of the message that caused the error. (See the value of the * "messageId" in the detectors * object of the DeleteDetectorRequest.)

*/ inline BatchDeleteDetectorErrorEntry& 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 BatchDeleteDetectorErrorEntry& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *

The error code.

*/ inline BatchDeleteDetectorErrorEntry& 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 BatchDeleteDetectorErrorEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

A message that describes the error.

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

A message that describes the error.

*/ inline BatchDeleteDetectorErrorEntry& 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