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/dlm/DLM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DLM
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DLM_API ResourceNotFoundException() = default;
39
40
42
43 inline const Aws::String& GetMessage() const { return m_message; }
44 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 template<typename MessageT = Aws::String>
46 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
47 template<typename MessageT = Aws::String>
48 ResourceNotFoundException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
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) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
57 template<typename CodeT = Aws::String>
58 ResourceNotFoundException& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
60
62
65 inline const Aws::String& GetResourceType() const { return m_resourceType; }
66 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
67 template<typename ResourceTypeT = Aws::String>
68 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
69 template<typename ResourceTypeT = Aws::String>
70 ResourceNotFoundException& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
72
74
77 inline const Aws::Vector<Aws::String>& GetResourceIds() const { return m_resourceIds; }
78 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
79 template<typename ResourceIdsT = Aws::Vector<Aws::String>>
80 void SetResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::forward<ResourceIdsT>(value); }
81 template<typename ResourceIdsT = Aws::Vector<Aws::String>>
82 ResourceNotFoundException& WithResourceIds(ResourceIdsT&& value) { SetResourceIds(std::forward<ResourceIdsT>(value)); return *this;}
83 template<typename ResourceIdsT = Aws::String>
84 ResourceNotFoundException& AddResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value)); return *this; }
86 private:
87
88 Aws::String m_message;
89 bool m_messageHasBeenSet = false;
90
91 Aws::String m_code;
92 bool m_codeHasBeenSet = false;
93
94 Aws::String m_resourceType;
95 bool m_resourceTypeHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_resourceIds;
98 bool m_resourceIdsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace DLM
103} // 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