AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ResourceSyncEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/Proton_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Proton {
21namespace Model {
22
29 public:
30 AWS_PROTON_API ResourceSyncEvent() = default;
33 AWS_PROTON_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 ResourceSyncEvent& 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 ResourceSyncEvent& 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 ResourceSyncEvent& 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>
101 ResourceSyncEvent& WithType(TypeT&& value) {
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 Proton
122} // namespace Aws
AWS_PROTON_API ResourceSyncEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTime() const
ResourceSyncEvent & WithTime(TimeT &&value)
const Aws::String & GetEvent() const
const Aws::String & GetExternalId() const
AWS_PROTON_API ResourceSyncEvent(Aws::Utils::Json::JsonView jsonValue)
ResourceSyncEvent & WithEvent(EventT &&value)
void SetExternalId(ExternalIdT &&value)
ResourceSyncEvent & WithType(TypeT &&value)
ResourceSyncEvent & WithExternalId(ExternalIdT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROTON_API ResourceSyncEvent()=default
const Aws::String & GetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue