AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ResourceNotFoundException.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 ResourceNotFoundException() = default;
33
35
36 inline const Aws::String& GetMessage() const { return m_message; }
37 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
38 template <typename MessageT = Aws::String>
39 void SetMessage(MessageT&& value) {
40 m_messageHasBeenSet = true;
41 m_message = std::forward<MessageT>(value);
42 }
43 template <typename MessageT = Aws::String>
45 SetMessage(std::forward<MessageT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetCode() const { return m_code; }
53 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
54 template <typename CodeT = Aws::String>
55 void SetCode(CodeT&& value) {
56 m_codeHasBeenSet = true;
57 m_code = std::forward<CodeT>(value);
58 }
59 template <typename CodeT = Aws::String>
61 SetCode(std::forward<CodeT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetResourceId() const { return m_resourceId; }
71 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
72 template <typename ResourceIdT = Aws::String>
73 void SetResourceId(ResourceIdT&& value) {
74 m_resourceIdHasBeenSet = true;
75 m_resourceId = std::forward<ResourceIdT>(value);
76 }
77 template <typename ResourceIdT = Aws::String>
79 SetResourceId(std::forward<ResourceIdT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetResourceType() const { return m_resourceType; }
89 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
90 template <typename ResourceTypeT = Aws::String>
91 void SetResourceType(ResourceTypeT&& value) {
92 m_resourceTypeHasBeenSet = true;
93 m_resourceType = std::forward<ResourceTypeT>(value);
94 }
95 template <typename ResourceTypeT = Aws::String>
97 SetResourceType(std::forward<ResourceTypeT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_message;
103
104 Aws::String m_code;
105
106 Aws::String m_resourceId;
107
108 Aws::String m_resourceType;
109 bool m_messageHasBeenSet = false;
110 bool m_codeHasBeenSet = false;
111 bool m_resourceIdHasBeenSet = false;
112 bool m_resourceTypeHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace mgn
117} // namespace Aws
ResourceNotFoundException & WithCode(CodeT &&value)
AWS_MGN_API ResourceNotFoundException()=default
AWS_MGN_API ResourceNotFoundException & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceNotFoundException & WithResourceType(ResourceTypeT &&value)
AWS_MGN_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceNotFoundException & WithMessage(MessageT &&value)
ResourceNotFoundException & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue