AWS SDK for C++  1.8.152
AWS SDK for C++
ClientException.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace DirectoryService
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
40 
41  inline const Aws::String& GetMessage() const{ return m_message; }
42 
43 
44  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 
46 
47  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 
49 
50  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 
52 
53  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
54 
55 
56  inline ClientException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
57 
58 
59  inline ClientException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
60 
61 
62  inline ClientException& WithMessage(const char* value) { SetMessage(value); return *this;}
63 
64 
65 
66  inline const Aws::String& GetRequestId() const{ return m_requestId; }
67 
68 
69  inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
70 
71 
72  inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
73 
74 
75  inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
76 
77 
78  inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
79 
80 
81  inline ClientException& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
82 
83 
84  inline ClientException& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 
86 
87  inline ClientException& WithRequestId(const char* value) { SetRequestId(value); return *this;}
88 
89  private:
90 
91  Aws::String m_message;
92  bool m_messageHasBeenSet;
93 
94  Aws::String m_requestId;
95  bool m_requestIdHasBeenSet;
96  };
97 
98 } // namespace Model
99 } // namespace DirectoryService
100 } // namespace Aws
Aws::DirectoryService::Model::ClientException::WithRequestId
ClientException & WithRequestId(const char *value)
Definition: ClientException.h:87
Aws::DirectoryService::Model::ClientException::WithRequestId
ClientException & WithRequestId(const Aws::String &value)
Definition: ClientException.h:81
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::ClientException
Definition: ClientException.h:32
Aws::DirectoryService::Model::ClientException::RequestIdHasBeenSet
bool RequestIdHasBeenSet() const
Definition: ClientException.h:69
Aws::DirectoryService::Model::ClientException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ClientException.h:47
Aws::DirectoryService::Model::ClientException::operator=
ClientException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::ClientException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ClientException.h:44
Aws::DirectoryService::Model::ClientException::GetMessage
const Aws::String & GetMessage() const
Definition: ClientException.h:41
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::ClientException::ClientException
ClientException()
Aws::DirectoryService::Model::ClientException::GetRequestId
const Aws::String & GetRequestId() const
Definition: ClientException.h:66
Aws::DirectoryService::Model::ClientException::SetRequestId
void SetRequestId(const char *value)
Definition: ClientException.h:78
Aws::DirectoryService::Model::ClientException::SetMessage
void SetMessage(const char *value)
Definition: ClientException.h:53
Aws::DirectoryService::Model::ClientException::WithRequestId
ClientException & WithRequestId(Aws::String &&value)
Definition: ClientException.h:84
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::ClientException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::ClientException::SetRequestId
void SetRequestId(Aws::String &&value)
Definition: ClientException.h:75
Aws::DirectoryService::Model::ClientException::WithMessage
ClientException & WithMessage(const Aws::String &value)
Definition: ClientException.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::ClientException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ClientException.h:50
Aws::DirectoryService::Model::ClientException::ClientException
ClientException(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::ClientException::WithMessage
ClientException & WithMessage(Aws::String &&value)
Definition: ClientException.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::ClientException::SetRequestId
void SetRequestId(const Aws::String &value)
Definition: ClientException.h:72
Aws::DirectoryService::Model::ClientException::WithMessage
ClientException & WithMessage(const char *value)
Definition: ClientException.h:62