AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEvent(const Aws::String& value) { m_eventHasBeenSet = true; m_event = value; }
49 inline void SetEvent(Aws::String&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
50 inline void SetEvent(const char* value) { m_eventHasBeenSet = true; m_event.assign(value); }
51 inline RepositorySyncEvent& WithEvent(const Aws::String& value) { SetEvent(value); return *this;}
52 inline RepositorySyncEvent& WithEvent(Aws::String&& value) { SetEvent(std::move(value)); return *this;}
53 inline RepositorySyncEvent& WithEvent(const char* value) { SetEvent(value); return *this;}
55
57
60 inline const Aws::String& GetExternalId() const{ return m_externalId; }
61 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
62 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
63 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
64 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
65 inline RepositorySyncEvent& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
66 inline RepositorySyncEvent& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
67 inline RepositorySyncEvent& WithExternalId(const char* value) { SetExternalId(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
75 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
76 inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
77 inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
78 inline RepositorySyncEvent& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
79 inline RepositorySyncEvent& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetType() const{ return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
89 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
90 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
91 inline RepositorySyncEvent& WithType(const Aws::String& value) { SetType(value); return *this;}
92 inline RepositorySyncEvent& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
93 inline RepositorySyncEvent& WithType(const char* value) { SetType(value); return *this;}
95 private:
96
97 Aws::String m_event;
98 bool m_eventHasBeenSet = false;
99
100 Aws::String m_externalId;
101 bool m_externalIdHasBeenSet = false;
102
104 bool m_timeHasBeenSet = false;
105
106 Aws::String m_type;
107 bool m_typeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Proton
112} // namespace Aws
RepositorySyncEvent & WithEvent(const char *value)
RepositorySyncEvent & WithType(const char *value)
void SetType(const Aws::String &value)
void SetExternalId(const Aws::String &value)
RepositorySyncEvent & WithTime(Aws::Utils::DateTime &&value)
void SetEvent(const Aws::String &value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTime(Aws::Utils::DateTime &&value)
RepositorySyncEvent & WithExternalId(const Aws::String &value)
AWS_PROTON_API RepositorySyncEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncEvent & WithExternalId(Aws::String &&value)
RepositorySyncEvent & WithEvent(Aws::String &&value)
RepositorySyncEvent & WithEvent(const Aws::String &value)
RepositorySyncEvent & WithTime(const Aws::Utils::DateTime &value)
RepositorySyncEvent & WithType(const Aws::String &value)
const Aws::String & GetExternalId() const
void SetTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetTime() const
AWS_PROTON_API RepositorySyncEvent(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncEvent & WithExternalId(const char *value)
RepositorySyncEvent & WithType(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue