AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RepositorySyncAttempt.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/proton/Proton_EXPORTS.h>
10#include <aws/proton/model/RepositorySyncEvent.h>
11#include <aws/proton/model/RepositorySyncStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Proton {
23namespace Model {
24
32 public:
33 AWS_PROTON_API RepositorySyncAttempt() = default;
36 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<RepositorySyncEvent>& GetEvents() const { return m_events; }
43 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
44 template <typename EventsT = Aws::Vector<RepositorySyncEvent>>
45 void SetEvents(EventsT&& value) {
46 m_eventsHasBeenSet = true;
47 m_events = std::forward<EventsT>(value);
48 }
49 template <typename EventsT = Aws::Vector<RepositorySyncEvent>>
51 SetEvents(std::forward<EventsT>(value));
52 return *this;
53 }
54 template <typename EventsT = RepositorySyncEvent>
55 RepositorySyncAttempt& AddEvents(EventsT&& value) {
56 m_eventsHasBeenSet = true;
57 m_events.emplace_back(std::forward<EventsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
67 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
68 template <typename StartedAtT = Aws::Utils::DateTime>
69 void SetStartedAt(StartedAtT&& value) {
70 m_startedAtHasBeenSet = true;
71 m_startedAt = std::forward<StartedAtT>(value);
72 }
73 template <typename StartedAtT = Aws::Utils::DateTime>
74 RepositorySyncAttempt& WithStartedAt(StartedAtT&& value) {
75 SetStartedAt(std::forward<StartedAtT>(value));
76 return *this;
77 }
79
81
84 inline RepositorySyncStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(RepositorySyncStatus value) {
87 m_statusHasBeenSet = true;
88 m_status = value;
89 }
91 SetStatus(value);
92 return *this;
93 }
95 private:
97
98 Aws::Utils::DateTime m_startedAt{};
99
101 bool m_eventsHasBeenSet = false;
102 bool m_startedAtHasBeenSet = false;
103 bool m_statusHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Proton
108} // namespace Aws
AWS_PROTON_API RepositorySyncAttempt()=default
void SetStatus(RepositorySyncStatus value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
RepositorySyncAttempt & AddEvents(EventsT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Vector< RepositorySyncEvent > & GetEvents() const
RepositorySyncAttempt & WithStartedAt(StartedAtT &&value)
AWS_PROTON_API RepositorySyncAttempt & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncAttempt & WithStatus(RepositorySyncStatus value)
RepositorySyncAttempt & WithEvents(EventsT &&value)
AWS_PROTON_API RepositorySyncAttempt(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue