AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceNotFoundException.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace mgn
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_MGN_API ResourceNotFoundException() = default;
38
39
41
42 inline const Aws::String& GetCode() const { return m_code; }
43 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
44 template<typename CodeT = Aws::String>
45 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
46 template<typename CodeT = Aws::String>
47 ResourceNotFoundException& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
49
51
52 inline const Aws::String& GetMessage() const { return m_message; }
53 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
54 template<typename MessageT = Aws::String>
55 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
56 template<typename MessageT = Aws::String>
57 ResourceNotFoundException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
59
61
64 inline const Aws::String& GetResourceId() const { return m_resourceId; }
65 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
66 template<typename ResourceIdT = Aws::String>
67 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
68 template<typename ResourceIdT = Aws::String>
69 ResourceNotFoundException& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetResourceType() const { return m_resourceType; }
77 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
78 template<typename ResourceTypeT = Aws::String>
79 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
80 template<typename ResourceTypeT = Aws::String>
81 ResourceNotFoundException& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
83 private:
84
85 Aws::String m_code;
86 bool m_codeHasBeenSet = false;
87
88 Aws::String m_message;
89 bool m_messageHasBeenSet = false;
90
91 Aws::String m_resourceId;
92 bool m_resourceIdHasBeenSet = false;
93
94 Aws::String m_resourceType;
95 bool m_resourceTypeHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace mgn
100} // 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