AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CommandExecutionSummary.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/CommandExecutionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOT_API CommandExecutionSummary() = default;
41
42
44
47 inline const Aws::String& GetCommandArn() const { return m_commandArn; }
48 inline bool CommandArnHasBeenSet() const { return m_commandArnHasBeenSet; }
49 template<typename CommandArnT = Aws::String>
50 void SetCommandArn(CommandArnT&& value) { m_commandArnHasBeenSet = true; m_commandArn = std::forward<CommandArnT>(value); }
51 template<typename CommandArnT = Aws::String>
52 CommandExecutionSummary& WithCommandArn(CommandArnT&& value) { SetCommandArn(std::forward<CommandArnT>(value)); return *this;}
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) { m_executionIdHasBeenSet = true; m_executionId = std::forward<ExecutionIdT>(value); }
63 template<typename ExecutionIdT = Aws::String>
64 CommandExecutionSummary& WithExecutionId(ExecutionIdT&& value) { SetExecutionId(std::forward<ExecutionIdT>(value)); return *this;}
66
68
72 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
73 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
74 template<typename TargetArnT = Aws::String>
75 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
76 template<typename TargetArnT = Aws::String>
77 CommandExecutionSummary& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
79
81
84 inline CommandExecutionStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(CommandExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
89
91
95 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
96 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
97 template<typename CreatedAtT = Aws::Utils::DateTime>
98 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
99 template<typename CreatedAtT = Aws::Utils::DateTime>
100 CommandExecutionSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
102
104
108 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
109 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
110 template<typename StartedAtT = Aws::Utils::DateTime>
111 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
112 template<typename StartedAtT = Aws::Utils::DateTime>
113 CommandExecutionSummary& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
115
117
121 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
122 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
123 template<typename CompletedAtT = Aws::Utils::DateTime>
124 void SetCompletedAt(CompletedAtT&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::forward<CompletedAtT>(value); }
125 template<typename CompletedAtT = Aws::Utils::DateTime>
126 CommandExecutionSummary& WithCompletedAt(CompletedAtT&& value) { SetCompletedAt(std::forward<CompletedAtT>(value)); return *this;}
128 private:
129
130 Aws::String m_commandArn;
131 bool m_commandArnHasBeenSet = false;
132
133 Aws::String m_executionId;
134 bool m_executionIdHasBeenSet = false;
135
136 Aws::String m_targetArn;
137 bool m_targetArnHasBeenSet = false;
138
140 bool m_statusHasBeenSet = false;
141
142 Aws::Utils::DateTime m_createdAt{};
143 bool m_createdAtHasBeenSet = false;
144
145 Aws::Utils::DateTime m_startedAt{};
146 bool m_startedAtHasBeenSet = false;
147
148 Aws::Utils::DateTime m_completedAt{};
149 bool m_completedAtHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace IoT
154} // 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