AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RepositorySyncEvent.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeStarconnections {
21namespace Model {
22
29 public:
30 AWS_CODESTARCONNECTIONS_API RepositorySyncEvent() = default;
31 AWS_CODESTARCONNECTIONS_API RepositorySyncEvent(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODESTARCONNECTIONS_API RepositorySyncEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetEvent() const { return m_event; }
40 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
41 template <typename EventT = Aws::String>
42 void SetEvent(EventT&& value) {
43 m_eventHasBeenSet = true;
44 m_event = std::forward<EventT>(value);
45 }
46 template <typename EventT = Aws::String>
47 RepositorySyncEvent& WithEvent(EventT&& value) {
48 SetEvent(std::forward<EventT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetExternalId() const { return m_externalId; }
58 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
59 template <typename ExternalIdT = Aws::String>
60 void SetExternalId(ExternalIdT&& value) {
61 m_externalIdHasBeenSet = true;
62 m_externalId = std::forward<ExternalIdT>(value);
63 }
64 template <typename ExternalIdT = Aws::String>
65 RepositorySyncEvent& WithExternalId(ExternalIdT&& value) {
66 SetExternalId(std::forward<ExternalIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
76 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
77 template <typename TimeT = Aws::Utils::DateTime>
78 void SetTime(TimeT&& value) {
79 m_timeHasBeenSet = true;
80 m_time = std::forward<TimeT>(value);
81 }
82 template <typename TimeT = Aws::Utils::DateTime>
83 RepositorySyncEvent& WithTime(TimeT&& value) {
84 SetTime(std::forward<TimeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetType() const { return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 template <typename TypeT = Aws::String>
96 void SetType(TypeT&& value) {
97 m_typeHasBeenSet = true;
98 m_type = std::forward<TypeT>(value);
99 }
100 template <typename TypeT = Aws::String>
102 SetType(std::forward<TypeT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_event;
108
109 Aws::String m_externalId;
110
111 Aws::Utils::DateTime m_time{};
112
113 Aws::String m_type;
114 bool m_eventHasBeenSet = false;
115 bool m_externalIdHasBeenSet = false;
116 bool m_timeHasBeenSet = false;
117 bool m_typeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CodeStarconnections
122} // namespace Aws
AWS_CODESTARCONNECTIONS_API RepositorySyncEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODESTARCONNECTIONS_API RepositorySyncEvent()=default
AWS_CODESTARCONNECTIONS_API RepositorySyncEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncEvent & WithExternalId(ExternalIdT &&value)
RepositorySyncEvent & WithEvent(EventT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue