AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
SetupExecutionDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/SetupStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail {
22namespace Model {
23
31 public:
32 AWS_LIGHTSAIL_API SetupExecutionDetails() = default;
35 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetCommand() const { return m_command; }
42 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
43 template <typename CommandT = Aws::String>
44 void SetCommand(CommandT&& value) {
45 m_commandHasBeenSet = true;
46 m_command = std::forward<CommandT>(value);
47 }
48 template <typename CommandT = Aws::String>
50 SetCommand(std::forward<CommandT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetDateTime() const { return m_dateTime; }
60 inline bool DateTimeHasBeenSet() const { return m_dateTimeHasBeenSet; }
61 template <typename DateTimeT = Aws::Utils::DateTime>
62 void SetDateTime(DateTimeT&& value) {
63 m_dateTimeHasBeenSet = true;
64 m_dateTime = std::forward<DateTimeT>(value);
65 }
66 template <typename DateTimeT = Aws::Utils::DateTime>
67 SetupExecutionDetails& WithDateTime(DateTimeT&& value) {
68 SetDateTime(std::forward<DateTimeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline SetupStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(SetupStatus value) {
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetStandardError() const { return m_standardError; }
112 inline bool StandardErrorHasBeenSet() const { return m_standardErrorHasBeenSet; }
113 template <typename StandardErrorT = Aws::String>
114 void SetStandardError(StandardErrorT&& value) {
115 m_standardErrorHasBeenSet = true;
116 m_standardError = std::forward<StandardErrorT>(value);
117 }
118 template <typename StandardErrorT = Aws::String>
119 SetupExecutionDetails& WithStandardError(StandardErrorT&& value) {
120 SetStandardError(std::forward<StandardErrorT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetStandardOutput() const { return m_standardOutput; }
130 inline bool StandardOutputHasBeenSet() const { return m_standardOutputHasBeenSet; }
131 template <typename StandardOutputT = Aws::String>
132 void SetStandardOutput(StandardOutputT&& value) {
133 m_standardOutputHasBeenSet = true;
134 m_standardOutput = std::forward<StandardOutputT>(value);
135 }
136 template <typename StandardOutputT = Aws::String>
137 SetupExecutionDetails& WithStandardOutput(StandardOutputT&& value) {
138 SetStandardOutput(std::forward<StandardOutputT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetVersion() const { return m_version; }
148 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
149 template <typename VersionT = Aws::String>
150 void SetVersion(VersionT&& value) {
151 m_versionHasBeenSet = true;
152 m_version = std::forward<VersionT>(value);
153 }
154 template <typename VersionT = Aws::String>
156 SetVersion(std::forward<VersionT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_command;
162 bool m_commandHasBeenSet = false;
163
164 Aws::Utils::DateTime m_dateTime{};
165 bool m_dateTimeHasBeenSet = false;
166
167 Aws::String m_name;
168 bool m_nameHasBeenSet = false;
169
171 bool m_statusHasBeenSet = false;
172
173 Aws::String m_standardError;
174 bool m_standardErrorHasBeenSet = false;
175
176 Aws::String m_standardOutput;
177 bool m_standardOutputHasBeenSet = false;
178
179 Aws::String m_version;
180 bool m_versionHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace Lightsail
185} // namespace Aws
SetupExecutionDetails & WithStatus(SetupStatus value)
SetupExecutionDetails & WithVersion(VersionT &&value)
AWS_LIGHTSAIL_API SetupExecutionDetails()=default
SetupExecutionDetails & WithStandardError(StandardErrorT &&value)
SetupExecutionDetails & WithName(NameT &&value)
SetupExecutionDetails & WithStandardOutput(StandardOutputT &&value)
const Aws::Utils::DateTime & GetDateTime() const
AWS_LIGHTSAIL_API SetupExecutionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
SetupExecutionDetails & WithCommand(CommandT &&value)
SetupExecutionDetails & WithDateTime(DateTimeT &&value)
AWS_LIGHTSAIL_API SetupExecutionDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue