AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RepositorySyncEvent.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Proton
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PROTON_API RepositorySyncEvent() = default;
39 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetEvent() const { return m_event; }
47 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
48 template<typename EventT = Aws::String>
49 void SetEvent(EventT&& value) { m_eventHasBeenSet = true; m_event = std::forward<EventT>(value); }
50 template<typename EventT = Aws::String>
51 RepositorySyncEvent& WithEvent(EventT&& value) { SetEvent(std::forward<EventT>(value)); return *this;}
53
55
58 inline const Aws::String& GetExternalId() const { return m_externalId; }
59 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
60 template<typename ExternalIdT = Aws::String>
61 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
62 template<typename ExternalIdT = Aws::String>
63 RepositorySyncEvent& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
71 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
72 template<typename TimeT = Aws::Utils::DateTime>
73 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
74 template<typename TimeT = Aws::Utils::DateTime>
75 RepositorySyncEvent& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
77
79
82 inline const Aws::String& GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 template<typename TypeT = Aws::String>
85 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
86 template<typename TypeT = Aws::String>
87 RepositorySyncEvent& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
89 private:
90
91 Aws::String m_event;
92 bool m_eventHasBeenSet = false;
93
94 Aws::String m_externalId;
95 bool m_externalIdHasBeenSet = false;
96
97 Aws::Utils::DateTime m_time{};
98 bool m_timeHasBeenSet = false;
99
100 Aws::String m_type;
101 bool m_typeHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Proton
106} // namespace Aws
RepositorySyncEvent & WithEvent(EventT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROTON_API RepositorySyncEvent()=default
RepositorySyncEvent & WithType(TypeT &&value)
AWS_PROTON_API RepositorySyncEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncEvent & WithTime(TimeT &&value)
RepositorySyncEvent & WithExternalId(ExternalIdT &&value)
const Aws::String & GetExternalId() const
const Aws::Utils::DateTime & GetTime() const
AWS_PROTON_API RepositorySyncEvent(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue