AWS SDK for C++  1.8.152
AWS SDK for C++
OrganizationsException.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 
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 OrganizationsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline OrganizationsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline OrganizationsException& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
66 
67  inline const Aws::String& GetRequestId() const{ return m_requestId; }
68 
69 
70  inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
71 
72 
73  inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
74 
75 
76  inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
77 
78 
79  inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
80 
81 
82  inline OrganizationsException& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
83 
84 
85  inline OrganizationsException& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
86 
87 
88  inline OrganizationsException& WithRequestId(const char* value) { SetRequestId(value); return *this;}
89 
90  private:
91 
92  Aws::String m_message;
93  bool m_messageHasBeenSet;
94 
95  Aws::String m_requestId;
96  bool m_requestIdHasBeenSet;
97  };
98 
99 } // namespace Model
100 } // namespace DirectoryService
101 } // namespace Aws
Aws::DirectoryService::Model::OrganizationsException::GetMessage
const Aws::String & GetMessage() const
Definition: OrganizationsException.h:42
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::OrganizationsException::SetRequestId
void SetRequestId(const char *value)
Definition: OrganizationsException.h:79
Aws::DirectoryService::Model::OrganizationsException::WithRequestId
OrganizationsException & WithRequestId(const Aws::String &value)
Definition: OrganizationsException.h:82
Aws::DirectoryService::Model::OrganizationsException::WithMessage
OrganizationsException & WithMessage(const Aws::String &value)
Definition: OrganizationsException.h:57
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::OrganizationsException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: OrganizationsException.h:45
Aws::DirectoryService::Model::OrganizationsException::RequestIdHasBeenSet
bool RequestIdHasBeenSet() const
Definition: OrganizationsException.h:70
Aws::DirectoryService::Model::OrganizationsException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::OrganizationsException
Definition: OrganizationsException.h:33
Aws::DirectoryService::Model::OrganizationsException::GetRequestId
const Aws::String & GetRequestId() const
Definition: OrganizationsException.h:67
Aws::DirectoryService::Model::OrganizationsException::OrganizationsException
OrganizationsException(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::OrganizationsException::SetMessage
void SetMessage(Aws::String &&value)
Definition: OrganizationsException.h:51
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::OrganizationsException::SetRequestId
void SetRequestId(const Aws::String &value)
Definition: OrganizationsException.h:73
Aws::DirectoryService::Model::OrganizationsException::SetMessage
void SetMessage(const Aws::String &value)
Definition: OrganizationsException.h:48
Aws::DirectoryService::Model::OrganizationsException::operator=
OrganizationsException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::OrganizationsException::OrganizationsException
OrganizationsException()
Aws::DirectoryService::Model::OrganizationsException::WithRequestId
OrganizationsException & WithRequestId(Aws::String &&value)
Definition: OrganizationsException.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::OrganizationsException::WithRequestId
OrganizationsException & WithRequestId(const char *value)
Definition: OrganizationsException.h:88
Aws::DirectoryService::Model::OrganizationsException::WithMessage
OrganizationsException & WithMessage(const char *value)
Definition: OrganizationsException.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::OrganizationsException::WithMessage
OrganizationsException & WithMessage(Aws::String &&value)
Definition: OrganizationsException.h:60
Aws::DirectoryService::Model::OrganizationsException::SetMessage
void SetMessage(const char *value)
Definition: OrganizationsException.h:54
Aws::DirectoryService::Model::OrganizationsException::SetRequestId
void SetRequestId(Aws::String &&value)
Definition: OrganizationsException.h:76