AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResourceNotFoundException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dlm/DLM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DLM {
21namespace Model {
22
29 public:
30 AWS_DLM_API ResourceNotFoundException() = default;
34
36
37 inline const Aws::String& GetMessage() const { return m_message; }
38 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
39 template <typename MessageT = Aws::String>
40 void SetMessage(MessageT&& value) {
41 m_messageHasBeenSet = true;
42 m_message = std::forward<MessageT>(value);
43 }
44 template <typename MessageT = Aws::String>
46 SetMessage(std::forward<MessageT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::String& GetCode() const { return m_code; }
54 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
55 template <typename CodeT = Aws::String>
56 void SetCode(CodeT&& value) {
57 m_codeHasBeenSet = true;
58 m_code = std::forward<CodeT>(value);
59 }
60 template <typename CodeT = Aws::String>
62 SetCode(std::forward<CodeT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetResourceType() const { return m_resourceType; }
72 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
73 template <typename ResourceTypeT = Aws::String>
74 void SetResourceType(ResourceTypeT&& value) {
75 m_resourceTypeHasBeenSet = true;
76 m_resourceType = std::forward<ResourceTypeT>(value);
77 }
78 template <typename ResourceTypeT = Aws::String>
80 SetResourceType(std::forward<ResourceTypeT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Vector<Aws::String>& GetResourceIds() const { return m_resourceIds; }
90 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
91 template <typename ResourceIdsT = Aws::Vector<Aws::String>>
92 void SetResourceIds(ResourceIdsT&& value) {
93 m_resourceIdsHasBeenSet = true;
94 m_resourceIds = std::forward<ResourceIdsT>(value);
95 }
96 template <typename ResourceIdsT = Aws::Vector<Aws::String>>
98 SetResourceIds(std::forward<ResourceIdsT>(value));
99 return *this;
100 }
101 template <typename ResourceIdsT = Aws::String>
103 m_resourceIdsHasBeenSet = true;
104 m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_message;
110
111 Aws::String m_code;
112
113 Aws::String m_resourceType;
114
115 Aws::Vector<Aws::String> m_resourceIds;
116 bool m_messageHasBeenSet = false;
117 bool m_codeHasBeenSet = false;
118 bool m_resourceTypeHasBeenSet = false;
119 bool m_resourceIdsHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace DLM
124} // namespace Aws
AWS_DLM_API ResourceNotFoundException & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceNotFoundException & WithResourceIds(ResourceIdsT &&value)
AWS_DLM_API ResourceNotFoundException()=default
ResourceNotFoundException & WithMessage(MessageT &&value)
ResourceNotFoundException & WithResourceType(ResourceTypeT &&value)
ResourceNotFoundException & AddResourceIds(ResourceIdsT &&value)
const Aws::Vector< Aws::String > & GetResourceIds() const
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceNotFoundException & WithCode(CodeT &&value)
AWS_DLM_API ResourceNotFoundException(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