AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResourceSyncAttempt.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeConnections
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CODECONNECTIONS_API ResourceSyncAttempt() = default;
40 AWS_CODECONNECTIONS_API ResourceSyncAttempt(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODECONNECTIONS_API ResourceSyncAttempt& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<ResourceSyncEvent>& GetEvents() const { return m_events; }
50 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
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>>
54 ResourceSyncAttempt& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
55 template<typename EventsT = ResourceSyncEvent>
56 ResourceSyncAttempt& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
58
60
64 inline const Revision& GetInitialRevision() const { return m_initialRevision; }
65 inline bool InitialRevisionHasBeenSet() const { return m_initialRevisionHasBeenSet; }
66 template<typename InitialRevisionT = Revision>
67 void SetInitialRevision(InitialRevisionT&& value) { m_initialRevisionHasBeenSet = true; m_initialRevision = std::forward<InitialRevisionT>(value); }
68 template<typename InitialRevisionT = Revision>
69 ResourceSyncAttempt& WithInitialRevision(InitialRevisionT&& value) { SetInitialRevision(std::forward<InitialRevisionT>(value)); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
77 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
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>
81 ResourceSyncAttempt& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
83
85
93 inline ResourceSyncStatus GetStatus() const { return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(ResourceSyncStatus value) { m_statusHasBeenSet = true; m_status = value; }
96 inline ResourceSyncAttempt& WithStatus(ResourceSyncStatus value) { SetStatus(value); return *this;}
98
100
105 inline const Revision& GetTargetRevision() const { return m_targetRevision; }
106 inline bool TargetRevisionHasBeenSet() const { return m_targetRevisionHasBeenSet; }
107 template<typename TargetRevisionT = Revision>
108 void SetTargetRevision(TargetRevisionT&& value) { m_targetRevisionHasBeenSet = true; m_targetRevision = std::forward<TargetRevisionT>(value); }
109 template<typename TargetRevisionT = Revision>
110 ResourceSyncAttempt& WithTargetRevision(TargetRevisionT&& value) { SetTargetRevision(std::forward<TargetRevisionT>(value)); return *this;}
112
114
118 inline const Aws::String& GetTarget() const { return m_target; }
119 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
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>
123 ResourceSyncAttempt& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
125 private:
126
128 bool m_eventsHasBeenSet = false;
129
130 Revision m_initialRevision;
131 bool m_initialRevisionHasBeenSet = false;
132
133 Aws::Utils::DateTime m_startedAt{};
134 bool m_startedAtHasBeenSet = false;
135
137 bool m_statusHasBeenSet = false;
138
139 Revision m_targetRevision;
140 bool m_targetRevisionHasBeenSet = false;
141
142 Aws::String m_target;
143 bool m_targetHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace CodeConnections
148} // namespace Aws
ResourceSyncAttempt & WithTargetRevision(TargetRevisionT &&value)
AWS_CODECONNECTIONS_API ResourceSyncAttempt & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSyncAttempt & WithEvents(EventsT &&value)
ResourceSyncAttempt & WithInitialRevision(InitialRevisionT &&value)
const Aws::Vector< ResourceSyncEvent > & GetEvents() const
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECONNECTIONS_API ResourceSyncAttempt()=default
ResourceSyncAttempt & AddEvents(EventsT &&value)
ResourceSyncAttempt & WithStartedAt(StartedAtT &&value)
ResourceSyncAttempt & WithTarget(TargetT &&value)
ResourceSyncAttempt & WithStatus(ResourceSyncStatus value)
const Aws::Utils::DateTime & GetStartedAt() 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