AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ErrorDetails.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/ErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotsitewise/model/DetailedError.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTSiteWise
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOTSITEWISE_API ErrorDetails() = default;
38 AWS_IOTSITEWISE_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API ErrorDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline ErrorCode GetCode() const { return m_code; }
48 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
49 inline void SetCode(ErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
50 inline ErrorDetails& WithCode(ErrorCode value) { SetCode(value); return *this;}
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template<typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
61 template<typename MessageT = Aws::String>
62 ErrorDetails& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
64
66
69 inline const Aws::Vector<DetailedError>& GetDetails() const { return m_details; }
70 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
71 template<typename DetailsT = Aws::Vector<DetailedError>>
72 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
73 template<typename DetailsT = Aws::Vector<DetailedError>>
74 ErrorDetails& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
75 template<typename DetailsT = DetailedError>
76 ErrorDetails& AddDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details.emplace_back(std::forward<DetailsT>(value)); return *this; }
78 private:
79
81 bool m_codeHasBeenSet = false;
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85
87 bool m_detailsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace IoTSiteWise
92} // namespace Aws
void SetDetails(DetailsT &&value)
ErrorDetails & WithCode(ErrorCode value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorDetails & WithDetails(DetailsT &&value)
ErrorDetails & AddDetails(DetailsT &&value)
const Aws::String & GetMessage() const
ErrorDetails & WithMessage(MessageT &&value)
AWS_IOTSITEWISE_API ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(MessageT &&value)
AWS_IOTSITEWISE_API ErrorDetails()=default
const Aws::Vector< DetailedError > & GetDetails() const
AWS_IOTSITEWISE_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue