AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventData(const Aws::String& value) { m_eventDataHasBeenSet = true; m_eventData = value; }
51 inline void SetEventData(Aws::String&& value) { m_eventDataHasBeenSet = true; m_eventData = std::move(value); }
52 inline void SetEventData(const char* value) { m_eventDataHasBeenSet = true; m_eventData.assign(value); }
53 inline TimelineEvent& WithEventData(const Aws::String& value) { SetEventData(value); return *this;}
54 inline TimelineEvent& WithEventData(Aws::String&& value) { SetEventData(std::move(value)); return *this;}
55 inline TimelineEvent& WithEventData(const char* value) { SetEventData(value); return *this;}
57
59
62 inline const Aws::String& GetEventId() const{ return m_eventId; }
63 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
64 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
65 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
66 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
67 inline TimelineEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
68 inline TimelineEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
69 inline TimelineEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
71
73
76 inline const Aws::Vector<EventReference>& GetEventReferences() const{ return m_eventReferences; }
77 inline bool EventReferencesHasBeenSet() const { return m_eventReferencesHasBeenSet; }
78 inline void SetEventReferences(const Aws::Vector<EventReference>& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = value; }
79 inline void SetEventReferences(Aws::Vector<EventReference>&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = std::move(value); }
81 inline TimelineEvent& WithEventReferences(Aws::Vector<EventReference>&& value) { SetEventReferences(std::move(value)); return *this;}
82 inline TimelineEvent& AddEventReferences(const EventReference& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.push_back(value); return *this; }
83 inline TimelineEvent& AddEventReferences(EventReference&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.push_back(std::move(value)); return *this; }
85
87
90 inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
91 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
92 inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
93 inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
94 inline TimelineEvent& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
95 inline TimelineEvent& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
97
99
103 inline const Aws::String& GetEventType() const{ return m_eventType; }
104 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
105 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
106 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
107 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
108 inline TimelineEvent& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
109 inline TimelineEvent& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
110 inline TimelineEvent& WithEventType(const char* value) { SetEventType(value); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetEventUpdatedTime() const{ return m_eventUpdatedTime; }
118 inline bool EventUpdatedTimeHasBeenSet() const { return m_eventUpdatedTimeHasBeenSet; }
119 inline void SetEventUpdatedTime(const Aws::Utils::DateTime& value) { m_eventUpdatedTimeHasBeenSet = true; m_eventUpdatedTime = value; }
120 inline void SetEventUpdatedTime(Aws::Utils::DateTime&& value) { m_eventUpdatedTimeHasBeenSet = true; m_eventUpdatedTime = std::move(value); }
121 inline TimelineEvent& WithEventUpdatedTime(const Aws::Utils::DateTime& value) { SetEventUpdatedTime(value); return *this;}
122 inline TimelineEvent& WithEventUpdatedTime(Aws::Utils::DateTime&& value) { SetEventUpdatedTime(std::move(value)); return *this;}
124
126
130 inline const Aws::String& GetIncidentRecordArn() const{ return m_incidentRecordArn; }
131 inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
132 inline void SetIncidentRecordArn(const Aws::String& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = value; }
133 inline void SetIncidentRecordArn(Aws::String&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::move(value); }
134 inline void SetIncidentRecordArn(const char* value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn.assign(value); }
135 inline TimelineEvent& WithIncidentRecordArn(const Aws::String& value) { SetIncidentRecordArn(value); return *this;}
136 inline TimelineEvent& WithIncidentRecordArn(Aws::String&& value) { SetIncidentRecordArn(std::move(value)); return *this;}
137 inline TimelineEvent& WithIncidentRecordArn(const char* value) { SetIncidentRecordArn(value); return *this;}
139 private:
140
141 Aws::String m_eventData;
142 bool m_eventDataHasBeenSet = false;
143
144 Aws::String m_eventId;
145 bool m_eventIdHasBeenSet = false;
146
147 Aws::Vector<EventReference> m_eventReferences;
148 bool m_eventReferencesHasBeenSet = false;
149
150 Aws::Utils::DateTime m_eventTime;
151 bool m_eventTimeHasBeenSet = false;
152
153 Aws::String m_eventType;
154 bool m_eventTypeHasBeenSet = false;
155
156 Aws::Utils::DateTime m_eventUpdatedTime;
157 bool m_eventUpdatedTimeHasBeenSet = false;
158
159 Aws::String m_incidentRecordArn;
160 bool m_incidentRecordArnHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace SSMIncidents
165} // namespace Aws
const Aws::String & GetEventId() const
TimelineEvent & WithEventData(const char *value)
TimelineEvent & WithEventId(Aws::String &&value)
void SetEventData(const Aws::String &value)
void SetEventId(Aws::String &&value)
void SetIncidentRecordArn(Aws::String &&value)
TimelineEvent & WithEventTime(const Aws::Utils::DateTime &value)
void SetEventReferences(Aws::Vector< EventReference > &&value)
TimelineEvent & WithEventType(const char *value)
TimelineEvent & WithEventData(const Aws::String &value)
TimelineEvent & WithIncidentRecordArn(const char *value)
TimelineEvent & WithEventReferences(Aws::Vector< EventReference > &&value)
const Aws::String & GetEventType() const
TimelineEvent & WithEventTime(Aws::Utils::DateTime &&value)
void SetEventType(Aws::String &&value)
const Aws::Vector< EventReference > & GetEventReferences() const
void SetEventTime(const Aws::Utils::DateTime &value)
void SetEventUpdatedTime(Aws::Utils::DateTime &&value)
TimelineEvent & WithEventType(const Aws::String &value)
AWS_SSMINCIDENTS_API TimelineEvent(Aws::Utils::Json::JsonView jsonValue)
TimelineEvent & WithEventReferences(const Aws::Vector< EventReference > &value)
const Aws::Utils::DateTime & GetEventTime() const
TimelineEvent & WithEventId(const char *value)
void SetEventData(Aws::String &&value)
TimelineEvent & AddEventReferences(EventReference &&value)
TimelineEvent & WithEventId(const Aws::String &value)
TimelineEvent & WithEventUpdatedTime(Aws::Utils::DateTime &&value)
void SetIncidentRecordArn(const char *value)
const Aws::String & GetIncidentRecordArn() const
AWS_SSMINCIDENTS_API TimelineEvent()
AWS_SSMINCIDENTS_API TimelineEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventReferences(const Aws::Vector< EventReference > &value)
void SetEventTime(Aws::Utils::DateTime &&value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetEventUpdatedTime() const
void SetIncidentRecordArn(const Aws::String &value)
TimelineEvent & AddEventReferences(const EventReference &value)
const Aws::String & GetEventData() const
void SetEventId(const Aws::String &value)
void SetEventType(const Aws::String &value)
TimelineEvent & WithIncidentRecordArn(const Aws::String &value)
TimelineEvent & WithEventUpdatedTime(const Aws::Utils::DateTime &value)
void SetEventUpdatedTime(const Aws::Utils::DateTime &value)
TimelineEvent & WithEventType(Aws::String &&value)
TimelineEvent & WithEventData(Aws::String &&value)
TimelineEvent & WithIncidentRecordArn(Aws::String &&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