AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResourceSyncEvent.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_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 CodeConnections
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECONNECTIONS_API ResourceSyncEvent() = default;
37 AWS_CODECONNECTIONS_API ResourceSyncEvent(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECONNECTIONS_API ResourceSyncEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECONNECTIONS_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 ResourceSyncEvent& 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 ResourceSyncEvent& 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 ResourceSyncEvent& 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 ResourceSyncEvent& 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 CodeConnections
106} // namespace Aws
AWS_CODECONNECTIONS_API ResourceSyncEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTime() const
ResourceSyncEvent & WithEvent(EventT &&value)
ResourceSyncEvent & WithExternalId(ExternalIdT &&value)
ResourceSyncEvent & WithTime(TimeT &&value)
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECONNECTIONS_API ResourceSyncEvent(Aws::Utils::Json::JsonView jsonValue)
ResourceSyncEvent & WithType(TypeT &&value)
AWS_CODECONNECTIONS_API ResourceSyncEvent()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue