AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEvents(const Aws::Vector<ResourceSyncEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
52 inline void SetEvents(Aws::Vector<ResourceSyncEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
53 inline ResourceSyncAttempt& WithEvents(const Aws::Vector<ResourceSyncEvent>& value) { SetEvents(value); return *this;}
54 inline ResourceSyncAttempt& WithEvents(Aws::Vector<ResourceSyncEvent>&& value) { SetEvents(std::move(value)); return *this;}
55 inline ResourceSyncAttempt& AddEvents(const ResourceSyncEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
56 inline ResourceSyncAttempt& AddEvents(ResourceSyncEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
58
60
64 inline const Revision& GetInitialRevision() const{ return m_initialRevision; }
65 inline bool InitialRevisionHasBeenSet() const { return m_initialRevisionHasBeenSet; }
66 inline void SetInitialRevision(const Revision& value) { m_initialRevisionHasBeenSet = true; m_initialRevision = value; }
67 inline void SetInitialRevision(Revision&& value) { m_initialRevisionHasBeenSet = true; m_initialRevision = std::move(value); }
68 inline ResourceSyncAttempt& WithInitialRevision(const Revision& value) { SetInitialRevision(value); return *this;}
69 inline ResourceSyncAttempt& WithInitialRevision(Revision&& value) { SetInitialRevision(std::move(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 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
79 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
80 inline ResourceSyncAttempt& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
81 inline ResourceSyncAttempt& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
83
85
93 inline const ResourceSyncStatus& GetStatus() const{ return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(const ResourceSyncStatus& value) { m_statusHasBeenSet = true; m_status = value; }
96 inline void SetStatus(ResourceSyncStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
97 inline ResourceSyncAttempt& WithStatus(const ResourceSyncStatus& value) { SetStatus(value); return *this;}
98 inline ResourceSyncAttempt& WithStatus(ResourceSyncStatus&& value) { SetStatus(std::move(value)); return *this;}
100
102
107 inline const Revision& GetTargetRevision() const{ return m_targetRevision; }
108 inline bool TargetRevisionHasBeenSet() const { return m_targetRevisionHasBeenSet; }
109 inline void SetTargetRevision(const Revision& value) { m_targetRevisionHasBeenSet = true; m_targetRevision = value; }
110 inline void SetTargetRevision(Revision&& value) { m_targetRevisionHasBeenSet = true; m_targetRevision = std::move(value); }
111 inline ResourceSyncAttempt& WithTargetRevision(const Revision& value) { SetTargetRevision(value); return *this;}
112 inline ResourceSyncAttempt& WithTargetRevision(Revision&& value) { SetTargetRevision(std::move(value)); return *this;}
114
116
120 inline const Aws::String& GetTarget() const{ return m_target; }
121 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
122 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
123 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
124 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
125 inline ResourceSyncAttempt& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
126 inline ResourceSyncAttempt& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
127 inline ResourceSyncAttempt& WithTarget(const char* value) { SetTarget(value); return *this;}
129 private:
130
132 bool m_eventsHasBeenSet = false;
133
134 Revision m_initialRevision;
135 bool m_initialRevisionHasBeenSet = false;
136
137 Aws::Utils::DateTime m_startedAt;
138 bool m_startedAtHasBeenSet = false;
139
140 ResourceSyncStatus m_status;
141 bool m_statusHasBeenSet = false;
142
143 Revision m_targetRevision;
144 bool m_targetRevisionHasBeenSet = false;
145
146 Aws::String m_target;
147 bool m_targetHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace CodeConnections
152} // namespace Aws
AWS_CODECONNECTIONS_API ResourceSyncAttempt & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSyncAttempt & WithTarget(Aws::String &&value)
ResourceSyncAttempt & WithInitialRevision(const Revision &value)
void SetStartedAt(Aws::Utils::DateTime &&value)
ResourceSyncAttempt & WithStartedAt(const Aws::Utils::DateTime &value)
ResourceSyncAttempt & WithTarget(const Aws::String &value)
const Aws::Vector< ResourceSyncEvent > & GetEvents() const
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const ResourceSyncStatus &value)
void SetStartedAt(const Aws::Utils::DateTime &value)
ResourceSyncAttempt & AddEvents(ResourceSyncEvent &&value)
ResourceSyncAttempt & WithStatus(ResourceSyncStatus &&value)
ResourceSyncAttempt & WithTargetRevision(const Revision &value)
ResourceSyncAttempt & WithEvents(const Aws::Vector< ResourceSyncEvent > &value)
ResourceSyncAttempt & WithInitialRevision(Revision &&value)
void SetEvents(const Aws::Vector< ResourceSyncEvent > &value)
ResourceSyncAttempt & WithStatus(const ResourceSyncStatus &value)
ResourceSyncAttempt & WithTargetRevision(Revision &&value)
void SetEvents(Aws::Vector< ResourceSyncEvent > &&value)
ResourceSyncAttempt & WithStartedAt(Aws::Utils::DateTime &&value)
ResourceSyncAttempt & AddEvents(const ResourceSyncEvent &value)
const Aws::Utils::DateTime & GetStartedAt() const
ResourceSyncAttempt & WithEvents(Aws::Vector< ResourceSyncEvent > &&value)
ResourceSyncAttempt & WithTarget(const char *value)
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