AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Diagnostics.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/LifecycleErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
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:
36 AWS_CODEDEPLOY_API Diagnostics();
37 AWS_CODEDEPLOY_API Diagnostics(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEDEPLOY_API Diagnostics& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
53 inline const LifecycleErrorCode& GetErrorCode() const{ return m_errorCode; }
54 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
55 inline void SetErrorCode(const LifecycleErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
56 inline void SetErrorCode(LifecycleErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
57 inline Diagnostics& WithErrorCode(const LifecycleErrorCode& value) { SetErrorCode(value); return *this;}
58 inline Diagnostics& WithErrorCode(LifecycleErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
60
62
65 inline const Aws::String& GetScriptName() const{ return m_scriptName; }
66 inline bool ScriptNameHasBeenSet() const { return m_scriptNameHasBeenSet; }
67 inline void SetScriptName(const Aws::String& value) { m_scriptNameHasBeenSet = true; m_scriptName = value; }
68 inline void SetScriptName(Aws::String&& value) { m_scriptNameHasBeenSet = true; m_scriptName = std::move(value); }
69 inline void SetScriptName(const char* value) { m_scriptNameHasBeenSet = true; m_scriptName.assign(value); }
70 inline Diagnostics& WithScriptName(const Aws::String& value) { SetScriptName(value); return *this;}
71 inline Diagnostics& WithScriptName(Aws::String&& value) { SetScriptName(std::move(value)); return *this;}
72 inline Diagnostics& WithScriptName(const char* value) { SetScriptName(value); return *this;}
74
76
79 inline const Aws::String& GetMessage() const{ return m_message; }
80 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
81 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
82 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
83 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
84 inline Diagnostics& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
85 inline Diagnostics& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
86 inline Diagnostics& WithMessage(const char* value) { SetMessage(value); return *this;}
88
90
94 inline const Aws::String& GetLogTail() const{ return m_logTail; }
95 inline bool LogTailHasBeenSet() const { return m_logTailHasBeenSet; }
96 inline void SetLogTail(const Aws::String& value) { m_logTailHasBeenSet = true; m_logTail = value; }
97 inline void SetLogTail(Aws::String&& value) { m_logTailHasBeenSet = true; m_logTail = std::move(value); }
98 inline void SetLogTail(const char* value) { m_logTailHasBeenSet = true; m_logTail.assign(value); }
99 inline Diagnostics& WithLogTail(const Aws::String& value) { SetLogTail(value); return *this;}
100 inline Diagnostics& WithLogTail(Aws::String&& value) { SetLogTail(std::move(value)); return *this;}
101 inline Diagnostics& WithLogTail(const char* value) { SetLogTail(value); return *this;}
103 private:
104
105 LifecycleErrorCode m_errorCode;
106 bool m_errorCodeHasBeenSet = false;
107
108 Aws::String m_scriptName;
109 bool m_scriptNameHasBeenSet = false;
110
111 Aws::String m_message;
112 bool m_messageHasBeenSet = false;
113
114 Aws::String m_logTail;
115 bool m_logTailHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace CodeDeploy
120} // namespace Aws
void SetErrorCode(const LifecycleErrorCode &value)
Definition Diagnostics.h:55
Diagnostics & WithLogTail(const char *value)
void SetScriptName(const Aws::String &value)
Definition Diagnostics.h:67
const Aws::String & GetLogTail() const
Definition Diagnostics.h:94
Diagnostics & WithErrorCode(const LifecycleErrorCode &value)
Definition Diagnostics.h:57
const Aws::String & GetMessage() const
Definition Diagnostics.h:79
void SetErrorCode(LifecycleErrorCode &&value)
Definition Diagnostics.h:56
void SetMessage(const Aws::String &value)
Definition Diagnostics.h:81
Diagnostics & WithLogTail(const Aws::String &value)
Definition Diagnostics.h:99
void SetLogTail(Aws::String &&value)
Definition Diagnostics.h:97
void SetScriptName(const char *value)
Definition Diagnostics.h:69
AWS_CODEDEPLOY_API Diagnostics()
void SetScriptName(Aws::String &&value)
Definition Diagnostics.h:68
AWS_CODEDEPLOY_API Diagnostics(Aws::Utils::Json::JsonView jsonValue)
Diagnostics & WithLogTail(Aws::String &&value)
Diagnostics & WithMessage(const Aws::String &value)
Definition Diagnostics.h:84
const LifecycleErrorCode & GetErrorCode() const
Definition Diagnostics.h:53
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessage(Aws::String &&value)
Definition Diagnostics.h:82
Diagnostics & WithScriptName(const char *value)
Definition Diagnostics.h:72
void SetMessage(const char *value)
Definition Diagnostics.h:83
Diagnostics & WithMessage(Aws::String &&value)
Definition Diagnostics.h:85
Diagnostics & WithScriptName(Aws::String &&value)
Definition Diagnostics.h:71
Diagnostics & WithMessage(const char *value)
Definition Diagnostics.h:86
Diagnostics & WithScriptName(const Aws::String &value)
Definition Diagnostics.h:70
void SetLogTail(const char *value)
Definition Diagnostics.h:98
void SetLogTail(const Aws::String &value)
Definition Diagnostics.h:96
const Aws::String & GetScriptName() const
Definition Diagnostics.h:65
AWS_CODEDEPLOY_API Diagnostics & operator=(Aws::Utils::Json::JsonView jsonValue)
Diagnostics & WithErrorCode(LifecycleErrorCode &&value)
Definition Diagnostics.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue