AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UpdateTimelineEventRequest.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/ssm-incidents/SSMIncidentsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ssm-incidents/model/EventReference.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace SSMIncidents
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SSMINCIDENTS_API UpdateTimelineEventRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateTimelineEvent"; }
35
36 AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template<typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
48 template<typename ClientTokenT = Aws::String>
49 UpdateTimelineEventRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
51
53
56 inline const Aws::String& GetEventData() const { return m_eventData; }
57 inline bool EventDataHasBeenSet() const { return m_eventDataHasBeenSet; }
58 template<typename EventDataT = Aws::String>
59 void SetEventData(EventDataT&& value) { m_eventDataHasBeenSet = true; m_eventData = std::forward<EventDataT>(value); }
60 template<typename EventDataT = Aws::String>
61 UpdateTimelineEventRequest& WithEventData(EventDataT&& value) { SetEventData(std::forward<EventDataT>(value)); return *this;}
63
65
69 inline const Aws::String& GetEventId() const { return m_eventId; }
70 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
71 template<typename EventIdT = Aws::String>
72 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
73 template<typename EventIdT = Aws::String>
74 UpdateTimelineEventRequest& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
76
78
90 inline const Aws::Vector<EventReference>& GetEventReferences() const { return m_eventReferences; }
91 inline bool EventReferencesHasBeenSet() const { return m_eventReferencesHasBeenSet; }
92 template<typename EventReferencesT = Aws::Vector<EventReference>>
93 void SetEventReferences(EventReferencesT&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = std::forward<EventReferencesT>(value); }
94 template<typename EventReferencesT = Aws::Vector<EventReference>>
95 UpdateTimelineEventRequest& WithEventReferences(EventReferencesT&& value) { SetEventReferences(std::forward<EventReferencesT>(value)); return *this;}
96 template<typename EventReferencesT = EventReference>
97 UpdateTimelineEventRequest& AddEventReferences(EventReferencesT&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.emplace_back(std::forward<EventReferencesT>(value)); return *this; }
99
101
104 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
105 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
106 template<typename EventTimeT = Aws::Utils::DateTime>
107 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
108 template<typename EventTimeT = Aws::Utils::DateTime>
109 UpdateTimelineEventRequest& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
111
113
117 inline const Aws::String& GetEventType() const { return m_eventType; }
118 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
119 template<typename EventTypeT = Aws::String>
120 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
121 template<typename EventTypeT = Aws::String>
122 UpdateTimelineEventRequest& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
124
126
130 inline const Aws::String& GetIncidentRecordArn() const { return m_incidentRecordArn; }
131 inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
132 template<typename IncidentRecordArnT = Aws::String>
133 void SetIncidentRecordArn(IncidentRecordArnT&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::forward<IncidentRecordArnT>(value); }
134 template<typename IncidentRecordArnT = Aws::String>
135 UpdateTimelineEventRequest& WithIncidentRecordArn(IncidentRecordArnT&& value) { SetIncidentRecordArn(std::forward<IncidentRecordArnT>(value)); return *this;}
137 private:
138
140 bool m_clientTokenHasBeenSet = true;
141
142 Aws::String m_eventData;
143 bool m_eventDataHasBeenSet = false;
144
145 Aws::String m_eventId;
146 bool m_eventIdHasBeenSet = false;
147
148 Aws::Vector<EventReference> m_eventReferences;
149 bool m_eventReferencesHasBeenSet = false;
150
151 Aws::Utils::DateTime m_eventTime{};
152 bool m_eventTimeHasBeenSet = false;
153
154 Aws::String m_eventType;
155 bool m_eventTypeHasBeenSet = false;
156
157 Aws::String m_incidentRecordArn;
158 bool m_incidentRecordArnHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace SSMIncidents
163} // namespace Aws
UpdateTimelineEventRequest & WithEventType(EventTypeT &&value)
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
UpdateTimelineEventRequest & WithEventId(EventIdT &&value)
const Aws::Vector< EventReference > & GetEventReferences() const
UpdateTimelineEventRequest & WithEventData(EventDataT &&value)
UpdateTimelineEventRequest & WithClientToken(ClientTokenT &&value)
UpdateTimelineEventRequest & WithEventReferences(EventReferencesT &&value)
UpdateTimelineEventRequest & AddEventReferences(EventReferencesT &&value)
AWS_SSMINCIDENTS_API UpdateTimelineEventRequest()=default
UpdateTimelineEventRequest & WithIncidentRecordArn(IncidentRecordArnT &&value)
UpdateTimelineEventRequest & WithEventTime(EventTimeT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector