AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeDeploy {
21namespace Model {
22
30 public:
31 AWS_CODEDEPLOY_API Diagnostics() = default;
32 AWS_CODEDEPLOY_API Diagnostics(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEDEPLOY_API Diagnostics& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
47 inline LifecycleErrorCode GetErrorCode() const { return m_errorCode; }
48 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
49 inline void SetErrorCode(LifecycleErrorCode value) {
50 m_errorCodeHasBeenSet = true;
51 m_errorCode = value;
52 }
54 SetErrorCode(value);
55 return *this;
56 }
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) {
67 m_scriptNameHasBeenSet = true;
68 m_scriptName = std::forward<ScriptNameT>(value);
69 }
70 template <typename ScriptNameT = Aws::String>
71 Diagnostics& WithScriptName(ScriptNameT&& value) {
72 SetScriptName(std::forward<ScriptNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetMessage() const { return m_message; }
82 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
83 template <typename MessageT = Aws::String>
84 void SetMessage(MessageT&& value) {
85 m_messageHasBeenSet = true;
86 m_message = std::forward<MessageT>(value);
87 }
88 template <typename MessageT = Aws::String>
89 Diagnostics& WithMessage(MessageT&& value) {
90 SetMessage(std::forward<MessageT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetLogTail() const { return m_logTail; }
101 inline bool LogTailHasBeenSet() const { return m_logTailHasBeenSet; }
102 template <typename LogTailT = Aws::String>
103 void SetLogTail(LogTailT&& value) {
104 m_logTailHasBeenSet = true;
105 m_logTail = std::forward<LogTailT>(value);
106 }
107 template <typename LogTailT = Aws::String>
108 Diagnostics& WithLogTail(LogTailT&& value) {
109 SetLogTail(std::forward<LogTailT>(value));
110 return *this;
111 }
113 private:
115
116 Aws::String m_scriptName;
117
118 Aws::String m_message;
119
120 Aws::String m_logTail;
121 bool m_errorCodeHasBeenSet = false;
122 bool m_scriptNameHasBeenSet = false;
123 bool m_messageHasBeenSet = false;
124 bool m_logTailHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace CodeDeploy
129} // namespace Aws
LifecycleErrorCode GetErrorCode() const
Definition Diagnostics.h:47
const Aws::String & GetLogTail() const
const Aws::String & GetMessage() const
Definition Diagnostics.h:81
void SetLogTail(LogTailT &&value)
Diagnostics & WithScriptName(ScriptNameT &&value)
Definition Diagnostics.h:71
Diagnostics & WithLogTail(LogTailT &&value)
void SetMessage(MessageT &&value)
Definition Diagnostics.h:84
AWS_CODEDEPLOY_API Diagnostics()=default
void SetErrorCode(LifecycleErrorCode value)
Definition Diagnostics.h:49
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:89
const Aws::String & GetScriptName() const
Definition Diagnostics.h:63
Diagnostics & WithErrorCode(LifecycleErrorCode value)
Definition Diagnostics.h:53
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