AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RepositorySyncAttempt.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/codestar-connections/model/RepositorySyncStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codestar-connections/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 CodeStarconnections
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CODESTARCONNECTIONS_API RepositorySyncAttempt() = default;
39 AWS_CODESTARCONNECTIONS_API RepositorySyncAttempt(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODESTARCONNECTIONS_API RepositorySyncAttempt& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
49 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
50 template<typename StartedAtT = Aws::Utils::DateTime>
51 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
52 template<typename StartedAtT = Aws::Utils::DateTime>
53 RepositorySyncAttempt& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
55
57
67 inline RepositorySyncStatus GetStatus() const { return m_status; }
68 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
69 inline void SetStatus(RepositorySyncStatus value) { m_statusHasBeenSet = true; m_status = value; }
70 inline RepositorySyncAttempt& WithStatus(RepositorySyncStatus value) { SetStatus(value); return *this;}
72
74
77 inline const Aws::Vector<RepositorySyncEvent>& GetEvents() const { return m_events; }
78 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
79 template<typename EventsT = Aws::Vector<RepositorySyncEvent>>
80 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
81 template<typename EventsT = Aws::Vector<RepositorySyncEvent>>
82 RepositorySyncAttempt& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
83 template<typename EventsT = RepositorySyncEvent>
84 RepositorySyncAttempt& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
86 private:
87
88 Aws::Utils::DateTime m_startedAt{};
89 bool m_startedAtHasBeenSet = false;
90
92 bool m_statusHasBeenSet = false;
93
95 bool m_eventsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CodeStarconnections
100} // 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