AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 CreateTimelineEventRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline CreateTimelineEventRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline CreateTimelineEventRequest& 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 CreateTimelineEventRequest& WithEventData(const Aws::String& value) { SetEventData(value); return *this;}
64 inline CreateTimelineEventRequest& WithEventData(Aws::String&& value) { SetEventData(std::move(value)); return *this;}
65 inline CreateTimelineEventRequest& WithEventData(const char* value) { SetEventData(value); return *this;}
67
69
78 inline const Aws::Vector<EventReference>& GetEventReferences() const{ return m_eventReferences; }
79 inline bool EventReferencesHasBeenSet() const { return m_eventReferencesHasBeenSet; }
80 inline void SetEventReferences(const Aws::Vector<EventReference>& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = value; }
81 inline void SetEventReferences(Aws::Vector<EventReference>&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences = std::move(value); }
84 inline CreateTimelineEventRequest& AddEventReferences(const EventReference& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.push_back(value); return *this; }
85 inline CreateTimelineEventRequest& AddEventReferences(EventReference&& value) { m_eventReferencesHasBeenSet = true; m_eventReferences.push_back(std::move(value)); return *this; }
87
89
92 inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
93 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
94 inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
95 inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); }
96 inline CreateTimelineEventRequest& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
97 inline CreateTimelineEventRequest& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;}
99
101
108 inline const Aws::String& GetEventType() const{ return m_eventType; }
109 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
110 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
111 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
112 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
113 inline CreateTimelineEventRequest& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
114 inline CreateTimelineEventRequest& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
115 inline CreateTimelineEventRequest& WithEventType(const char* value) { SetEventType(value); return *this;}
117
119
123 inline const Aws::String& GetIncidentRecordArn() const{ return m_incidentRecordArn; }
124 inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; }
125 inline void SetIncidentRecordArn(const Aws::String& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = value; }
126 inline void SetIncidentRecordArn(Aws::String&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::move(value); }
127 inline void SetIncidentRecordArn(const char* value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn.assign(value); }
129 inline CreateTimelineEventRequest& WithIncidentRecordArn(Aws::String&& value) { SetIncidentRecordArn(std::move(value)); return *this;}
130 inline CreateTimelineEventRequest& WithIncidentRecordArn(const char* value) { SetIncidentRecordArn(value); return *this;}
132 private:
133
134 Aws::String m_clientToken;
135 bool m_clientTokenHasBeenSet = false;
136
137 Aws::String m_eventData;
138 bool m_eventDataHasBeenSet = false;
139
140 Aws::Vector<EventReference> m_eventReferences;
141 bool m_eventReferencesHasBeenSet = false;
142
143 Aws::Utils::DateTime m_eventTime;
144 bool m_eventTimeHasBeenSet = false;
145
146 Aws::String m_eventType;
147 bool m_eventTypeHasBeenSet = false;
148
149 Aws::String m_incidentRecordArn;
150 bool m_incidentRecordArnHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace SSMIncidents
155} // namespace Aws
CreateTimelineEventRequest & WithIncidentRecordArn(const char *value)
CreateTimelineEventRequest & WithClientToken(Aws::String &&value)
CreateTimelineEventRequest & WithEventReferences(Aws::Vector< EventReference > &&value)
void SetEventReferences(const Aws::Vector< EventReference > &value)
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
CreateTimelineEventRequest & WithEventType(const char *value)
CreateTimelineEventRequest & WithClientToken(const Aws::String &value)
CreateTimelineEventRequest & WithIncidentRecordArn(Aws::String &&value)
CreateTimelineEventRequest & AddEventReferences(const EventReference &value)
CreateTimelineEventRequest & WithEventData(const Aws::String &value)
const Aws::Vector< EventReference > & GetEventReferences() const
CreateTimelineEventRequest & WithEventType(Aws::String &&value)
CreateTimelineEventRequest & WithIncidentRecordArn(const Aws::String &value)
CreateTimelineEventRequest & WithEventTime(Aws::Utils::DateTime &&value)
CreateTimelineEventRequest & WithEventData(Aws::String &&value)
CreateTimelineEventRequest & WithEventType(const Aws::String &value)
CreateTimelineEventRequest & WithEventReferences(const Aws::Vector< EventReference > &value)
CreateTimelineEventRequest & AddEventReferences(EventReference &&value)
CreateTimelineEventRequest & WithEventData(const char *value)
CreateTimelineEventRequest & WithClientToken(const char *value)
CreateTimelineEventRequest & WithEventTime(const Aws::Utils::DateTime &value)
void SetEventReferences(Aws::Vector< EventReference > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector