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/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.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 NetworkManager
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_NETWORKMANAGER_API ResourceNotFoundException() = default;
36 AWS_NETWORKMANAGER_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
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
55 inline const Aws::String& GetResourceId() const { return m_resourceId; }
56 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
57 template<typename ResourceIdT = Aws::String>
58 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
59 template<typename ResourceIdT = Aws::String>
60 ResourceNotFoundException& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetResourceType() const { return m_resourceType; }
68 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
69 template<typename ResourceTypeT = Aws::String>
70 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
71 template<typename ResourceTypeT = Aws::String>
72 ResourceNotFoundException& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
74
76
79 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
80 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
81 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
82 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
83 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
84 ResourceNotFoundException& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
85 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
86 ResourceNotFoundException& AddContext(ContextKeyT&& key, ContextValueT&& value) {
87 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
88 }
90 private:
91
92 Aws::String m_message;
93 bool m_messageHasBeenSet = false;
94
95 Aws::String m_resourceId;
96 bool m_resourceIdHasBeenSet = false;
97
98 Aws::String m_resourceType;
99 bool m_resourceTypeHasBeenSet = false;
100
102 bool m_contextHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace NetworkManager
107} // namespace Aws
ResourceNotFoundException & WithMessage(MessageT &&value)
ResourceNotFoundException & WithContext(ContextT &&value)
ResourceNotFoundException & WithResourceType(ResourceTypeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API ResourceNotFoundException()=default
AWS_NETWORKMANAGER_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue)
ResourceNotFoundException & AddContext(ContextKeyT &&key, ContextValueT &&value)
AWS_NETWORKMANAGER_API ResourceNotFoundException & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceNotFoundException & WithResourceId(ResourceIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue