/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the error that occurred when attempting to update a
* detector.See Also:
AWS
* API Reference
The "messageId"
of the update request that caused the error.
* (The value of the "messageId"
in the update request
* "Detector"
object.)
The "messageId"
of the update request that caused the error.
* (The value of the "messageId"
in the update request
* "Detector"
object.)
The "messageId"
of the update request that caused the error.
* (The value of the "messageId"
in the update request
* "Detector"
object.)
The "messageId"
of the update request that caused the error.
* (The value of the "messageId"
in the update request
* "Detector"
object.)
The "messageId"
of the update request that caused the error.
* (The value of the "messageId"
in the update request
* "Detector"
object.)
The "messageId"
of the update request that caused the error.
* (The value of the "messageId"
in the update request
* "Detector"
object.)
The "messageId"
of the update request that caused the error.
* (The value of the "messageId"
in the update request
* "Detector"
object.)
The "messageId"
of the update request that caused the error.
* (The value of the "messageId"
in the update request
* "Detector"
object.)
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