AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RepositorySyncEvent.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_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 CodeStarconnections
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CODESTARCONNECTIONS_API RepositorySyncEvent() = default;
36 AWS_CODESTARCONNECTIONS_API RepositorySyncEvent(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODESTARCONNECTIONS_API RepositorySyncEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetEvent() const { return m_event; }
46 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
47 template<typename EventT = Aws::String>
48 void SetEvent(EventT&& value) { m_eventHasBeenSet = true; m_event = std::forward<EventT>(value); }
49 template<typename EventT = Aws::String>
50 RepositorySyncEvent& WithEvent(EventT&& value) { SetEvent(std::forward<EventT>(value)); return *this;}
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) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
61 template<typename ExternalIdT = Aws::String>
62 RepositorySyncEvent& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
70 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
71 template<typename TimeT = Aws::Utils::DateTime>
72 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
73 template<typename TimeT = Aws::Utils::DateTime>
74 RepositorySyncEvent& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
76
78
81 inline const Aws::String& GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 template<typename TypeT = Aws::String>
84 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
85 template<typename TypeT = Aws::String>
86 RepositorySyncEvent& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
88 private:
89
90 Aws::String m_event;
91 bool m_eventHasBeenSet = false;
92
93 Aws::String m_externalId;
94 bool m_externalIdHasBeenSet = false;
95
96 Aws::Utils::DateTime m_time{};
97 bool m_timeHasBeenSet = false;
98
99 Aws::String m_type;
100 bool m_typeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CodeStarconnections
105} // 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