/** * 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 { /** *

Information about the error that occurred when attempting to update a * detector.

See Also:

AWS * API Reference

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

The "messageId" of the update request that caused the error. * (The value of the "messageId" in the update request * "Detector" object.)

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

The "messageId" of the update request that caused the error. * (The value of the "messageId" in the update request * "Detector" object.)

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

The "messageId" of the update request that caused the error. * (The value of the "messageId" in the update request * "Detector" object.)

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

The "messageId" of the update request that caused the error. * (The value of the "messageId" in the update request * "Detector" object.)

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

The "messageId" of the update request that caused the error. * (The value of the "messageId" in the update request * "Detector" object.)

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

The "messageId" of the update request that caused the error. * (The value of the "messageId" in the update request * "Detector" object.)

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

The "messageId" of the update request that caused the error. * (The value of the "messageId" in the update request * "Detector" object.)

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

The "messageId" of the update request that caused the error. * (The value of the "messageId" in the update request * "Detector" object.)

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

The error code.

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

A message that describes the error.

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

A message that describes the error.

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