AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 LifecycleErrorCode GetErrorCode() const { return m_errorCode; }
54 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
55 inline void SetErrorCode(LifecycleErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
56 inline Diagnostics& WithErrorCode(LifecycleErrorCode value) { SetErrorCode(value); return *this;}
58
60
63 inline const Aws::String& GetScriptName() const { return m_scriptName; }
64 inline bool ScriptNameHasBeenSet() const { return m_scriptNameHasBeenSet; }
65 template<typename ScriptNameT = Aws::String>
66 void SetScriptName(ScriptNameT&& value) { m_scriptNameHasBeenSet = true; m_scriptName = std::forward<ScriptNameT>(value); }
67 template<typename ScriptNameT = Aws::String>
68 Diagnostics& WithScriptName(ScriptNameT&& value) { SetScriptName(std::forward<ScriptNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetMessage() const { return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 template<typename MessageT = Aws::String>
78 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
79 template<typename MessageT = Aws::String>
80 Diagnostics& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
82
84
88 inline const Aws::String& GetLogTail() const { return m_logTail; }
89 inline bool LogTailHasBeenSet() const { return m_logTailHasBeenSet; }
90 template<typename LogTailT = Aws::String>
91 void SetLogTail(LogTailT&& value) { m_logTailHasBeenSet = true; m_logTail = std::forward<LogTailT>(value); }
92 template<typename LogTailT = Aws::String>
93 Diagnostics& WithLogTail(LogTailT&& value) { SetLogTail(std::forward<LogTailT>(value)); return *this;}
95 private:
96
98 bool m_errorCodeHasBeenSet = false;
99
100 Aws::String m_scriptName;
101 bool m_scriptNameHasBeenSet = false;
102
103 Aws::String m_message;
104 bool m_messageHasBeenSet = false;
105
106 Aws::String m_logTail;
107 bool m_logTailHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CodeDeploy
112} // namespace Aws
LifecycleErrorCode GetErrorCode() const
Definition Diagnostics.h:53
const Aws::String & GetLogTail() const
Definition Diagnostics.h:88
const Aws::String & GetMessage() const
Definition Diagnostics.h:75
void SetLogTail(LogTailT &&value)
Definition Diagnostics.h:91
Diagnostics & WithScriptName(ScriptNameT &&value)
Definition Diagnostics.h:68
Diagnostics & WithLogTail(LogTailT &&value)
Definition Diagnostics.h:93
void SetMessage(MessageT &&value)
Definition Diagnostics.h:78
AWS_CODEDEPLOY_API Diagnostics()=default
void SetErrorCode(LifecycleErrorCode value)
Definition Diagnostics.h:55
AWS_CODEDEPLOY_API Diagnostics(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
Diagnostics & WithMessage(MessageT &&value)
Definition Diagnostics.h:80
const Aws::String & GetScriptName() const
Definition Diagnostics.h:63
Diagnostics & WithErrorCode(LifecycleErrorCode value)
Definition Diagnostics.h:56
void SetScriptName(ScriptNameT &&value)
Definition Diagnostics.h:66
AWS_CODEDEPLOY_API Diagnostics & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue