AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ErrorDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace mgn {
20namespace Model {
21
28 public:
29 AWS_MGN_API ErrorDetails() = default;
33
35
38 inline const Aws::String& GetMessage() const { return m_message; }
39 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
40 template <typename MessageT = Aws::String>
41 void SetMessage(MessageT&& value) {
42 m_messageHasBeenSet = true;
43 m_message = std::forward<MessageT>(value);
44 }
45 template <typename MessageT = Aws::String>
46 ErrorDetails& WithMessage(MessageT&& value) {
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetCode() const { return m_code; }
57 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
58 template <typename CodeT = Aws::String>
59 void SetCode(CodeT&& value) {
60 m_codeHasBeenSet = true;
61 m_code = std::forward<CodeT>(value);
62 }
63 template <typename CodeT = Aws::String>
64 ErrorDetails& WithCode(CodeT&& value) {
65 SetCode(std::forward<CodeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetResourceId() const { return m_resourceId; }
75 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
76 template <typename ResourceIdT = Aws::String>
77 void SetResourceId(ResourceIdT&& value) {
78 m_resourceIdHasBeenSet = true;
79 m_resourceId = std::forward<ResourceIdT>(value);
80 }
81 template <typename ResourceIdT = Aws::String>
82 ErrorDetails& WithResourceId(ResourceIdT&& value) {
83 SetResourceId(std::forward<ResourceIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetResourceType() const { return m_resourceType; }
93 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
94 template <typename ResourceTypeT = Aws::String>
95 void SetResourceType(ResourceTypeT&& value) {
96 m_resourceTypeHasBeenSet = true;
97 m_resourceType = std::forward<ResourceTypeT>(value);
98 }
99 template <typename ResourceTypeT = Aws::String>
100 ErrorDetails& WithResourceType(ResourceTypeT&& value) {
101 SetResourceType(std::forward<ResourceTypeT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_message;
107
108 Aws::String m_code;
109
110 Aws::String m_resourceId;
111
112 Aws::String m_resourceType;
113 bool m_messageHasBeenSet = false;
114 bool m_codeHasBeenSet = false;
115 bool m_resourceIdHasBeenSet = false;
116 bool m_resourceTypeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace mgn
121} // namespace Aws
AWS_MGN_API ErrorDetails()=default
ErrorDetails & WithCode(CodeT &&value)
void SetResourceType(ResourceTypeT &&value)
void SetResourceId(ResourceIdT &&value)
void SetCode(CodeT &&value)
AWS_MGN_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_MGN_API ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCode() const
const Aws::String & GetResourceId() const
ErrorDetails & WithResourceId(ResourceIdT &&value)
ErrorDetails & WithMessage(MessageT &&value)
ErrorDetails & WithResourceType(ResourceTypeT &&value)
void SetMessage(MessageT &&value)
const Aws::String & GetMessage() const
const Aws::String & GetResourceType() const
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue