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/polly/Polly_EXPORTS.h>
9#include <aws/polly/model/ResourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Polly {
21namespace Model {
22
32 public:
33 AWS_POLLY_API ResourceNotFoundException() = default;
36 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline const Aws::String& GetMessage() const { return m_message; }
41 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
42 template <typename MessageT = Aws::String>
43 void SetMessage(MessageT&& value) {
44 m_messageHasBeenSet = true;
45 m_message = std::forward<MessageT>(value);
46 }
47 template <typename MessageT = Aws::String>
49 SetMessage(std::forward<MessageT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template <typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) {
62 m_resourceIdHasBeenSet = true;
63 m_resourceId = std::forward<ResourceIdT>(value);
64 }
65 template <typename ResourceIdT = Aws::String>
67 SetResourceId(std::forward<ResourceIdT>(value));
68 return *this;
69 }
71
73
76 inline ResourceType GetResourceType() const { return m_resourceType; }
77 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
78 inline void SetResourceType(ResourceType value) {
79 m_resourceTypeHasBeenSet = true;
80 m_resourceType = value;
81 }
83 SetResourceType(value);
84 return *this;
85 }
87 private:
88 Aws::String m_message;
89
90 Aws::String m_resourceId;
91
92 ResourceType m_resourceType{ResourceType::NOT_SET};
93 bool m_messageHasBeenSet = false;
94 bool m_resourceIdHasBeenSet = false;
95 bool m_resourceTypeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Polly
100} // namespace Aws
ResourceNotFoundException & WithMessage(MessageT &&value)
AWS_POLLY_API ResourceNotFoundException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_POLLY_API ResourceNotFoundException()=default
AWS_POLLY_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue)
ResourceNotFoundException & WithResourceType(ResourceType value)
ResourceNotFoundException & WithResourceId(ResourceIdT &&value)
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue