AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RepositorySyncAttempt.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/codeconnections/model/RepositorySyncStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codeconnections/model/RepositorySyncEvent.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeConnections
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CODECONNECTIONS_API RepositorySyncAttempt();
39 AWS_CODECONNECTIONS_API RepositorySyncAttempt(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODECONNECTIONS_API RepositorySyncAttempt& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
49 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
50 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
51 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
52 inline RepositorySyncAttempt& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
53 inline RepositorySyncAttempt& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
55
57
67 inline const RepositorySyncStatus& GetStatus() const{ return m_status; }
68 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
69 inline void SetStatus(const RepositorySyncStatus& value) { m_statusHasBeenSet = true; m_status = value; }
70 inline void SetStatus(RepositorySyncStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
71 inline RepositorySyncAttempt& WithStatus(const RepositorySyncStatus& value) { SetStatus(value); return *this;}
72 inline RepositorySyncAttempt& WithStatus(RepositorySyncStatus&& value) { SetStatus(std::move(value)); return *this;}
74
76
79 inline const Aws::Vector<RepositorySyncEvent>& GetEvents() const{ return m_events; }
80 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
81 inline void SetEvents(const Aws::Vector<RepositorySyncEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
82 inline void SetEvents(Aws::Vector<RepositorySyncEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
83 inline RepositorySyncAttempt& WithEvents(const Aws::Vector<RepositorySyncEvent>& value) { SetEvents(value); return *this;}
84 inline RepositorySyncAttempt& WithEvents(Aws::Vector<RepositorySyncEvent>&& value) { SetEvents(std::move(value)); return *this;}
85 inline RepositorySyncAttempt& AddEvents(const RepositorySyncEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
86 inline RepositorySyncAttempt& AddEvents(RepositorySyncEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
88 private:
89
90 Aws::Utils::DateTime m_startedAt;
91 bool m_startedAtHasBeenSet = false;
92
93 RepositorySyncStatus m_status;
94 bool m_statusHasBeenSet = false;
95
97 bool m_eventsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace CodeConnections
102} // namespace Aws
AWS_CODECONNECTIONS_API RepositorySyncAttempt(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Vector< RepositorySyncEvent > & GetEvents() const
void SetEvents(Aws::Vector< RepositorySyncEvent > &&value)
RepositorySyncAttempt & WithStatus(RepositorySyncStatus &&value)
RepositorySyncAttempt & WithStartedAt(const Aws::Utils::DateTime &value)
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECONNECTIONS_API RepositorySyncAttempt & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncAttempt & AddEvents(const RepositorySyncEvent &value)
RepositorySyncAttempt & WithEvents(const Aws::Vector< RepositorySyncEvent > &value)
void SetStartedAt(const Aws::Utils::DateTime &value)
RepositorySyncAttempt & WithStartedAt(Aws::Utils::DateTime &&value)
void SetEvents(const Aws::Vector< RepositorySyncEvent > &value)
void SetStatus(const RepositorySyncStatus &value)
RepositorySyncAttempt & WithEvents(Aws::Vector< RepositorySyncEvent > &&value)
RepositorySyncAttempt & AddEvents(RepositorySyncEvent &&value)
RepositorySyncAttempt & WithStatus(const RepositorySyncStatus &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue