7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/model/ResourceSyncEvent.h>
9#include <aws/codestar-connections/model/ResourceSyncStatus.h>
10#include <aws/codestar-connections/model/Revision.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
24namespace CodeStarconnections {
45 template <
typename EventsT = Aws::Vector<ResourceSyncEvent>>
47 m_eventsHasBeenSet =
true;
48 m_events = std::forward<EventsT>(value);
50 template <
typename EventsT = Aws::Vector<ResourceSyncEvent>>
55 template <
typename EventsT = ResourceSyncEvent>
57 m_eventsHasBeenSet =
true;
58 m_events.emplace_back(std::forward<EventsT>(value));
70 template <
typename InitialRevisionT = Revision>
72 m_initialRevisionHasBeenSet =
true;
73 m_initialRevision = std::forward<InitialRevisionT>(value);
75 template <
typename InitialRevisionT = Revision>
88 template <
typename StartedAtT = Aws::Utils::DateTime>
90 m_startedAtHasBeenSet =
true;
91 m_startedAt = std::forward<StartedAtT>(value);
93 template <
typename StartedAtT = Aws::Utils::DateTime>
112 m_statusHasBeenSet =
true;
129 template <
typename TargetRevisionT = Revision>
131 m_targetRevisionHasBeenSet =
true;
132 m_targetRevision = std::forward<TargetRevisionT>(value);
134 template <
typename TargetRevisionT = Revision>
148 template <
typename TargetT = Aws::String>
150 m_targetHasBeenSet =
true;
151 m_target = std::forward<TargetT>(value);
153 template <
typename TargetT = Aws::String>
168 Revision m_targetRevision;
171 bool m_eventsHasBeenSet =
false;
172 bool m_initialRevisionHasBeenSet =
false;
173 bool m_startedAtHasBeenSet =
false;
174 bool m_statusHasBeenSet =
false;
175 bool m_targetRevisionHasBeenSet =
false;
176 bool m_targetHasBeenSet =
false;
const Aws::Vector< ResourceSyncEvent > & GetEvents() const
const Revision & GetInitialRevision() const
void SetStartedAt(StartedAtT &&value)
AWS_CODESTARCONNECTIONS_API ResourceSyncAttempt(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartedAt() const
ResourceSyncAttempt & WithEvents(EventsT &&value)
AWS_CODESTARCONNECTIONS_API ResourceSyncAttempt & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTarget() const
void SetEvents(EventsT &&value)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceSyncStatus GetStatus() const
ResourceSyncAttempt & AddEvents(EventsT &&value)
AWS_CODESTARCONNECTIONS_API ResourceSyncAttempt()=default
ResourceSyncAttempt & WithStartedAt(StartedAtT &&value)
ResourceSyncAttempt & WithStatus(ResourceSyncStatus value)
ResourceSyncAttempt & WithTarget(TargetT &&value)
void SetTargetRevision(TargetRevisionT &&value)
bool TargetRevisionHasBeenSet() const
bool StatusHasBeenSet() const
bool InitialRevisionHasBeenSet() const
void SetTarget(TargetT &&value)
bool StartedAtHasBeenSet() const
ResourceSyncAttempt & WithTargetRevision(TargetRevisionT &&value)
const Revision & GetTargetRevision() const
void SetInitialRevision(InitialRevisionT &&value)
void SetStatus(ResourceSyncStatus value)
bool TargetHasBeenSet() const
ResourceSyncAttempt & WithInitialRevision(InitialRevisionT &&value)
bool EventsHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue