AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ResourceSyncEvent.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeStarconnections {
21namespace Model {
22
30 public:
31 AWS_CODESTARCONNECTIONS_API ResourceSyncEvent() = default;
32 AWS_CODESTARCONNECTIONS_API ResourceSyncEvent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODESTARCONNECTIONS_API ResourceSyncEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetEvent() const { return m_event; }
41 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
42 template <typename EventT = Aws::String>
43 void SetEvent(EventT&& value) {
44 m_eventHasBeenSet = true;
45 m_event = std::forward<EventT>(value);
46 }
47 template <typename EventT = Aws::String>
48 ResourceSyncEvent& WithEvent(EventT&& value) {
49 SetEvent(std::forward<EventT>(value));
50 return *this;
51 }
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) {
62 m_externalIdHasBeenSet = true;
63 m_externalId = std::forward<ExternalIdT>(value);
64 }
65 template <typename ExternalIdT = Aws::String>
66 ResourceSyncEvent& WithExternalId(ExternalIdT&& value) {
67 SetExternalId(std::forward<ExternalIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
77 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
78 template <typename TimeT = Aws::Utils::DateTime>
79 void SetTime(TimeT&& value) {
80 m_timeHasBeenSet = true;
81 m_time = std::forward<TimeT>(value);
82 }
83 template <typename TimeT = Aws::Utils::DateTime>
84 ResourceSyncEvent& WithTime(TimeT&& value) {
85 SetTime(std::forward<TimeT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetType() const { return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 template <typename TypeT = Aws::String>
97 void SetType(TypeT&& value) {
98 m_typeHasBeenSet = true;
99 m_type = std::forward<TypeT>(value);
100 }
101 template <typename TypeT = Aws::String>
102 ResourceSyncEvent& WithType(TypeT&& value) {
103 SetType(std::forward<TypeT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_event;
109
110 Aws::String m_externalId;
111
112 Aws::Utils::DateTime m_time{};
113
114 Aws::String m_type;
115 bool m_eventHasBeenSet = false;
116 bool m_externalIdHasBeenSet = false;
117 bool m_timeHasBeenSet = false;
118 bool m_typeHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CodeStarconnections
123} // namespace Aws
AWS_CODESTARCONNECTIONS_API ResourceSyncEvent(Aws::Utils::Json::JsonView jsonValue)
ResourceSyncEvent & WithExternalId(ExternalIdT &&value)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetTime() const
ResourceSyncEvent & WithEvent(EventT &&value)
AWS_CODESTARCONNECTIONS_API ResourceSyncEvent()=default
AWS_CODESTARCONNECTIONS_API ResourceSyncEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue