AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RepositorySyncAttempt.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/proton/model/RepositorySyncStatus.h>
11#include <aws/proton/model/RepositorySyncEvent.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Proton
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PROTON_API RepositorySyncAttempt() = default;
41 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<RepositorySyncEvent>& GetEvents() const { return m_events; }
49 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
50 template<typename EventsT = Aws::Vector<RepositorySyncEvent>>
51 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
52 template<typename EventsT = Aws::Vector<RepositorySyncEvent>>
53 RepositorySyncAttempt& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
54 template<typename EventsT = RepositorySyncEvent>
55 RepositorySyncAttempt& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
57
59
62 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
63 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
64 template<typename StartedAtT = Aws::Utils::DateTime>
65 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
66 template<typename StartedAtT = Aws::Utils::DateTime>
67 RepositorySyncAttempt& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
69
71
74 inline RepositorySyncStatus GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(RepositorySyncStatus value) { m_statusHasBeenSet = true; m_status = value; }
77 inline RepositorySyncAttempt& WithStatus(RepositorySyncStatus value) { SetStatus(value); return *this;}
79 private:
80
82 bool m_eventsHasBeenSet = false;
83
84 Aws::Utils::DateTime m_startedAt{};
85 bool m_startedAtHasBeenSet = false;
86
88 bool m_statusHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Proton
93} // 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