AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceSyncEvent.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
33 {
34 public:
35 AWS_PROTON_API ResourceSyncEvent();
38 AWS_PROTON_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 ResourceSyncEvent& WithEvent(const Aws::String& value) { SetEvent(value); return *this;}
51 inline ResourceSyncEvent& WithEvent(Aws::String&& value) { SetEvent(std::move(value)); return *this;}
52 inline ResourceSyncEvent& 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 ResourceSyncEvent& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
65 inline ResourceSyncEvent& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
66 inline ResourceSyncEvent& 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 ResourceSyncEvent& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
78 inline ResourceSyncEvent& 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 ResourceSyncEvent& WithType(const Aws::String& value) { SetType(value); return *this;}
91 inline ResourceSyncEvent& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
92 inline ResourceSyncEvent& 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 Proton
111} // namespace Aws
ResourceSyncEvent & WithType(Aws::String &&value)
void SetTime(const Aws::Utils::DateTime &value)
AWS_PROTON_API ResourceSyncEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTime() const
ResourceSyncEvent & WithTime(const Aws::Utils::DateTime &value)
ResourceSyncEvent & WithEvent(const char *value)
const Aws::String & GetEvent() const
ResourceSyncEvent & WithType(const char *value)
void SetType(const Aws::String &value)
void SetEvent(const Aws::String &value)
ResourceSyncEvent & WithExternalId(const char *value)
ResourceSyncEvent & WithEvent(Aws::String &&value)
void SetTime(Aws::Utils::DateTime &&value)
const Aws::String & GetExternalId() const
ResourceSyncEvent & WithExternalId(Aws::String &&value)
ResourceSyncEvent & WithEvent(const Aws::String &value)
void SetExternalId(const Aws::String &value)
AWS_PROTON_API ResourceSyncEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExternalId(Aws::String &&value)
const Aws::String & GetType() const
ResourceSyncEvent & WithExternalId(const Aws::String &value)
ResourceSyncEvent & WithType(const Aws::String &value)
ResourceSyncEvent & WithTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue