AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline UpdateTimelineEventRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline UpdateTimelineEventRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline UpdateTimelineEventRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
58 inline const Aws::String& GetEventData() const{ return m_eventData; }
59 inline bool EventDataHasBeenSet() const { return m_eventDataHasBeenSet; }
60 inline void SetEventData(const Aws::String& value) { m_eventDataHasBeenSet = true; m_eventData = value; }
61 inline void SetEventData(Aws::String&& value) { m_eventDataHasBeenSet = true; m_eventData = std::move(value); }
62 inline void SetEventData(const char* value) { m_eventDataHasBeenSet = true; m_eventData.assign(value); }
63 inline UpdateTimelineEventRequest& WithEventData(const Aws::String& value) { SetEventData(value); return *this;}
64 inline UpdateTimelineEventRequest& WithEventData(Aws::String&& value) { SetEventData(std::move(value)); return *this;}
65 inline UpdateTimelineEventRequest& WithEventData(const char* value) { SetEventData(value); return *this;}
67
69
73 inline const Aws::String& GetEventId() const{ return m_eventId; }
74 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
75 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
76 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
77 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
78 inline UpdateTimelineEventRequest& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
79 inline UpdateTimelineEventRequest& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
80 inline UpdateTimelineEventRequest& WithEventId(const char* value) { SetEventId(value); return *this;}
82
84
96 inline const Aws::Vector<EventReference>& GetEventReferences() const{ return m_eventReferences; }
97 inline bool EventReferencesHasBeenSet() const { return m_eventReferencesHasBeenSet; }
98 inline void SetEventReferences(const Aws::Vector<EventReference>& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = value; }
99 inline void SetEventReferences(Aws::Vector<EventReference>&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = std::move(value); }
102 inline UpdateTimelineEventRequest& AddEventReferences(const EventReference& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.push_back(value); return *this; }
103 inline UpdateTimelineEventRequest& AddEventReferences(EventReference&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.push_back(std::move(value)); return *this; }
105
107
110 inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
111 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
112 inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
113 inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
114 inline UpdateTimelineEventRequest& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
115 inline UpdateTimelineEventRequest& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
117
119
123 inline const Aws::String& GetEventType() const{ return m_eventType; }
124 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
125 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
126 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
127 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
128 inline UpdateTimelineEventRequest& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
129 inline UpdateTimelineEventRequest& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
130 inline UpdateTimelineEventRequest& WithEventType(const char* value) { SetEventType(value); return *this;}
132
134
138 inline const Aws::String& GetIncidentRecordArn() const{ return m_incidentRecordArn; }
139 inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
140 inline void SetIncidentRecordArn(const Aws::String& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = value; }
141 inline void SetIncidentRecordArn(Aws::String&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::move(value); }
142 inline void SetIncidentRecordArn(const char* value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn.assign(value); }
144 inline UpdateTimelineEventRequest& WithIncidentRecordArn(Aws::String&& value) { SetIncidentRecordArn(std::move(value)); return *this;}
145 inline UpdateTimelineEventRequest& WithIncidentRecordArn(const char* value) { SetIncidentRecordArn(value); return *this;}
147 private:
148
149 Aws::String m_clientToken;
150 bool m_clientTokenHasBeenSet = false;
151
152 Aws::String m_eventData;
153 bool m_eventDataHasBeenSet = false;
154
155 Aws::String m_eventId;
156 bool m_eventIdHasBeenSet = false;
157
158 Aws::Vector<EventReference> m_eventReferences;
159 bool m_eventReferencesHasBeenSet = false;
160
161 Aws::Utils::DateTime m_eventTime;
162 bool m_eventTimeHasBeenSet = false;
163
164 Aws::String m_eventType;
165 bool m_eventTypeHasBeenSet = false;
166
167 Aws::String m_incidentRecordArn;
168 bool m_incidentRecordArnHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace SSMIncidents
173} // namespace Aws
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
UpdateTimelineEventRequest & AddEventReferences(EventReference &&value)
UpdateTimelineEventRequest & WithEventReferences(const Aws::Vector< EventReference > &value)
UpdateTimelineEventRequest & WithClientToken(const Aws::String &value)
UpdateTimelineEventRequest & WithEventData(const char *value)
const Aws::Vector< EventReference > & GetEventReferences() const
UpdateTimelineEventRequest & WithClientToken(Aws::String &&value)
UpdateTimelineEventRequest & WithClientToken(const char *value)
UpdateTimelineEventRequest & WithEventId(const Aws::String &value)
UpdateTimelineEventRequest & WithEventType(const Aws::String &value)
UpdateTimelineEventRequest & WithIncidentRecordArn(Aws::String &&value)
UpdateTimelineEventRequest & WithEventId(Aws::String &&value)
UpdateTimelineEventRequest & AddEventReferences(const EventReference &value)
UpdateTimelineEventRequest & WithEventTime(Aws::Utils::DateTime &&value)
UpdateTimelineEventRequest & WithIncidentRecordArn(const char *value)
UpdateTimelineEventRequest & WithEventId(const char *value)
UpdateTimelineEventRequest & WithEventData(const Aws::String &value)
UpdateTimelineEventRequest & WithEventTime(const Aws::Utils::DateTime &value)
UpdateTimelineEventRequest & WithEventData(Aws::String &&value)
void SetEventReferences(const Aws::Vector< EventReference > &value)
void SetEventReferences(Aws::Vector< EventReference > &&value)
UpdateTimelineEventRequest & WithEventReferences(Aws::Vector< EventReference > &&value)
UpdateTimelineEventRequest & WithIncidentRecordArn(const Aws::String &value)
UpdateTimelineEventRequest & WithEventType(const char *value)
UpdateTimelineEventRequest & WithEventType(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector