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/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();
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 inline void SetEvent(const Aws::String& value) { m_eventHasBeenSet = true; m_event = value; }
48 inline void SetEvent(Aws::String&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
49 inline void SetEvent(const char* value) { m_eventHasBeenSet = true; m_event.assign(value); }
50 inline RepositorySyncEvent& WithEvent(const Aws::String& value) { SetEvent(value); return *this;}
51 inline RepositorySyncEvent& WithEvent(Aws::String&& value) { SetEvent(std::move(value)); return *this;}
52 inline RepositorySyncEvent& WithEvent(const char* value) { SetEvent(value); return *this;}
54
56
59 inline const Aws::String& GetExternalId() const{ return m_externalId; }
60 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
61 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
62 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
63 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
64 inline RepositorySyncEvent& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
65 inline RepositorySyncEvent& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
66 inline RepositorySyncEvent& WithExternalId(const char* value) { SetExternalId(value); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
74 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
75 inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
76 inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
77 inline RepositorySyncEvent& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
78 inline RepositorySyncEvent& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetType() const{ return m_type; }
86 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
88 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
89 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
90 inline RepositorySyncEvent& WithType(const Aws::String& value) { SetType(value); return *this;}
91 inline RepositorySyncEvent& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
92 inline RepositorySyncEvent& WithType(const char* value) { SetType(value); return *this;}
94 private:
95
96 Aws::String m_event;
97 bool m_eventHasBeenSet = false;
98
99 Aws::String m_externalId;
100 bool m_externalIdHasBeenSet = false;
101
103 bool m_timeHasBeenSet = false;
104
105 Aws::String m_type;
106 bool m_typeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CodeStarconnections
111} // namespace Aws
RepositorySyncEvent & WithTime(const Aws::Utils::DateTime &value)
AWS_CODESTARCONNECTIONS_API RepositorySyncEvent(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncEvent & WithEvent(Aws::String &&value)
RepositorySyncEvent & WithType(const Aws::String &value)
RepositorySyncEvent & WithExternalId(const char *value)
RepositorySyncEvent & WithType(Aws::String &&value)
RepositorySyncEvent & WithExternalId(const Aws::String &value)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
RepositorySyncEvent & WithEvent(const Aws::String &value)
AWS_CODESTARCONNECTIONS_API RepositorySyncEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncEvent & WithTime(Aws::Utils::DateTime &&value)
RepositorySyncEvent & WithEvent(const char *value)
AWS_CODESTARCONNECTIONS_API RepositorySyncEvent()
void SetTime(const Aws::Utils::DateTime &value)
RepositorySyncEvent & WithType(const char *value)
RepositorySyncEvent & WithExternalId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue