AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CommandExecutionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/CommandExecutionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT {
22namespace Model {
23
31 public:
32 AWS_IOT_API CommandExecutionSummary() = default;
36
38
41 inline const Aws::String& GetCommandArn() const { return m_commandArn; }
42 inline bool CommandArnHasBeenSet() const { return m_commandArnHasBeenSet; }
43 template <typename CommandArnT = Aws::String>
44 void SetCommandArn(CommandArnT&& value) {
45 m_commandArnHasBeenSet = true;
46 m_commandArn = std::forward<CommandArnT>(value);
47 }
48 template <typename CommandArnT = Aws::String>
50 SetCommandArn(std::forward<CommandArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetExecutionId() const { return m_executionId; }
60 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
61 template <typename ExecutionIdT = Aws::String>
62 void SetExecutionId(ExecutionIdT&& value) {
63 m_executionIdHasBeenSet = true;
64 m_executionId = std::forward<ExecutionIdT>(value);
65 }
66 template <typename ExecutionIdT = Aws::String>
68 SetExecutionId(std::forward<ExecutionIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
79 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
80 template <typename TargetArnT = Aws::String>
81 void SetTargetArn(TargetArnT&& value) {
82 m_targetArnHasBeenSet = true;
83 m_targetArn = std::forward<TargetArnT>(value);
84 }
85 template <typename TargetArnT = Aws::String>
87 SetTargetArn(std::forward<TargetArnT>(value));
88 return *this;
89 }
91
93
96 inline CommandExecutionStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(CommandExecutionStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
113 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
114 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
115 template <typename CreatedAtT = Aws::Utils::DateTime>
116 void SetCreatedAt(CreatedAtT&& value) {
117 m_createdAtHasBeenSet = true;
118 m_createdAt = std::forward<CreatedAtT>(value);
119 }
120 template <typename CreatedAtT = Aws::Utils::DateTime>
122 SetCreatedAt(std::forward<CreatedAtT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
133 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
134 template <typename StartedAtT = Aws::Utils::DateTime>
135 void SetStartedAt(StartedAtT&& value) {
136 m_startedAtHasBeenSet = true;
137 m_startedAt = std::forward<StartedAtT>(value);
138 }
139 template <typename StartedAtT = Aws::Utils::DateTime>
141 SetStartedAt(std::forward<StartedAtT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
152 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
153 template <typename CompletedAtT = Aws::Utils::DateTime>
154 void SetCompletedAt(CompletedAtT&& value) {
155 m_completedAtHasBeenSet = true;
156 m_completedAt = std::forward<CompletedAtT>(value);
157 }
158 template <typename CompletedAtT = Aws::Utils::DateTime>
160 SetCompletedAt(std::forward<CompletedAtT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_commandArn;
166
167 Aws::String m_executionId;
168
169 Aws::String m_targetArn;
170
172
173 Aws::Utils::DateTime m_createdAt{};
174
175 Aws::Utils::DateTime m_startedAt{};
176
177 Aws::Utils::DateTime m_completedAt{};
178 bool m_commandArnHasBeenSet = false;
179 bool m_executionIdHasBeenSet = false;
180 bool m_targetArnHasBeenSet = false;
181 bool m_statusHasBeenSet = false;
182 bool m_createdAtHasBeenSet = false;
183 bool m_startedAtHasBeenSet = false;
184 bool m_completedAtHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace IoT
189} // namespace Aws
const Aws::Utils::DateTime & GetCompletedAt() const
AWS_IOT_API CommandExecutionSummary()=default
CommandExecutionSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
CommandExecutionSummary & WithExecutionId(ExecutionIdT &&value)
CommandExecutionSummary & WithCommandArn(CommandArnT &&value)
AWS_IOT_API CommandExecutionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API CommandExecutionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CommandExecutionSummary & WithTargetArn(TargetArnT &&value)
CommandExecutionSummary & WithStatus(CommandExecutionStatus value)
void SetStatus(CommandExecutionStatus value)
CommandExecutionSummary & WithStartedAt(StartedAtT &&value)
CommandExecutionSummary & WithCompletedAt(CompletedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue