AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const JobExecutionStatus& GetStatus() const{ return m_status; }
46 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
47 inline void SetStatus(const JobExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
48 inline void SetStatus(JobExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
49 inline JobExecutionSummary& WithStatus(const JobExecutionStatus& value) { SetStatus(value); return *this;}
50 inline JobExecutionSummary& WithStatus(JobExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetQueuedAt() const{ return m_queuedAt; }
58 inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; }
59 inline void SetQueuedAt(const Aws::Utils::DateTime& value) { m_queuedAtHasBeenSet = true; m_queuedAt = value; }
60 inline void SetQueuedAt(Aws::Utils::DateTime&& value) { m_queuedAtHasBeenSet = true; m_queuedAt = std::move(value); }
61 inline JobExecutionSummary& WithQueuedAt(const Aws::Utils::DateTime& value) { SetQueuedAt(value); return *this;}
62 inline JobExecutionSummary& WithQueuedAt(Aws::Utils::DateTime&& value) { SetQueuedAt(std::move(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
70 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
71 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
72 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
73 inline JobExecutionSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
74 inline JobExecutionSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
76
78
82 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
83 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
84 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
85 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
86 inline JobExecutionSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
87 inline JobExecutionSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
89
91
96 inline long long GetExecutionNumber() const{ return m_executionNumber; }
97 inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; }
98 inline void SetExecutionNumber(long long value) { m_executionNumberHasBeenSet = true; m_executionNumber = value; }
99 inline JobExecutionSummary& WithExecutionNumber(long long value) { SetExecutionNumber(value); return *this;}
101
103
107 inline int GetRetryAttempt() const{ return m_retryAttempt; }
108 inline bool RetryAttemptHasBeenSet() const { return m_retryAttemptHasBeenSet; }
109 inline void SetRetryAttempt(int value) { m_retryAttemptHasBeenSet = true; m_retryAttempt = value; }
110 inline JobExecutionSummary& WithRetryAttempt(int value) { SetRetryAttempt(value); return *this;}
112 private:
113
114 JobExecutionStatus m_status;
115 bool m_statusHasBeenSet = false;
116
117 Aws::Utils::DateTime m_queuedAt;
118 bool m_queuedAtHasBeenSet = false;
119
120 Aws::Utils::DateTime m_startedAt;
121 bool m_startedAtHasBeenSet = false;
122
123 Aws::Utils::DateTime m_lastUpdatedAt;
124 bool m_lastUpdatedAtHasBeenSet = false;
125
126 long long m_executionNumber;
127 bool m_executionNumberHasBeenSet = false;
128
129 int m_retryAttempt;
130 bool m_retryAttemptHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace IoT
135} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetStartedAt(const Aws::Utils::DateTime &value)
AWS_IOT_API JobExecutionSummary(Aws::Utils::Json::JsonView jsonValue)
JobExecutionSummary & WithQueuedAt(const Aws::Utils::DateTime &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
JobExecutionSummary & WithStatus(const JobExecutionStatus &value)
JobExecutionSummary & WithRetryAttempt(int value)
JobExecutionSummary & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetQueuedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetQueuedAt() const
JobExecutionSummary & WithStartedAt(const Aws::Utils::DateTime &value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
JobExecutionSummary & WithStartedAt(Aws::Utils::DateTime &&value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
JobExecutionSummary & WithQueuedAt(Aws::Utils::DateTime &&value)
JobExecutionSummary & WithExecutionNumber(long long value)
void SetStatus(JobExecutionStatus &&value)
JobExecutionSummary & WithStatus(JobExecutionStatus &&value)
void SetQueuedAt(const Aws::Utils::DateTime &value)
void SetStatus(const JobExecutionStatus &value)
const Aws::Utils::DateTime & GetStartedAt() const
JobExecutionSummary & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
AWS_IOT_API JobExecutionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStartedAt(Aws::Utils::DateTime &&value)
const JobExecutionStatus & GetStatus() const
Aws::Utils::Json::JsonValue JsonValue