AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ResourceUnavailableException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/ExceptionResourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
29 public:
30 AWS_QUICKSIGHT_API ResourceUnavailableException() = default;
33 AWS_QUICKSIGHT_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 ExceptionResourceType GetResourceType() const { return m_resourceType; }
56 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
58 m_resourceTypeHasBeenSet = true;
59 m_resourceType = value;
60 }
62 SetResourceType(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetRequestId() const { return m_requestId; }
72 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
73 template <typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) {
75 m_requestIdHasBeenSet = true;
76 m_requestId = std::forward<RequestIdT>(value);
77 }
78 template <typename RequestIdT = Aws::String>
80 SetRequestId(std::forward<RequestIdT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_message;
86
88
89 Aws::String m_requestId;
90 bool m_messageHasBeenSet = false;
91 bool m_resourceTypeHasBeenSet = false;
92 bool m_requestIdHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace QuickSight
97} // namespace Aws
AWS_QUICKSIGHT_API ResourceUnavailableException & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceUnavailableException & WithRequestId(RequestIdT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API ResourceUnavailableException(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API ResourceUnavailableException()=default
ResourceUnavailableException & WithResourceType(ExceptionResourceType value)
ResourceUnavailableException & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue