AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
TimelineEvent.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ssm-incidents/model/EventReference.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSMIncidents
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SSMINCIDENTS_API TimelineEvent() = default;
39 AWS_SSMINCIDENTS_API TimelineEvent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMINCIDENTS_API TimelineEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetEventData() const { return m_eventData; }
49 inline bool EventDataHasBeenSet() const { return m_eventDataHasBeenSet; }
50 template<typename EventDataT = Aws::String>
51 void SetEventData(EventDataT&& value) { m_eventDataHasBeenSet = true; m_eventData = std::forward<EventDataT>(value); }
52 template<typename EventDataT = Aws::String>
53 TimelineEvent& WithEventData(EventDataT&& value) { SetEventData(std::forward<EventDataT>(value)); return *this;}
55
57
60 inline const Aws::String& GetEventId() const { return m_eventId; }
61 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
62 template<typename EventIdT = Aws::String>
63 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
64 template<typename EventIdT = Aws::String>
65 TimelineEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
67
69
72 inline const Aws::Vector<EventReference>& GetEventReferences() const { return m_eventReferences; }
73 inline bool EventReferencesHasBeenSet() const { return m_eventReferencesHasBeenSet; }
74 template<typename EventReferencesT = Aws::Vector<EventReference>>
75 void SetEventReferences(EventReferencesT&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = std::forward<EventReferencesT>(value); }
76 template<typename EventReferencesT = Aws::Vector<EventReference>>
77 TimelineEvent& WithEventReferences(EventReferencesT&& value) { SetEventReferences(std::forward<EventReferencesT>(value)); return *this;}
78 template<typename EventReferencesT = EventReference>
79 TimelineEvent& AddEventReferences(EventReferencesT&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.emplace_back(std::forward<EventReferencesT>(value)); return *this; }
81
83
86 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
87 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
88 template<typename EventTimeT = Aws::Utils::DateTime>
89 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
90 template<typename EventTimeT = Aws::Utils::DateTime>
91 TimelineEvent& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
93
95
99 inline const Aws::String& GetEventType() const { return m_eventType; }
100 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
101 template<typename EventTypeT = Aws::String>
102 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
103 template<typename EventTypeT = Aws::String>
104 TimelineEvent& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
106
108
111 inline const Aws::Utils::DateTime& GetEventUpdatedTime() const { return m_eventUpdatedTime; }
112 inline bool EventUpdatedTimeHasBeenSet() const { return m_eventUpdatedTimeHasBeenSet; }
113 template<typename EventUpdatedTimeT = Aws::Utils::DateTime>
114 void SetEventUpdatedTime(EventUpdatedTimeT&& value) { m_eventUpdatedTimeHasBeenSet = true; m_eventUpdatedTime = std::forward<EventUpdatedTimeT>(value); }
115 template<typename EventUpdatedTimeT = Aws::Utils::DateTime>
116 TimelineEvent& WithEventUpdatedTime(EventUpdatedTimeT&& value) { SetEventUpdatedTime(std::forward<EventUpdatedTimeT>(value)); return *this;}
118
120
124 inline const Aws::String& GetIncidentRecordArn() const { return m_incidentRecordArn; }
125 inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
126 template<typename IncidentRecordArnT = Aws::String>
127 void SetIncidentRecordArn(IncidentRecordArnT&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::forward<IncidentRecordArnT>(value); }
128 template<typename IncidentRecordArnT = Aws::String>
129 TimelineEvent& WithIncidentRecordArn(IncidentRecordArnT&& value) { SetIncidentRecordArn(std::forward<IncidentRecordArnT>(value)); return *this;}
131 private:
132
133 Aws::String m_eventData;
134 bool m_eventDataHasBeenSet = false;
135
136 Aws::String m_eventId;
137 bool m_eventIdHasBeenSet = false;
138
139 Aws::Vector<EventReference> m_eventReferences;
140 bool m_eventReferencesHasBeenSet = false;
141
142 Aws::Utils::DateTime m_eventTime{};
143 bool m_eventTimeHasBeenSet = false;
144
145 Aws::String m_eventType;
146 bool m_eventTypeHasBeenSet = false;
147
148 Aws::Utils::DateTime m_eventUpdatedTime{};
149 bool m_eventUpdatedTimeHasBeenSet = false;
150
151 Aws::String m_incidentRecordArn;
152 bool m_incidentRecordArnHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace SSMIncidents
157} // namespace Aws
const Aws::String & GetEventId() const
void SetEventReferences(EventReferencesT &&value)
TimelineEvent & WithEventReferences(EventReferencesT &&value)
void SetEventUpdatedTime(EventUpdatedTimeT &&value)
const Aws::String & GetEventType() const
const Aws::Vector< EventReference > & GetEventReferences() const
AWS_SSMINCIDENTS_API TimelineEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEventTime() const
TimelineEvent & WithEventUpdatedTime(EventUpdatedTimeT &&value)
const Aws::String & GetIncidentRecordArn() const
TimelineEvent & WithEventId(EventIdT &&value)
TimelineEvent & WithEventData(EventDataT &&value)
AWS_SSMINCIDENTS_API TimelineEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventType(EventTypeT &&value)
void SetEventTime(EventTimeT &&value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetEventUpdatedTime() const
TimelineEvent & AddEventReferences(EventReferencesT &&value)
const Aws::String & GetEventData() const
AWS_SSMINCIDENTS_API TimelineEvent()=default
TimelineEvent & WithEventTime(EventTimeT &&value)
void SetEventData(EventDataT &&value)
TimelineEvent & WithIncidentRecordArn(IncidentRecordArnT &&value)
void SetIncidentRecordArn(IncidentRecordArnT &&value)
TimelineEvent & WithEventType(EventTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue