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