AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
EventSummary.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 EventSummary() = default;
39 AWS_SSMINCIDENTS_API EventSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMINCIDENTS_API EventSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetEventId() const { return m_eventId; }
49 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
50 template<typename EventIdT = Aws::String>
51 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
52 template<typename EventIdT = Aws::String>
53 EventSummary& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
55
57
60 inline const Aws::Vector<EventReference>& GetEventReferences() const { return m_eventReferences; }
61 inline bool EventReferencesHasBeenSet() const { return m_eventReferencesHasBeenSet; }
62 template<typename EventReferencesT = Aws::Vector<EventReference>>
63 void SetEventReferences(EventReferencesT&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = std::forward<EventReferencesT>(value); }
64 template<typename EventReferencesT = Aws::Vector<EventReference>>
65 EventSummary& WithEventReferences(EventReferencesT&& value) { SetEventReferences(std::forward<EventReferencesT>(value)); return *this;}
66 template<typename EventReferencesT = EventReference>
67 EventSummary& AddEventReferences(EventReferencesT&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.emplace_back(std::forward<EventReferencesT>(value)); return *this; }
69
71
74 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
75 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
76 template<typename EventTimeT = Aws::Utils::DateTime>
77 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
78 template<typename EventTimeT = Aws::Utils::DateTime>
79 EventSummary& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
81
83
87 inline const Aws::String& GetEventType() const { return m_eventType; }
88 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
89 template<typename EventTypeT = Aws::String>
90 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
91 template<typename EventTypeT = Aws::String>
92 EventSummary& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetEventUpdatedTime() const { return m_eventUpdatedTime; }
100 inline bool EventUpdatedTimeHasBeenSet() const { return m_eventUpdatedTimeHasBeenSet; }
101 template<typename EventUpdatedTimeT = Aws::Utils::DateTime>
102 void SetEventUpdatedTime(EventUpdatedTimeT&& value) { m_eventUpdatedTimeHasBeenSet = true; m_eventUpdatedTime = std::forward<EventUpdatedTimeT>(value); }
103 template<typename EventUpdatedTimeT = Aws::Utils::DateTime>
104 EventSummary& WithEventUpdatedTime(EventUpdatedTimeT&& value) { SetEventUpdatedTime(std::forward<EventUpdatedTimeT>(value)); return *this;}
106
108
112 inline const Aws::String& GetIncidentRecordArn() const { return m_incidentRecordArn; }
113 inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
114 template<typename IncidentRecordArnT = Aws::String>
115 void SetIncidentRecordArn(IncidentRecordArnT&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::forward<IncidentRecordArnT>(value); }
116 template<typename IncidentRecordArnT = Aws::String>
117 EventSummary& WithIncidentRecordArn(IncidentRecordArnT&& value) { SetIncidentRecordArn(std::forward<IncidentRecordArnT>(value)); return *this;}
119 private:
120
121 Aws::String m_eventId;
122 bool m_eventIdHasBeenSet = false;
123
124 Aws::Vector<EventReference> m_eventReferences;
125 bool m_eventReferencesHasBeenSet = false;
126
127 Aws::Utils::DateTime m_eventTime{};
128 bool m_eventTimeHasBeenSet = false;
129
130 Aws::String m_eventType;
131 bool m_eventTypeHasBeenSet = false;
132
133 Aws::Utils::DateTime m_eventUpdatedTime{};
134 bool m_eventUpdatedTimeHasBeenSet = false;
135
136 Aws::String m_incidentRecordArn;
137 bool m_incidentRecordArnHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace SSMIncidents
142} // namespace Aws
const Aws::String & GetEventId() const
const Aws::Utils::DateTime & GetEventUpdatedTime() const
void SetEventUpdatedTime(EventUpdatedTimeT &&value)
void SetEventTime(EventTimeT &&value)
AWS_SSMINCIDENTS_API EventSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEventType() const
AWS_SSMINCIDENTS_API EventSummary(Aws::Utils::Json::JsonView jsonValue)
void SetIncidentRecordArn(IncidentRecordArnT &&value)
const Aws::Utils::DateTime & GetEventTime() const
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
EventSummary & AddEventReferences(EventReferencesT &&value)
EventSummary & WithEventId(EventIdT &&value)
const Aws::String & GetIncidentRecordArn() const
const Aws::Vector< EventReference > & GetEventReferences() const
EventSummary & WithEventUpdatedTime(EventUpdatedTimeT &&value)
EventSummary & WithEventReferences(EventReferencesT &&value)
EventSummary & WithIncidentRecordArn(IncidentRecordArnT &&value)
void SetEventType(EventTypeT &&value)
void SetEventReferences(EventReferencesT &&value)
AWS_SSMINCIDENTS_API EventSummary()=default
EventSummary & WithEventTime(EventTimeT &&value)
EventSummary & 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