/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Proton { namespace Model { /** *

Detail data for a repository sync attempt activated by a push to a * repository.

See Also:

AWS * API Reference

*/ class RepositorySyncAttempt { public: AWS_PROTON_API RepositorySyncAttempt(); AWS_PROTON_API RepositorySyncAttempt(Aws::Utils::Json::JsonView jsonValue); AWS_PROTON_API RepositorySyncAttempt& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Detail data for sync attempt events.

*/ inline const Aws::Vector& GetEvents() const{ return m_events; } /** *

Detail data for sync attempt events.

*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *

Detail data for sync attempt events.

*/ inline void SetEvents(const Aws::Vector& value) { m_eventsHasBeenSet = true; m_events = value; } /** *

Detail data for sync attempt events.

*/ inline void SetEvents(Aws::Vector&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); } /** *

Detail data for sync attempt events.

*/ inline RepositorySyncAttempt& WithEvents(const Aws::Vector& value) { SetEvents(value); return *this;} /** *

Detail data for sync attempt events.

*/ inline RepositorySyncAttempt& WithEvents(Aws::Vector&& value) { SetEvents(std::move(value)); return *this;} /** *

Detail data for sync attempt events.

*/ inline RepositorySyncAttempt& AddEvents(const RepositorySyncEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *

Detail data for sync attempt events.

*/ inline RepositorySyncAttempt& AddEvents(RepositorySyncEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; } /** *

The time when the sync attempt started.

*/ inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; } /** *

The time when the sync attempt started.

*/ inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; } /** *

The time when the sync attempt started.

*/ inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; } /** *

The time when the sync attempt started.

*/ inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); } /** *

The time when the sync attempt started.

*/ inline RepositorySyncAttempt& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;} /** *

The time when the sync attempt started.

*/ inline RepositorySyncAttempt& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;} /** *

The sync attempt status.

*/ inline const RepositorySyncStatus& GetStatus() const{ return m_status; } /** *

The sync attempt status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The sync attempt status.

*/ inline void SetStatus(const RepositorySyncStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The sync attempt status.

*/ inline void SetStatus(RepositorySyncStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The sync attempt status.

*/ inline RepositorySyncAttempt& WithStatus(const RepositorySyncStatus& value) { SetStatus(value); return *this;} /** *

The sync attempt status.

*/ inline RepositorySyncAttempt& WithStatus(RepositorySyncStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Vector m_events; bool m_eventsHasBeenSet = false; Aws::Utils::DateTime m_startedAt; bool m_startedAtHasBeenSet = false; RepositorySyncStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws