AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ErrorCode& GetCode() const{ return m_code; }
48 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
49 inline void SetCode(const ErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
50 inline void SetCode(ErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
51 inline ErrorDetails& WithCode(const ErrorCode& value) { SetCode(value); return *this;}
52 inline ErrorDetails& WithCode(ErrorCode&& value) { SetCode(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetMessage() const{ return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
62 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
63 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
64 inline ErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
65 inline ErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
66 inline ErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
68
70
73 inline const Aws::Vector<DetailedError>& GetDetails() const{ return m_details; }
74 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
75 inline void SetDetails(const Aws::Vector<DetailedError>& value) { m_detailsHasBeenSet = true; m_details = value; }
76 inline void SetDetails(Aws::Vector<DetailedError>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
77 inline ErrorDetails& WithDetails(const Aws::Vector<DetailedError>& value) { SetDetails(value); return *this;}
78 inline ErrorDetails& WithDetails(Aws::Vector<DetailedError>&& value) { SetDetails(std::move(value)); return *this;}
79 inline ErrorDetails& AddDetails(const DetailedError& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
80 inline ErrorDetails& AddDetails(DetailedError&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
82 private:
83
84 ErrorCode m_code;
85 bool m_codeHasBeenSet = false;
86
87 Aws::String m_message;
88 bool m_messageHasBeenSet = false;
89
91 bool m_detailsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace IoTSiteWise
96} // namespace Aws
void SetMessage(Aws::String &&value)
ErrorDetails & WithMessage(const char *value)
ErrorDetails & WithCode(const ErrorCode &value)
const ErrorCode & GetCode() const
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API ErrorDetails()
ErrorDetails & WithDetails(const Aws::Vector< DetailedError > &value)
void SetMessage(const Aws::String &value)
ErrorDetails & AddDetails(DetailedError &&value)
const Aws::String & GetMessage() const
void SetMessage(const char *value)
ErrorDetails & WithCode(ErrorCode &&value)
void SetDetails(const Aws::Vector< DetailedError > &value)
void SetCode(const ErrorCode &value)
AWS_IOTSITEWISE_API ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorDetails & WithMessage(Aws::String &&value)
void SetDetails(Aws::Vector< DetailedError > &&value)
ErrorDetails & AddDetails(const DetailedError &value)
ErrorDetails & WithMessage(const Aws::String &value)
void SetCode(ErrorCode &&value)
const Aws::Vector< DetailedError > & GetDetails() const
ErrorDetails & WithDetails(Aws::Vector< DetailedError > &&value)
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