AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
JobExecutionSummary.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/JobExecutionStatus.h>
9#include <aws/core/utils/DateTime.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 IoT
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOT_API JobExecutionSummary() = default;
39
40
42
45 inline JobExecutionStatus GetStatus() const { return m_status; }
46 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
47 inline void SetStatus(JobExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
48 inline JobExecutionSummary& WithStatus(JobExecutionStatus value) { SetStatus(value); return *this;}
50
52
55 inline const Aws::Utils::DateTime& GetQueuedAt() const { return m_queuedAt; }
56 inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; }
57 template<typename QueuedAtT = Aws::Utils::DateTime>
58 void SetQueuedAt(QueuedAtT&& value) { m_queuedAtHasBeenSet = true; m_queuedAt = std::forward<QueuedAtT>(value); }
59 template<typename QueuedAtT = Aws::Utils::DateTime>
60 JobExecutionSummary& WithQueuedAt(QueuedAtT&& value) { SetQueuedAt(std::forward<QueuedAtT>(value)); return *this;}
62
64
67 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
68 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
69 template<typename StartedAtT = Aws::Utils::DateTime>
70 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
71 template<typename StartedAtT = Aws::Utils::DateTime>
72 JobExecutionSummary& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
74
76
80 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
81 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
82 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
83 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
84 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
85 JobExecutionSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
87
89
94 inline long long GetExecutionNumber() const { return m_executionNumber; }
95 inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; }
96 inline void SetExecutionNumber(long long value) { m_executionNumberHasBeenSet = true; m_executionNumber = value; }
97 inline JobExecutionSummary& WithExecutionNumber(long long value) { SetExecutionNumber(value); return *this;}
99
101
105 inline int GetRetryAttempt() const { return m_retryAttempt; }
106 inline bool RetryAttemptHasBeenSet() const { return m_retryAttemptHasBeenSet; }
107 inline void SetRetryAttempt(int value) { m_retryAttemptHasBeenSet = true; m_retryAttempt = value; }
108 inline JobExecutionSummary& WithRetryAttempt(int value) { SetRetryAttempt(value); return *this;}
110 private:
111
113 bool m_statusHasBeenSet = false;
114
115 Aws::Utils::DateTime m_queuedAt{};
116 bool m_queuedAtHasBeenSet = false;
117
118 Aws::Utils::DateTime m_startedAt{};
119 bool m_startedAtHasBeenSet = false;
120
121 Aws::Utils::DateTime m_lastUpdatedAt{};
122 bool m_lastUpdatedAtHasBeenSet = false;
123
124 long long m_executionNumber{0};
125 bool m_executionNumberHasBeenSet = false;
126
127 int m_retryAttempt{0};
128 bool m_retryAttemptHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace IoT
133} // namespace Aws
JobExecutionSummary & WithStatus(JobExecutionStatus value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_IOT_API JobExecutionSummary(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API JobExecutionSummary()=default
JobExecutionSummary & WithRetryAttempt(int value)
JobExecutionSummary & WithQueuedAt(QueuedAtT &&value)
JobExecutionSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetQueuedAt() const
JobExecutionSummary & WithExecutionNumber(long long value)
void SetStatus(JobExecutionStatus value)
const Aws::Utils::DateTime & GetStartedAt() const
JobExecutionSummary & WithStartedAt(StartedAtT &&value)
AWS_IOT_API JobExecutionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue