AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
DataIntegrationEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/supplychain/SupplyChain_EXPORTS.h>
10#include <aws/supplychain/model/DataIntegrationEventDatasetTargetDetails.h>
11#include <aws/supplychain/model/DataIntegrationEventType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SupplyChain {
23namespace Model {
24
31 public:
32 AWS_SUPPLYCHAIN_API DataIntegrationEvent() = default;
33 AWS_SUPPLYCHAIN_API DataIntegrationEvent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
49 DataIntegrationEvent& WithInstanceId(InstanceIdT&& value) {
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEventId() const { return m_eventId; }
60 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
61 template <typename EventIdT = Aws::String>
62 void SetEventId(EventIdT&& value) {
63 m_eventIdHasBeenSet = true;
64 m_eventId = std::forward<EventIdT>(value);
65 }
66 template <typename EventIdT = Aws::String>
67 DataIntegrationEvent& WithEventId(EventIdT&& value) {
68 SetEventId(std::forward<EventIdT>(value));
69 return *this;
70 }
72
74
77 inline DataIntegrationEventType GetEventType() const { return m_eventType; }
78 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
80 m_eventTypeHasBeenSet = true;
81 m_eventType = value;
82 }
84 SetEventType(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetEventGroupId() const { return m_eventGroupId; }
95 inline bool EventGroupIdHasBeenSet() const { return m_eventGroupIdHasBeenSet; }
96 template <typename EventGroupIdT = Aws::String>
97 void SetEventGroupId(EventGroupIdT&& value) {
98 m_eventGroupIdHasBeenSet = true;
99 m_eventGroupId = std::forward<EventGroupIdT>(value);
100 }
101 template <typename EventGroupIdT = Aws::String>
102 DataIntegrationEvent& WithEventGroupId(EventGroupIdT&& value) {
103 SetEventGroupId(std::forward<EventGroupIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetEventTimestamp() const { return m_eventTimestamp; }
113 inline bool EventTimestampHasBeenSet() const { return m_eventTimestampHasBeenSet; }
114 template <typename EventTimestampT = Aws::Utils::DateTime>
115 void SetEventTimestamp(EventTimestampT&& value) {
116 m_eventTimestampHasBeenSet = true;
117 m_eventTimestamp = std::forward<EventTimestampT>(value);
118 }
119 template <typename EventTimestampT = Aws::Utils::DateTime>
120 DataIntegrationEvent& WithEventTimestamp(EventTimestampT&& value) {
121 SetEventTimestamp(std::forward<EventTimestampT>(value));
122 return *this;
123 }
125
127
130 inline const DataIntegrationEventDatasetTargetDetails& GetDatasetTargetDetails() const { return m_datasetTargetDetails; }
131 inline bool DatasetTargetDetailsHasBeenSet() const { return m_datasetTargetDetailsHasBeenSet; }
132 template <typename DatasetTargetDetailsT = DataIntegrationEventDatasetTargetDetails>
133 void SetDatasetTargetDetails(DatasetTargetDetailsT&& value) {
134 m_datasetTargetDetailsHasBeenSet = true;
135 m_datasetTargetDetails = std::forward<DatasetTargetDetailsT>(value);
136 }
137 template <typename DatasetTargetDetailsT = DataIntegrationEventDatasetTargetDetails>
138 DataIntegrationEvent& WithDatasetTargetDetails(DatasetTargetDetailsT&& value) {
139 SetDatasetTargetDetails(std::forward<DatasetTargetDetailsT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_instanceId;
145
146 Aws::String m_eventId;
147
149
150 Aws::String m_eventGroupId;
151
152 Aws::Utils::DateTime m_eventTimestamp{};
153
154 DataIntegrationEventDatasetTargetDetails m_datasetTargetDetails;
155 bool m_instanceIdHasBeenSet = false;
156 bool m_eventIdHasBeenSet = false;
157 bool m_eventTypeHasBeenSet = false;
158 bool m_eventGroupIdHasBeenSet = false;
159 bool m_eventTimestampHasBeenSet = false;
160 bool m_datasetTargetDetailsHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace SupplyChain
165} // namespace Aws
DataIntegrationEventType GetEventType() const
DataIntegrationEvent & WithInstanceId(InstanceIdT &&value)
DataIntegrationEvent & WithDatasetTargetDetails(DatasetTargetDetailsT &&value)
AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDatasetTargetDetails(DatasetTargetDetailsT &&value)
const DataIntegrationEventDatasetTargetDetails & GetDatasetTargetDetails() const
AWS_SUPPLYCHAIN_API DataIntegrationEvent()=default
DataIntegrationEvent & WithEventGroupId(EventGroupIdT &&value)
const Aws::Utils::DateTime & GetEventTimestamp() const
DataIntegrationEvent & WithEventTimestamp(EventTimestampT &&value)
AWS_SUPPLYCHAIN_API DataIntegrationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventType(DataIntegrationEventType value)
DataIntegrationEvent & WithEventId(EventIdT &&value)
DataIntegrationEvent & WithEventType(DataIntegrationEventType value)
AWS_SUPPLYCHAIN_API DataIntegrationEvent(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue