AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CreateTimelineEventRequest.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 CreateTimelineEventRequest() = 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 "CreateTimelineEvent"; }
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 CreateTimelineEventRequest& 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 CreateTimelineEventRequest& WithEventData(EventDataT&& value) { SetEventData(std::forward<EventDataT>(value)); return *this;}
63
65
74 inline const Aws::Vector<EventReference>& GetEventReferences() const { return m_eventReferences; }
75 inline bool EventReferencesHasBeenSet() const { return m_eventReferencesHasBeenSet; }
76 template<typename EventReferencesT = Aws::Vector<EventReference>>
77 void SetEventReferences(EventReferencesT&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = std::forward<EventReferencesT>(value); }
78 template<typename EventReferencesT = Aws::Vector<EventReference>>
79 CreateTimelineEventRequest& WithEventReferences(EventReferencesT&& value) { SetEventReferences(std::forward<EventReferencesT>(value)); return *this;}
80 template<typename EventReferencesT = EventReference>
81 CreateTimelineEventRequest& AddEventReferences(EventReferencesT&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.emplace_back(std::forward<EventReferencesT>(value)); return *this; }
83
85
88 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
89 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
90 template<typename EventTimeT = Aws::Utils::DateTime>
91 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
92 template<typename EventTimeT = Aws::Utils::DateTime>
93 CreateTimelineEventRequest& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
95
97
104 inline const Aws::String& GetEventType() const { return m_eventType; }
105 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
106 template<typename EventTypeT = Aws::String>
107 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
108 template<typename EventTypeT = Aws::String>
109 CreateTimelineEventRequest& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
111
113
117 inline const Aws::String& GetIncidentRecordArn() const { return m_incidentRecordArn; }
118 inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
119 template<typename IncidentRecordArnT = Aws::String>
120 void SetIncidentRecordArn(IncidentRecordArnT&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::forward<IncidentRecordArnT>(value); }
121 template<typename IncidentRecordArnT = Aws::String>
122 CreateTimelineEventRequest& WithIncidentRecordArn(IncidentRecordArnT&& value) { SetIncidentRecordArn(std::forward<IncidentRecordArnT>(value)); return *this;}
124 private:
125
127 bool m_clientTokenHasBeenSet = true;
128
129 Aws::String m_eventData;
130 bool m_eventDataHasBeenSet = false;
131
132 Aws::Vector<EventReference> m_eventReferences;
133 bool m_eventReferencesHasBeenSet = false;
134
135 Aws::Utils::DateTime m_eventTime{};
136 bool m_eventTimeHasBeenSet = false;
137
138 Aws::String m_eventType;
139 bool m_eventTypeHasBeenSet = false;
140
141 Aws::String m_incidentRecordArn;
142 bool m_incidentRecordArnHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace SSMIncidents
147} // namespace Aws
CreateTimelineEventRequest & AddEventReferences(EventReferencesT &&value)
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
CreateTimelineEventRequest & WithIncidentRecordArn(IncidentRecordArnT &&value)
CreateTimelineEventRequest & WithEventTime(EventTimeT &&value)
CreateTimelineEventRequest & WithClientToken(ClientTokenT &&value)
CreateTimelineEventRequest & WithEventType(EventTypeT &&value)
const Aws::Vector< EventReference > & GetEventReferences() const
CreateTimelineEventRequest & WithEventReferences(EventReferencesT &&value)
AWS_SSMINCIDENTS_API CreateTimelineEventRequest()=default
CreateTimelineEventRequest & WithEventData(EventDataT &&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