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/appconfigdata/AppConfigData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appconfigdata/model/ResourceType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppConfigData
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_APPCONFIGDATA_API ResourceNotFoundException() = default;
37 AWS_APPCONFIGDATA_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPCONFIGDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetMessage() const { return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 template<typename MessageT = Aws::String>
47 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
48 template<typename MessageT = Aws::String>
49 ResourceNotFoundException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
51
53
56 inline ResourceType GetResourceType() const { return m_resourceType; }
57 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
58 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
61
63
67 inline const Aws::Map<Aws::String, Aws::String>& GetReferencedBy() const { return m_referencedBy; }
68 inline bool ReferencedByHasBeenSet() const { return m_referencedByHasBeenSet; }
69 template<typename ReferencedByT = Aws::Map<Aws::String, Aws::String>>
70 void SetReferencedBy(ReferencedByT&& value) { m_referencedByHasBeenSet = true; m_referencedBy = std::forward<ReferencedByT>(value); }
71 template<typename ReferencedByT = Aws::Map<Aws::String, Aws::String>>
72 ResourceNotFoundException& WithReferencedBy(ReferencedByT&& value) { SetReferencedBy(std::forward<ReferencedByT>(value)); return *this;}
73 template<typename ReferencedByKeyT = Aws::String, typename ReferencedByValueT = Aws::String>
74 ResourceNotFoundException& AddReferencedBy(ReferencedByKeyT&& key, ReferencedByValueT&& value) {
75 m_referencedByHasBeenSet = true; m_referencedBy.emplace(std::forward<ReferencedByKeyT>(key), std::forward<ReferencedByValueT>(value)); return *this;
76 }
78 private:
79
80 Aws::String m_message;
81 bool m_messageHasBeenSet = false;
82
83 ResourceType m_resourceType{ResourceType::NOT_SET};
84 bool m_resourceTypeHasBeenSet = false;
85
87 bool m_referencedByHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace AppConfigData
92} // 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