/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the details of an IoT SiteWise error.See Also:
AWS
* API Reference
The error code.
*/ inline const ErrorCode& GetCode() const{ return m_code; } /** *The error code.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The error code.
*/ inline void SetCode(const ErrorCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *The error code.
*/ inline void SetCode(ErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The error code.
*/ inline ErrorDetails& WithCode(const ErrorCode& value) { SetCode(value); return *this;} /** *The error code.
*/ inline ErrorDetails& WithCode(ErrorCode&& 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 ErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The error message.
*/ inline ErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The error message.
*/ inline ErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;} /** *A list of detailed errors.
*/ inline const Aws::VectorA list of detailed errors.
*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *A list of detailed errors.
*/ inline void SetDetails(const Aws::VectorA list of detailed errors.
*/ inline void SetDetails(Aws::VectorA list of detailed errors.
*/ inline ErrorDetails& WithDetails(const Aws::VectorA list of detailed errors.
*/ inline ErrorDetails& WithDetails(Aws::VectorA list of detailed errors.
*/ inline ErrorDetails& AddDetails(const DetailedError& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; } /** *A list of detailed errors.
*/ inline ErrorDetails& AddDetails(DetailedError&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; } private: ErrorCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector