AWS SDK for C++  1.9.158
AWS SDK for C++
ResourceUnavailableException.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace QuickSight
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
41 
42  inline const Aws::String& GetMessage() const{ return m_message; }
43 
44 
45  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 
47 
48  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 
50 
51  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 
53 
54  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
55 
56 
57  inline ResourceUnavailableException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline ResourceUnavailableException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline ResourceUnavailableException& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
69  inline const ExceptionResourceType& GetResourceType() const{ return m_resourceType; }
70 
74  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
75 
79  inline void SetResourceType(const ExceptionResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
80 
84  inline void SetResourceType(ExceptionResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
85 
89  inline ResourceUnavailableException& WithResourceType(const ExceptionResourceType& value) { SetResourceType(value); return *this;}
90 
94  inline ResourceUnavailableException& WithResourceType(ExceptionResourceType&& value) { SetResourceType(std::move(value)); return *this;}
95 
96 
100  inline const Aws::String& GetRequestId() const{ return m_requestId; }
101 
105  inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
106 
110  inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
111 
115  inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
116 
120  inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
121 
125  inline ResourceUnavailableException& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
126 
130  inline ResourceUnavailableException& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
131 
135  inline ResourceUnavailableException& WithRequestId(const char* value) { SetRequestId(value); return *this;}
136 
137  private:
138 
139  Aws::String m_message;
140  bool m_messageHasBeenSet;
141 
142  ExceptionResourceType m_resourceType;
143  bool m_resourceTypeHasBeenSet;
144 
145  Aws::String m_requestId;
146  bool m_requestIdHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace QuickSight
151 } // namespace Aws
Aws::QuickSight::Model::ResourceUnavailableException::GetMessage
const Aws::String & GetMessage() const
Definition: ResourceUnavailableException.h:42
QuickSight_EXPORTS.h
Aws::QuickSight::Model::ResourceUnavailableException::ResourceUnavailableException
ResourceUnavailableException()
Aws::QuickSight::Model::ResourceUnavailableException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ResourceUnavailableException.h:45
Aws::QuickSight::Model::ResourceUnavailableException::WithRequestId
ResourceUnavailableException & WithRequestId(Aws::String &&value)
Definition: ResourceUnavailableException.h:130
Aws::QuickSight::Model::ResourceUnavailableException::WithMessage
ResourceUnavailableException & WithMessage(Aws::String &&value)
Definition: ResourceUnavailableException.h:60
Aws::QuickSight::Model::ResourceUnavailableException::SetResourceType
void SetResourceType(ExceptionResourceType &&value)
Definition: ResourceUnavailableException.h:84
Aws::QuickSight::Model::ResourceUnavailableException
Definition: ResourceUnavailableException.h:33
Aws::QuickSight::Model::ResourceUnavailableException::ResourceUnavailableException
ResourceUnavailableException(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::ResourceUnavailableException::WithResourceType
ResourceUnavailableException & WithResourceType(ExceptionResourceType &&value)
Definition: ResourceUnavailableException.h:94
Aws::QuickSight::Model::ResourceUnavailableException::GetResourceType
const ExceptionResourceType & GetResourceType() const
Definition: ResourceUnavailableException.h:69
Aws::QuickSight::Model::ResourceUnavailableException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ResourceUnavailableException.h:48
Aws::QuickSight::Model::ResourceUnavailableException::WithRequestId
ResourceUnavailableException & WithRequestId(const Aws::String &value)
Definition: ResourceUnavailableException.h:125
Aws::QuickSight::Model::ResourceUnavailableException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::QuickSight::Model::ResourceUnavailableException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ResourceUnavailableException.h:51
ExceptionResourceType.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::QuickSight::Model::ResourceUnavailableException::SetMessage
void SetMessage(const char *value)
Definition: ResourceUnavailableException.h:54
Aws::QuickSight::Model::ResourceUnavailableException::WithResourceType
ResourceUnavailableException & WithResourceType(const ExceptionResourceType &value)
Definition: ResourceUnavailableException.h:89
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::QuickSight::Model::ResourceUnavailableException::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ResourceUnavailableException.h:74
Aws::QuickSight::Model::ResourceUnavailableException::RequestIdHasBeenSet
bool RequestIdHasBeenSet() const
Definition: ResourceUnavailableException.h:105
Aws::QuickSight::Model::ResourceUnavailableException::WithMessage
ResourceUnavailableException & WithMessage(const char *value)
Definition: ResourceUnavailableException.h:63
Aws::QuickSight::Model::ResourceUnavailableException::SetRequestId
void SetRequestId(const Aws::String &value)
Definition: ResourceUnavailableException.h:110
Aws::QuickSight::Model::ResourceUnavailableException::SetRequestId
void SetRequestId(Aws::String &&value)
Definition: ResourceUnavailableException.h:115
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::ResourceUnavailableException::SetRequestId
void SetRequestId(const char *value)
Definition: ResourceUnavailableException.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::ResourceUnavailableException::operator=
ResourceUnavailableException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::QuickSight::Model::ResourceUnavailableException::WithRequestId
ResourceUnavailableException & WithRequestId(const char *value)
Definition: ResourceUnavailableException.h:135
Aws::QuickSight::Model::ResourceUnavailableException::SetResourceType
void SetResourceType(const ExceptionResourceType &value)
Definition: ResourceUnavailableException.h:79
Aws::QuickSight::Model::ResourceUnavailableException::WithMessage
ResourceUnavailableException & WithMessage(const Aws::String &value)
Definition: ResourceUnavailableException.h:57
Aws::QuickSight::Model::ExceptionResourceType
ExceptionResourceType
Definition: ExceptionResourceType.h:17
Aws::QuickSight::Model::ResourceUnavailableException::GetRequestId
const Aws::String & GetRequestId() const
Definition: ResourceUnavailableException.h:100