AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ResourceNotFoundException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/identitystore/IdentityStore_EXPORTS.h>
9#include <aws/identitystore/model/ResourceNotFoundExceptionReason.h>
10#include <aws/identitystore/model/ResourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IdentityStore {
22namespace Model {
23
31 public:
32 AWS_IDENTITYSTORE_API ResourceNotFoundException() = default;
33 AWS_IDENTITYSTORE_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline ResourceType GetResourceType() const { return m_resourceType; }
43 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
44 inline void SetResourceType(ResourceType value) {
45 m_resourceTypeHasBeenSet = true;
46 m_resourceType = value;
47 }
49 SetResourceType(value);
50 return *this;
51 }
53
55
67 inline const Aws::String& GetResourceId() const { return m_resourceId; }
68 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
69 template <typename ResourceIdT = Aws::String>
70 void SetResourceId(ResourceIdT&& value) {
71 m_resourceIdHasBeenSet = true;
72 m_resourceId = std::forward<ResourceIdT>(value);
73 }
74 template <typename ResourceIdT = Aws::String>
76 SetResourceId(std::forward<ResourceIdT>(value));
77 return *this;
78 }
80
82
87 inline ResourceNotFoundExceptionReason GetReason() const { return m_reason; }
88 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
90 m_reasonHasBeenSet = true;
91 m_reason = value;
92 }
94 SetReason(value);
95 return *this;
96 }
98
100
101 inline const Aws::String& GetMessage() const { return m_message; }
102 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
103 template <typename MessageT = Aws::String>
104 void SetMessage(MessageT&& value) {
105 m_messageHasBeenSet = true;
106 m_message = std::forward<MessageT>(value);
107 }
108 template <typename MessageT = Aws::String>
110 SetMessage(std::forward<MessageT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::String& GetRequestId() const { return m_requestId; }
122 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
123 template <typename RequestIdT = Aws::String>
124 void SetRequestId(RequestIdT&& value) {
125 m_requestIdHasBeenSet = true;
126 m_requestId = std::forward<RequestIdT>(value);
127 }
128 template <typename RequestIdT = Aws::String>
130 SetRequestId(std::forward<RequestIdT>(value));
131 return *this;
132 }
134 private:
135 ResourceType m_resourceType{ResourceType::NOT_SET};
136
137 Aws::String m_resourceId;
138
140
141 Aws::String m_message;
142
143 Aws::String m_requestId;
144 bool m_resourceTypeHasBeenSet = false;
145 bool m_resourceIdHasBeenSet = false;
146 bool m_reasonHasBeenSet = false;
147 bool m_messageHasBeenSet = false;
148 bool m_requestIdHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace IdentityStore
153} // namespace Aws
AWS_IDENTITYSTORE_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue)
AWS_IDENTITYSTORE_API ResourceNotFoundException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReason(ResourceNotFoundExceptionReason value)
ResourceNotFoundException & WithRequestId(RequestIdT &&value)
ResourceNotFoundException & WithResourceId(ResourceIdT &&value)
AWS_IDENTITYSTORE_API ResourceNotFoundException()=default
ResourceNotFoundException & WithReason(ResourceNotFoundExceptionReason value)
ResourceNotFoundException & WithResourceType(ResourceType value)
ResourceNotFoundException & WithMessage(MessageT &&value)
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue