AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ResourceNotFoundException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace deadline {
21namespace Model {
22
29 public:
30 AWS_DEADLINE_API ResourceNotFoundException() = default;
33 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
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
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) {
59 m_resourceIdHasBeenSet = true;
60 m_resourceId = std::forward<ResourceIdT>(value);
61 }
62 template <typename ResourceIdT = Aws::String>
64 SetResourceId(std::forward<ResourceIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetResourceType() const { return m_resourceType; }
74 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
75 template <typename ResourceTypeT = Aws::String>
76 void SetResourceType(ResourceTypeT&& value) {
77 m_resourceTypeHasBeenSet = true;
78 m_resourceType = std::forward<ResourceTypeT>(value);
79 }
80 template <typename ResourceTypeT = Aws::String>
82 SetResourceType(std::forward<ResourceTypeT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
92 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
93 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
94 void SetContext(ContextT&& value) {
95 m_contextHasBeenSet = true;
96 m_context = std::forward<ContextT>(value);
97 }
98 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
100 SetContext(std::forward<ContextT>(value));
101 return *this;
102 }
103 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
104 ResourceNotFoundException& AddContext(ContextKeyT&& key, ContextValueT&& value) {
105 m_contextHasBeenSet = true;
106 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_message;
112
113 Aws::String m_resourceId;
114
115 Aws::String m_resourceType;
116
118 bool m_messageHasBeenSet = false;
119 bool m_resourceIdHasBeenSet = false;
120 bool m_resourceTypeHasBeenSet = false;
121 bool m_contextHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace deadline
126} // namespace Aws
ResourceNotFoundException & WithContext(ContextT &&value)
AWS_DEADLINE_API ResourceNotFoundException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API ResourceNotFoundException()=default
const Aws::Map< Aws::String, Aws::String > & GetContext() const
ResourceNotFoundException & WithMessage(MessageT &&value)
ResourceNotFoundException & WithResourceId(ResourceIdT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceNotFoundException & WithResourceType(ResourceTypeT &&value)
ResourceNotFoundException & AddContext(ContextKeyT &&key, ContextValueT &&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