AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Diagnostics.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeDeploy
23{
24namespace Model
25{
26
34 {
35 public:
40
41
52 inline const LifecycleErrorCode& GetErrorCode() const{ return m_errorCode; }
53
64 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
65
76 inline void SetErrorCode(const LifecycleErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
77
88 inline void SetErrorCode(LifecycleErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
89
100 inline Diagnostics& WithErrorCode(const LifecycleErrorCode& value) { SetErrorCode(value); return *this;}
101
112 inline Diagnostics& WithErrorCode(LifecycleErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
113
114
118 inline const Aws::String& GetScriptName() const{ return m_scriptName; }
119
123 inline bool ScriptNameHasBeenSet() const { return m_scriptNameHasBeenSet; }
124
128 inline void SetScriptName(const Aws::String& value) { m_scriptNameHasBeenSet = true; m_scriptName = value; }
129
133 inline void SetScriptName(Aws::String&& value) { m_scriptNameHasBeenSet = true; m_scriptName = std::move(value); }
134
138 inline void SetScriptName(const char* value) { m_scriptNameHasBeenSet = true; m_scriptName.assign(value); }
139
143 inline Diagnostics& WithScriptName(const Aws::String& value) { SetScriptName(value); return *this;}
144
148 inline Diagnostics& WithScriptName(Aws::String&& value) { SetScriptName(std::move(value)); return *this;}
149
153 inline Diagnostics& WithScriptName(const char* value) { SetScriptName(value); return *this;}
154
155
159 inline const Aws::String& GetMessage() const{ return m_message; }
160
164 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
165
169 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
170
174 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
175
179 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
180
184 inline Diagnostics& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
185
189 inline Diagnostics& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
190
194 inline Diagnostics& WithMessage(const char* value) { SetMessage(value); return *this;}
195
196
201 inline const Aws::String& GetLogTail() const{ return m_logTail; }
202
207 inline bool LogTailHasBeenSet() const { return m_logTailHasBeenSet; }
208
213 inline void SetLogTail(const Aws::String& value) { m_logTailHasBeenSet = true; m_logTail = value; }
214
219 inline void SetLogTail(Aws::String&& value) { m_logTailHasBeenSet = true; m_logTail = std::move(value); }
220
225 inline void SetLogTail(const char* value) { m_logTailHasBeenSet = true; m_logTail.assign(value); }
226
231 inline Diagnostics& WithLogTail(const Aws::String& value) { SetLogTail(value); return *this;}
232
237 inline Diagnostics& WithLogTail(Aws::String&& value) { SetLogTail(std::move(value)); return *this;}
238
243 inline Diagnostics& WithLogTail(const char* value) { SetLogTail(value); return *this;}
244
245 private:
246
247 LifecycleErrorCode m_errorCode;
248 bool m_errorCodeHasBeenSet = false;
249
250 Aws::String m_scriptName;
251 bool m_scriptNameHasBeenSet = false;
252
253 Aws::String m_message;
254 bool m_messageHasBeenSet = false;
255
256 Aws::String m_logTail;
257 bool m_logTailHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace CodeDeploy
262} // namespace Aws
#define AWS_CODEDEPLOY_API
void SetErrorCode(const LifecycleErrorCode &value)
Definition: Diagnostics.h:76
Diagnostics & WithLogTail(const char *value)
Definition: Diagnostics.h:243
void SetScriptName(const Aws::String &value)
Definition: Diagnostics.h:128
const Aws::String & GetLogTail() const
Definition: Diagnostics.h:201
Diagnostics & WithErrorCode(const LifecycleErrorCode &value)
Definition: Diagnostics.h:100
const Aws::String & GetMessage() const
Definition: Diagnostics.h:159
void SetErrorCode(LifecycleErrorCode &&value)
Definition: Diagnostics.h:88
void SetMessage(const Aws::String &value)
Definition: Diagnostics.h:169
Diagnostics & WithLogTail(const Aws::String &value)
Definition: Diagnostics.h:231
void SetLogTail(Aws::String &&value)
Definition: Diagnostics.h:219
void SetScriptName(const char *value)
Definition: Diagnostics.h:138
AWS_CODEDEPLOY_API Diagnostics()
void SetScriptName(Aws::String &&value)
Definition: Diagnostics.h:133
AWS_CODEDEPLOY_API Diagnostics(Aws::Utils::Json::JsonView jsonValue)
Diagnostics & WithLogTail(Aws::String &&value)
Definition: Diagnostics.h:237
Diagnostics & WithMessage(const Aws::String &value)
Definition: Diagnostics.h:184
const LifecycleErrorCode & GetErrorCode() const
Definition: Diagnostics.h:52
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessage(Aws::String &&value)
Definition: Diagnostics.h:174
Diagnostics & WithScriptName(const char *value)
Definition: Diagnostics.h:153
void SetMessage(const char *value)
Definition: Diagnostics.h:179
Diagnostics & WithMessage(Aws::String &&value)
Definition: Diagnostics.h:189
Diagnostics & WithScriptName(Aws::String &&value)
Definition: Diagnostics.h:148
Diagnostics & WithMessage(const char *value)
Definition: Diagnostics.h:194
Diagnostics & WithScriptName(const Aws::String &value)
Definition: Diagnostics.h:143
void SetLogTail(const char *value)
Definition: Diagnostics.h:225
void SetLogTail(const Aws::String &value)
Definition: Diagnostics.h:213
const Aws::String & GetScriptName() const
Definition: Diagnostics.h:118
AWS_CODEDEPLOY_API Diagnostics & operator=(Aws::Utils::Json::JsonView jsonValue)
Diagnostics & WithErrorCode(LifecycleErrorCode &&value)
Definition: Diagnostics.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String