AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RepositorySyncAttempt.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/model/RepositorySyncEvent.h>
9#include <aws/codestar-connections/model/RepositorySyncStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeStarconnections {
23namespace Model {
24
32 public:
33 AWS_CODESTARCONNECTIONS_API RepositorySyncAttempt() = default;
34 AWS_CODESTARCONNECTIONS_API RepositorySyncAttempt(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODESTARCONNECTIONS_API RepositorySyncAttempt& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
43 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
44 template <typename StartedAtT = Aws::Utils::DateTime>
45 void SetStartedAt(StartedAtT&& value) {
46 m_startedAtHasBeenSet = true;
47 m_startedAt = std::forward<StartedAtT>(value);
48 }
49 template <typename StartedAtT = Aws::Utils::DateTime>
50 RepositorySyncAttempt& WithStartedAt(StartedAtT&& value) {
51 SetStartedAt(std::forward<StartedAtT>(value));
52 return *this;
53 }
55
57
67 inline RepositorySyncStatus GetStatus() const { return m_status; }
68 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
69 inline void SetStatus(RepositorySyncStatus value) {
70 m_statusHasBeenSet = true;
71 m_status = value;
72 }
74 SetStatus(value);
75 return *this;
76 }
78
80
83 inline const Aws::Vector<RepositorySyncEvent>& GetEvents() const { return m_events; }
84 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
85 template <typename EventsT = Aws::Vector<RepositorySyncEvent>>
86 void SetEvents(EventsT&& value) {
87 m_eventsHasBeenSet = true;
88 m_events = std::forward<EventsT>(value);
89 }
90 template <typename EventsT = Aws::Vector<RepositorySyncEvent>>
92 SetEvents(std::forward<EventsT>(value));
93 return *this;
94 }
95 template <typename EventsT = RepositorySyncEvent>
96 RepositorySyncAttempt& AddEvents(EventsT&& value) {
97 m_eventsHasBeenSet = true;
98 m_events.emplace_back(std::forward<EventsT>(value));
99 return *this;
100 }
102 private:
103 Aws::Utils::DateTime m_startedAt{};
104
106
108 bool m_startedAtHasBeenSet = false;
109 bool m_statusHasBeenSet = false;
110 bool m_eventsHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace CodeStarconnections
115} // namespace Aws
const Aws::Vector< RepositorySyncEvent > & GetEvents() const
AWS_CODESTARCONNECTIONS_API RepositorySyncAttempt()=default
RepositorySyncAttempt & AddEvents(EventsT &&value)
RepositorySyncAttempt & WithStatus(RepositorySyncStatus value)
AWS_CODESTARCONNECTIONS_API RepositorySyncAttempt(Aws::Utils::Json::JsonView jsonValue)
AWS_CODESTARCONNECTIONS_API RepositorySyncAttempt & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
RepositorySyncAttempt & WithStartedAt(StartedAtT &&value)
RepositorySyncAttempt & WithEvents(EventsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue