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/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();
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 inline void SetEvents(const Aws::Vector<ResourceSyncEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
53 inline void SetEvents(Aws::Vector<ResourceSyncEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
54 inline ResourceSyncAttempt& WithEvents(const Aws::Vector<ResourceSyncEvent>& value) { SetEvents(value); return *this;}
55 inline ResourceSyncAttempt& WithEvents(Aws::Vector<ResourceSyncEvent>&& value) { SetEvents(std::move(value)); return *this;}
56 inline ResourceSyncAttempt& AddEvents(const ResourceSyncEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
57 inline ResourceSyncAttempt& AddEvents(ResourceSyncEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
59
61
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
88 inline const ResourceSyncStatus& GetStatus() const{ return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 inline void SetStatus(const ResourceSyncStatus& value) { m_statusHasBeenSet = true; m_status = value; }
91 inline void SetStatus(ResourceSyncStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
92 inline ResourceSyncAttempt& WithStatus(const ResourceSyncStatus& value) { SetStatus(value); return *this;}
93 inline ResourceSyncAttempt& WithStatus(ResourceSyncStatus&& value) { SetStatus(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetTarget() const{ return m_target; }
101 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
102 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
103 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
104 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
105 inline ResourceSyncAttempt& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
106 inline ResourceSyncAttempt& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
107 inline ResourceSyncAttempt& WithTarget(const char* value) { SetTarget(value); return *this;}
109
111
114 inline const Revision& GetTargetRevision() const{ return m_targetRevision; }
115 inline bool TargetRevisionHasBeenSet() const { return m_targetRevisionHasBeenSet; }
116 inline void SetTargetRevision(const Revision& value) { m_targetRevisionHasBeenSet = true; m_targetRevision = value; }
117 inline void SetTargetRevision(Revision&& value) { m_targetRevisionHasBeenSet = true; m_targetRevision = std::move(value); }
118 inline ResourceSyncAttempt& WithTargetRevision(const Revision& value) { SetTargetRevision(value); return *this;}
119 inline ResourceSyncAttempt& WithTargetRevision(Revision&& value) { SetTargetRevision(std::move(value)); return *this;}
121 private:
122
124 bool m_eventsHasBeenSet = false;
125
126 Revision m_initialRevision;
127 bool m_initialRevisionHasBeenSet = false;
128
129 Aws::Utils::DateTime m_startedAt;
130 bool m_startedAtHasBeenSet = false;
131
132 ResourceSyncStatus m_status;
133 bool m_statusHasBeenSet = false;
134
135 Aws::String m_target;
136 bool m_targetHasBeenSet = false;
137
138 Revision m_targetRevision;
139 bool m_targetRevisionHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Proton
144} // namespace Aws
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetStartedAt(Aws::Utils::DateTime &&value)
void SetEvents(const Aws::Vector< ResourceSyncEvent > &value)
const ResourceSyncStatus & GetStatus() const
ResourceSyncAttempt & WithStartedAt(Aws::Utils::DateTime &&value)
ResourceSyncAttempt & WithStatus(ResourceSyncStatus &&value)
void SetInitialRevision(const Revision &value)
void SetEvents(Aws::Vector< ResourceSyncEvent > &&value)
ResourceSyncAttempt & WithTarget(Aws::String &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ResourceSyncEvent > & GetEvents() const
ResourceSyncAttempt & WithTarget(const char *value)
ResourceSyncAttempt & WithEvents(const Aws::Vector< ResourceSyncEvent > &value)
void SetTarget(const Aws::String &value)
AWS_PROTON_API ResourceSyncAttempt & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API ResourceSyncAttempt(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ResourceSyncStatus &&value)
ResourceSyncAttempt & WithTargetRevision(Revision &&value)
ResourceSyncAttempt & WithInitialRevision(Revision &&value)
void SetStatus(const ResourceSyncStatus &value)
ResourceSyncAttempt & WithEvents(Aws::Vector< ResourceSyncEvent > &&value)
ResourceSyncAttempt & WithTarget(const Aws::String &value)
ResourceSyncAttempt & WithTargetRevision(const Revision &value)
const Aws::Utils::DateTime & GetStartedAt() const
ResourceSyncAttempt & AddEvents(ResourceSyncEvent &&value)
ResourceSyncAttempt & WithInitialRevision(const Revision &value)
ResourceSyncAttempt & AddEvents(const ResourceSyncEvent &value)
ResourceSyncAttempt & WithStatus(const ResourceSyncStatus &value)
void SetTargetRevision(const Revision &value)
ResourceSyncAttempt & WithStartedAt(const Aws::Utils::DateTime &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