AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ResourceNotFoundException.h
1
6#pragma once
7#include <aws/appconfigdata/AppConfigData_EXPORTS.h>
8#include <aws/appconfigdata/model/ResourceType.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppConfigData {
22namespace Model {
23
30 public:
31 AWS_APPCONFIGDATA_API ResourceNotFoundException() = default;
32 AWS_APPCONFIGDATA_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPCONFIGDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetMessage() const { return m_message; }
39 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
40 template <typename MessageT = Aws::String>
41 void SetMessage(MessageT&& value) {
42 m_messageHasBeenSet = true;
43 m_message = std::forward<MessageT>(value);
44 }
45 template <typename MessageT = Aws::String>
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
56 inline ResourceType GetResourceType() const { return m_resourceType; }
57 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
58 inline void SetResourceType(ResourceType value) {
59 m_resourceTypeHasBeenSet = true;
60 m_resourceType = value;
61 }
63 SetResourceType(value);
64 return *this;
65 }
67
69
73 inline const Aws::Map<Aws::String, Aws::String>& GetReferencedBy() const { return m_referencedBy; }
74 inline bool ReferencedByHasBeenSet() const { return m_referencedByHasBeenSet; }
75 template <typename ReferencedByT = Aws::Map<Aws::String, Aws::String>>
76 void SetReferencedBy(ReferencedByT&& value) {
77 m_referencedByHasBeenSet = true;
78 m_referencedBy = std::forward<ReferencedByT>(value);
79 }
80 template <typename ReferencedByT = Aws::Map<Aws::String, Aws::String>>
82 SetReferencedBy(std::forward<ReferencedByT>(value));
83 return *this;
84 }
85 template <typename ReferencedByKeyT = Aws::String, typename ReferencedByValueT = Aws::String>
86 ResourceNotFoundException& AddReferencedBy(ReferencedByKeyT&& key, ReferencedByValueT&& value) {
87 m_referencedByHasBeenSet = true;
88 m_referencedBy.emplace(std::forward<ReferencedByKeyT>(key), std::forward<ReferencedByValueT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_message;
94
95 ResourceType m_resourceType{ResourceType::NOT_SET};
96
98 bool m_messageHasBeenSet = false;
99 bool m_resourceTypeHasBeenSet = false;
100 bool m_referencedByHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace AppConfigData
105} // namespace Aws
AWS_APPCONFIGDATA_API ResourceNotFoundException()=default
ResourceNotFoundException & AddReferencedBy(ReferencedByKeyT &&key, ReferencedByValueT &&value)
ResourceNotFoundException & WithReferencedBy(ReferencedByT &&value)
AWS_APPCONFIGDATA_API ResourceNotFoundException & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceNotFoundException & WithMessage(MessageT &&value)
const Aws::Map< Aws::String, Aws::String > & GetReferencedBy() const
AWS_APPCONFIGDATA_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceNotFoundException & WithResourceType(ResourceType value)
AWS_APPCONFIGDATA_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue)
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