AWS SDK for C++  1.8.155
AWS SDK for C++
FailureDetails.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 EMR
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
46  inline const Aws::String& GetReason() const{ return m_reason; }
47 
53  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
54 
60  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
61 
67  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
68 
74  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
75 
81  inline FailureDetails& WithReason(const Aws::String& value) { SetReason(value); return *this;}
82 
88  inline FailureDetails& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
89 
95  inline FailureDetails& WithReason(const char* value) { SetReason(value); return *this;}
96 
97 
103  inline const Aws::String& GetMessage() const{ return m_message; }
104 
110  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
111 
117  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
118 
124  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
125 
131  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
132 
138  inline FailureDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
139 
145  inline FailureDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
146 
152  inline FailureDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
153 
154 
159  inline const Aws::String& GetLogFile() const{ return m_logFile; }
160 
165  inline bool LogFileHasBeenSet() const { return m_logFileHasBeenSet; }
166 
171  inline void SetLogFile(const Aws::String& value) { m_logFileHasBeenSet = true; m_logFile = value; }
172 
177  inline void SetLogFile(Aws::String&& value) { m_logFileHasBeenSet = true; m_logFile = std::move(value); }
178 
183  inline void SetLogFile(const char* value) { m_logFileHasBeenSet = true; m_logFile.assign(value); }
184 
189  inline FailureDetails& WithLogFile(const Aws::String& value) { SetLogFile(value); return *this;}
190 
195  inline FailureDetails& WithLogFile(Aws::String&& value) { SetLogFile(std::move(value)); return *this;}
196 
201  inline FailureDetails& WithLogFile(const char* value) { SetLogFile(value); return *this;}
202 
203  private:
204 
205  Aws::String m_reason;
206  bool m_reasonHasBeenSet;
207 
208  Aws::String m_message;
209  bool m_messageHasBeenSet;
210 
211  Aws::String m_logFile;
212  bool m_logFileHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace EMR
217 } // namespace Aws
Aws::EMR::Model::FailureDetails::SetMessage
void SetMessage(const char *value)
Definition: FailureDetails.h:131
Aws::EMR::Model::FailureDetails::SetLogFile
void SetLogFile(const char *value)
Definition: FailureDetails.h:183
EMR_EXPORTS.h
Aws::EMR::Model::FailureDetails::GetReason
const Aws::String & GetReason() const
Definition: FailureDetails.h:46
Aws::EMR::Model::FailureDetails::WithLogFile
FailureDetails & WithLogFile(Aws::String &&value)
Definition: FailureDetails.h:195
Aws::EMR::Model::FailureDetails::WithLogFile
FailureDetails & WithLogFile(const char *value)
Definition: FailureDetails.h:201
Aws::EMR::Model::FailureDetails::operator=
FailureDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::FailureDetails::WithReason
FailureDetails & WithReason(const Aws::String &value)
Definition: FailureDetails.h:81
Aws::EMR::Model::FailureDetails::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: FailureDetails.h:53
Aws::EMR::Model::FailureDetails
Definition: FailureDetails.h:33
Aws::EMR::Model::FailureDetails::SetReason
void SetReason(Aws::String &&value)
Definition: FailureDetails.h:67
Aws::EMR::Model::FailureDetails::WithMessage
FailureDetails & WithMessage(Aws::String &&value)
Definition: FailureDetails.h:145
Aws::EMR::Model::FailureDetails::WithMessage
FailureDetails & WithMessage(const char *value)
Definition: FailureDetails.h:152
Aws::EMR::Model::FailureDetails::WithReason
FailureDetails & WithReason(Aws::String &&value)
Definition: FailureDetails.h:88
Aws::EMR::Model::FailureDetails::GetLogFile
const Aws::String & GetLogFile() const
Definition: FailureDetails.h:159
Aws::EMR::Model::FailureDetails::SetMessage
void SetMessage(Aws::String &&value)
Definition: FailureDetails.h:124
Aws::EMR::Model::FailureDetails::LogFileHasBeenSet
bool LogFileHasBeenSet() const
Definition: FailureDetails.h:165
Aws::EMR::Model::FailureDetails::SetReason
void SetReason(const Aws::String &value)
Definition: FailureDetails.h:60
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::EMR::Model::FailureDetails::SetMessage
void SetMessage(const Aws::String &value)
Definition: FailureDetails.h:117
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::FailureDetails::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: FailureDetails.h:110
Aws::EMR::Model::FailureDetails::WithLogFile
FailureDetails & WithLogFile(const Aws::String &value)
Definition: FailureDetails.h:189
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::FailureDetails::FailureDetails
FailureDetails()
Aws::EMR::Model::FailureDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::FailureDetails::SetLogFile
void SetLogFile(Aws::String &&value)
Definition: FailureDetails.h:177
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::FailureDetails::WithMessage
FailureDetails & WithMessage(const Aws::String &value)
Definition: FailureDetails.h:138
Aws::EMR::Model::FailureDetails::GetMessage
const Aws::String & GetMessage() const
Definition: FailureDetails.h:103
Aws::EMR::Model::FailureDetails::WithReason
FailureDetails & WithReason(const char *value)
Definition: FailureDetails.h:95
Aws::EMR::Model::FailureDetails::SetLogFile
void SetLogFile(const Aws::String &value)
Definition: FailureDetails.h:171
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::FailureDetails::SetReason
void SetReason(const char *value)
Definition: FailureDetails.h:74
Aws::EMR::Model::FailureDetails::FailureDetails
FailureDetails(Aws::Utils::Json::JsonView jsonValue)