AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
51 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
52 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
53 inline EventSummary& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
54 inline EventSummary& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
55 inline EventSummary& WithEventId(const char* value) { SetEventId(value); return *this;}
57
59
62 inline const Aws::Vector<EventReference>& GetEventReferences() const{ return m_eventReferences; }
63 inline bool EventReferencesHasBeenSet() const { return m_eventReferencesHasBeenSet; }
64 inline void SetEventReferences(const Aws::Vector<EventReference>& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = value; }
65 inline void SetEventReferences(Aws::Vector<EventReference>&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = std::move(value); }
67 inline EventSummary& WithEventReferences(Aws::Vector<EventReference>&& value) { SetEventReferences(std::move(value)); return *this;}
68 inline EventSummary& AddEventReferences(const EventReference& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.push_back(value); return *this; }
69 inline EventSummary& AddEventReferences(EventReference&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
77 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
78 inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
79 inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
80 inline EventSummary& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
81 inline EventSummary& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
83
85
89 inline const Aws::String& GetEventType() const{ return m_eventType; }
90 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
91 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
92 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
93 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
94 inline EventSummary& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
95 inline EventSummary& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
96 inline EventSummary& WithEventType(const char* value) { SetEventType(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetEventUpdatedTime() const{ return m_eventUpdatedTime; }
104 inline bool EventUpdatedTimeHasBeenSet() const { return m_eventUpdatedTimeHasBeenSet; }
105 inline void SetEventUpdatedTime(const Aws::Utils::DateTime& value) { m_eventUpdatedTimeHasBeenSet = true; m_eventUpdatedTime = value; }
106 inline void SetEventUpdatedTime(Aws::Utils::DateTime&& value) { m_eventUpdatedTimeHasBeenSet = true; m_eventUpdatedTime = std::move(value); }
107 inline EventSummary& WithEventUpdatedTime(const Aws::Utils::DateTime& value) { SetEventUpdatedTime(value); return *this;}
108 inline EventSummary& WithEventUpdatedTime(Aws::Utils::DateTime&& value) { SetEventUpdatedTime(std::move(value)); return *this;}
110
112
116 inline const Aws::String& GetIncidentRecordArn() const{ return m_incidentRecordArn; }
117 inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
118 inline void SetIncidentRecordArn(const Aws::String& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = value; }
119 inline void SetIncidentRecordArn(Aws::String&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::move(value); }
120 inline void SetIncidentRecordArn(const char* value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn.assign(value); }
121 inline EventSummary& WithIncidentRecordArn(const Aws::String& value) { SetIncidentRecordArn(value); return *this;}
122 inline EventSummary& WithIncidentRecordArn(Aws::String&& value) { SetIncidentRecordArn(std::move(value)); return *this;}
123 inline EventSummary& WithIncidentRecordArn(const char* value) { SetIncidentRecordArn(value); return *this;}
125 private:
126
127 Aws::String m_eventId;
128 bool m_eventIdHasBeenSet = false;
129
130 Aws::Vector<EventReference> m_eventReferences;
131 bool m_eventReferencesHasBeenSet = false;
132
133 Aws::Utils::DateTime m_eventTime;
134 bool m_eventTimeHasBeenSet = false;
135
136 Aws::String m_eventType;
137 bool m_eventTypeHasBeenSet = false;
138
139 Aws::Utils::DateTime m_eventUpdatedTime;
140 bool m_eventUpdatedTimeHasBeenSet = false;
141
142 Aws::String m_incidentRecordArn;
143 bool m_incidentRecordArnHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace SSMIncidents
148} // namespace Aws
void SetIncidentRecordArn(Aws::String &&value)
const Aws::String & GetEventId() const
const Aws::Utils::DateTime & GetEventUpdatedTime() const
AWS_SSMINCIDENTS_API EventSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMINCIDENTS_API EventSummary()
const Aws::String & GetEventType() const
AWS_SSMINCIDENTS_API EventSummary(Aws::Utils::Json::JsonView jsonValue)
EventSummary & WithEventTime(Aws::Utils::DateTime &&value)
EventSummary & WithEventTime(const Aws::Utils::DateTime &value)
void SetEventType(const char *value)
void SetEventId(Aws::String &&value)
void SetEventType(Aws::String &&value)
void SetEventId(const char *value)
EventSummary & WithEventUpdatedTime(Aws::Utils::DateTime &&value)
void SetIncidentRecordArn(const Aws::String &value)
EventSummary & WithEventUpdatedTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEventTime() const
void SetIncidentRecordArn(const char *value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
EventSummary & AddEventReferences(EventReference &&value)
EventSummary & WithEventId(const char *value)
EventSummary & WithEventType(Aws::String &&value)
EventSummary & WithEventId(const Aws::String &value)
const Aws::String & GetIncidentRecordArn() const
const Aws::Vector< EventReference > & GetEventReferences() const
void SetEventReferences(Aws::Vector< EventReference > &&value)
EventSummary & WithEventReferences(Aws::Vector< EventReference > &&value)
void SetEventTime(const Aws::Utils::DateTime &value)
void SetEventUpdatedTime(Aws::Utils::DateTime &&value)
EventSummary & AddEventReferences(const EventReference &value)
EventSummary & WithEventId(Aws::String &&value)
EventSummary & WithIncidentRecordArn(const char *value)
void SetEventId(const Aws::String &value)
void SetEventUpdatedTime(const Aws::Utils::DateTime &value)
EventSummary & WithIncidentRecordArn(const Aws::String &value)
EventSummary & WithEventType(const char *value)
EventSummary & WithIncidentRecordArn(Aws::String &&value)
void SetEventType(const Aws::String &value)
void SetEventTime(Aws::Utils::DateTime &&value)
void SetEventReferences(const Aws::Vector< EventReference > &value)
EventSummary & WithEventReferences(const Aws::Vector< EventReference > &value)
EventSummary & WithEventType(const 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