AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceSyncAttempt.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/proton/model/Revision.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/proton/model/ResourceSyncStatus.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/proton/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 Proton
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_PROTON_API ResourceSyncAttempt() = default;
43 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Vector<ResourceSyncEvent>& GetEvents() const { return m_events; }
51 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
52 template<typename EventsT = Aws::Vector<ResourceSyncEvent>>
53 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
54 template<typename EventsT = Aws::Vector<ResourceSyncEvent>>
55 ResourceSyncAttempt& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
56 template<typename EventsT = ResourceSyncEvent>
57 ResourceSyncAttempt& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
59
61
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
88 inline ResourceSyncStatus GetStatus() const { return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 inline void SetStatus(ResourceSyncStatus value) { m_statusHasBeenSet = true; m_status = value; }
91 inline ResourceSyncAttempt& WithStatus(ResourceSyncStatus value) { SetStatus(value); return *this;}
93
95
98 inline const Aws::String& GetTarget() const { return m_target; }
99 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
100 template<typename TargetT = Aws::String>
101 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
102 template<typename TargetT = Aws::String>
103 ResourceSyncAttempt& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
105
107
110 inline const Revision& GetTargetRevision() const { return m_targetRevision; }
111 inline bool TargetRevisionHasBeenSet() const { return m_targetRevisionHasBeenSet; }
112 template<typename TargetRevisionT = Revision>
113 void SetTargetRevision(TargetRevisionT&& value) { m_targetRevisionHasBeenSet = true; m_targetRevision = std::forward<TargetRevisionT>(value); }
114 template<typename TargetRevisionT = Revision>
115 ResourceSyncAttempt& WithTargetRevision(TargetRevisionT&& value) { SetTargetRevision(std::forward<TargetRevisionT>(value)); return *this;}
117 private:
118
120 bool m_eventsHasBeenSet = false;
121
122 Revision m_initialRevision;
123 bool m_initialRevisionHasBeenSet = false;
124
125 Aws::Utils::DateTime m_startedAt{};
126 bool m_startedAtHasBeenSet = false;
127
129 bool m_statusHasBeenSet = false;
130
131 Aws::String m_target;
132 bool m_targetHasBeenSet = false;
133
134 Revision m_targetRevision;
135 bool m_targetRevisionHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Proton
140} // namespace Aws
AWS_PROTON_API ResourceSyncAttempt()=default
void SetTargetRevision(TargetRevisionT &&value)
ResourceSyncAttempt & AddEvents(EventsT &&value)
ResourceSyncAttempt & WithTargetRevision(TargetRevisionT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(ResourceSyncStatus value)
const Aws::Vector< ResourceSyncEvent > & GetEvents() const
void SetInitialRevision(InitialRevisionT &&value)
ResourceSyncAttempt & WithTarget(TargetT &&value)
AWS_PROTON_API ResourceSyncAttempt & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API ResourceSyncAttempt(Aws::Utils::Json::JsonView jsonValue)
ResourceSyncAttempt & WithEvents(EventsT &&value)
ResourceSyncAttempt & WithInitialRevision(InitialRevisionT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
ResourceSyncAttempt & WithStartedAt(StartedAtT &&value)
ResourceSyncAttempt & WithStatus(ResourceSyncStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue