7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/codeconnections/model/Revision.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/codeconnections/model/ResourceSyncStatus.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/codeconnections/model/ResourceSyncEvent.h>
26namespace CodeConnections
51 template<
typename EventsT = Aws::Vector<ResourceSyncEvent>>
52 void SetEvents(EventsT&& value) { m_eventsHasBeenSet =
true; m_events = std::forward<EventsT>(value); }
53 template<
typename EventsT = Aws::Vector<ResourceSyncEvent>>
55 template<
typename EventsT = ResourceSyncEvent>
66 template<
typename InitialRevisionT = Revision>
67 void SetInitialRevision(InitialRevisionT&& value) { m_initialRevisionHasBeenSet =
true; m_initialRevision = std::forward<InitialRevisionT>(value); }
68 template<
typename InitialRevisionT = Revision>
78 template<
typename StartedAtT = Aws::Utils::DateTime>
79 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet =
true; m_startedAt = std::forward<StartedAtT>(value); }
80 template<
typename StartedAtT = Aws::Utils::DateTime>
107 template<
typename TargetRevisionT = Revision>
108 void SetTargetRevision(TargetRevisionT&& value) { m_targetRevisionHasBeenSet =
true; m_targetRevision = std::forward<TargetRevisionT>(value); }
109 template<
typename TargetRevisionT = Revision>
120 template<
typename TargetT = Aws::String>
121 void SetTarget(TargetT&& value) { m_targetHasBeenSet =
true; m_target = std::forward<TargetT>(value); }
122 template<
typename TargetT = Aws::String>
128 bool m_eventsHasBeenSet =
false;
131 bool m_initialRevisionHasBeenSet =
false;
134 bool m_startedAtHasBeenSet =
false;
137 bool m_statusHasBeenSet =
false;
139 Revision m_targetRevision;
140 bool m_targetRevisionHasBeenSet =
false;
143 bool m_targetHasBeenSet =
false;
ResourceSyncAttempt & WithTargetRevision(TargetRevisionT &&value)
const Aws::String & GetTarget() const
void SetTargetRevision(TargetRevisionT &&value)
AWS_CODECONNECTIONS_API ResourceSyncAttempt & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TargetHasBeenSet() const
void SetStartedAt(StartedAtT &&value)
ResourceSyncAttempt & WithEvents(EventsT &&value)
bool StatusHasBeenSet() const
bool EventsHasBeenSet() const
ResourceSyncAttempt & WithInitialRevision(InitialRevisionT &&value)
const Aws::Vector< ResourceSyncEvent > & GetEvents() const
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEvents(EventsT &&value)
AWS_CODECONNECTIONS_API ResourceSyncAttempt()=default
ResourceSyncAttempt & AddEvents(EventsT &&value)
ResourceSyncAttempt & WithStartedAt(StartedAtT &&value)
bool InitialRevisionHasBeenSet() const
bool StartedAtHasBeenSet() const
ResourceSyncAttempt & WithTarget(TargetT &&value)
void SetInitialRevision(InitialRevisionT &&value)
const Revision & GetInitialRevision() const
void SetTarget(TargetT &&value)
void SetStatus(ResourceSyncStatus value)
const Revision & GetTargetRevision() const
ResourceSyncAttempt & WithStatus(ResourceSyncStatus value)
const Aws::Utils::DateTime & GetStartedAt() const
ResourceSyncStatus GetStatus() const
bool TargetRevisionHasBeenSet() const
AWS_CODECONNECTIONS_API ResourceSyncAttempt(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue