/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains IoT SiteWise Monitor error details.See Also:
AWS
* API Reference
The error code.
*/ inline const MonitorErrorCode& GetCode() const{ return m_code; } /** *The error code.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The error code.
*/ inline void SetCode(const MonitorErrorCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *The error code.
*/ inline void SetCode(MonitorErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The error code.
*/ inline MonitorErrorDetails& WithCode(const MonitorErrorCode& value) { SetCode(value); return *this;} /** *The error code.
*/ inline MonitorErrorDetails& WithCode(MonitorErrorCode&& value) { SetCode(std::move(value)); return *this;} /** *The error message.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The error message.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The error message.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The error message.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The error message.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The error message.
*/ inline MonitorErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The error message.
*/ inline MonitorErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The error message.
*/ inline MonitorErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;} private: MonitorErrorCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws