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>
22namespace CodeStarconnections {
44 template <
typename StartedAtT = Aws::Utils::DateTime>
46 m_startedAtHasBeenSet =
true;
47 m_startedAt = std::forward<StartedAtT>(value);
49 template <
typename StartedAtT = Aws::Utils::DateTime>
70 m_statusHasBeenSet =
true;
85 template <
typename EventsT = Aws::Vector<RepositorySyncEvent>>
87 m_eventsHasBeenSet =
true;
88 m_events = std::forward<EventsT>(value);
90 template <
typename EventsT = Aws::Vector<RepositorySyncEvent>>
95 template <
typename EventsT = RepositorySyncEvent>
97 m_eventsHasBeenSet =
true;
98 m_events.emplace_back(std::forward<EventsT>(value));
108 bool m_startedAtHasBeenSet =
false;
109 bool m_statusHasBeenSet =
false;
110 bool m_eventsHasBeenSet =
false;
void SetEvents(EventsT &&value)
bool StartedAtHasBeenSet() const
bool EventsHasBeenSet() const
const Aws::Vector< RepositorySyncEvent > & GetEvents() const
AWS_CODESTARCONNECTIONS_API RepositorySyncAttempt()=default
RepositorySyncStatus GetStatus() const
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)
void SetStartedAt(StartedAtT &&value)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
bool StatusHasBeenSet() const
RepositorySyncAttempt & WithStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetStatus(RepositorySyncStatus value)
RepositorySyncAttempt & WithEvents(EventsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue