AWS SDK for C++  1.9.104
AWS SDK for C++
RequestError.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 MTurk
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 RequestError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
57 
58 
59  inline RequestError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
60 
61 
62  inline RequestError& WithMessage(const char* value) { SetMessage(value); return *this;}
63 
64 
65 
66  inline const Aws::String& GetTurkErrorCode() const{ return m_turkErrorCode; }
67 
68 
69  inline bool TurkErrorCodeHasBeenSet() const { return m_turkErrorCodeHasBeenSet; }
70 
71 
72  inline void SetTurkErrorCode(const Aws::String& value) { m_turkErrorCodeHasBeenSet = true; m_turkErrorCode = value; }
73 
74 
75  inline void SetTurkErrorCode(Aws::String&& value) { m_turkErrorCodeHasBeenSet = true; m_turkErrorCode = std::move(value); }
76 
77 
78  inline void SetTurkErrorCode(const char* value) { m_turkErrorCodeHasBeenSet = true; m_turkErrorCode.assign(value); }
79 
80 
81  inline RequestError& WithTurkErrorCode(const Aws::String& value) { SetTurkErrorCode(value); return *this;}
82 
83 
84  inline RequestError& WithTurkErrorCode(Aws::String&& value) { SetTurkErrorCode(std::move(value)); return *this;}
85 
86 
87  inline RequestError& WithTurkErrorCode(const char* value) { SetTurkErrorCode(value); return *this;}
88 
89  private:
90 
91  Aws::String m_message;
92  bool m_messageHasBeenSet;
93 
94  Aws::String m_turkErrorCode;
95  bool m_turkErrorCodeHasBeenSet;
96  };
97 
98 } // namespace Model
99 } // namespace MTurk
100 } // namespace Aws
Aws::MTurk::Model::RequestError::SetMessage
void SetMessage(const Aws::String &value)
Definition: RequestError.h:47
Aws::MTurk::Model::RequestError::WithTurkErrorCode
RequestError & WithTurkErrorCode(const Aws::String &value)
Definition: RequestError.h:81
Aws::MTurk::Model::RequestError::GetTurkErrorCode
const Aws::String & GetTurkErrorCode() const
Definition: RequestError.h:66
Aws::MTurk::Model::RequestError::RequestError
RequestError()
Aws::MTurk::Model::RequestError::SetTurkErrorCode
void SetTurkErrorCode(Aws::String &&value)
Definition: RequestError.h:75
Aws::MTurk::Model::RequestError::WithMessage
RequestError & WithMessage(Aws::String &&value)
Definition: RequestError.h:59
Aws::MTurk::Model::RequestError
Definition: RequestError.h:32
Aws::MTurk::Model::RequestError::WithTurkErrorCode
RequestError & WithTurkErrorCode(Aws::String &&value)
Definition: RequestError.h:84
Aws::MTurk::Model::RequestError::SetTurkErrorCode
void SetTurkErrorCode(const Aws::String &value)
Definition: RequestError.h:72
Aws::MTurk::Model::RequestError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: RequestError.h:44
Aws::MTurk::Model::RequestError::WithMessage
RequestError & WithMessage(const Aws::String &value)
Definition: RequestError.h:56
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::MTurk::Model::RequestError::GetMessage
const Aws::String & GetMessage() const
Definition: RequestError.h:41
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MTurk::Model::RequestError::WithMessage
RequestError & WithMessage(const char *value)
Definition: RequestError.h:62
Aws::MTurk::Model::RequestError::RequestError
RequestError(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::RequestError::TurkErrorCodeHasBeenSet
bool TurkErrorCodeHasBeenSet() const
Definition: RequestError.h:69
Aws::MTurk::Model::RequestError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
MTurk_EXPORTS.h
Aws::MTurk::Model::RequestError::SetMessage
void SetMessage(const char *value)
Definition: RequestError.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::RequestError::WithTurkErrorCode
RequestError & WithTurkErrorCode(const char *value)
Definition: RequestError.h:87
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::RequestError::SetMessage
void SetMessage(Aws::String &&value)
Definition: RequestError.h:50
Aws::MTurk::Model::RequestError::SetTurkErrorCode
void SetTurkErrorCode(const char *value)
Definition: RequestError.h:78
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::RequestError::operator=
RequestError & operator=(Aws::Utils::Json::JsonView jsonValue)