AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
StartNotebookRunRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/DataZoneRequest.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/ComputeConfig.h>
13#include <aws/datazone/model/NetworkConfig.h>
14#include <aws/datazone/model/NotificationConfig.h>
15#include <aws/datazone/model/TimeoutConfig.h>
16#include <aws/datazone/model/TriggerSource.h>
17
18#include <utility>
19
20namespace Aws {
21namespace DataZone {
22namespace Model {
23
27 public:
28 AWS_DATAZONE_API StartNotebookRunRequest() = 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 "StartNotebookRun"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
39
43 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
44 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
45 template <typename DomainIdentifierT = Aws::String>
46 void SetDomainIdentifier(DomainIdentifierT&& value) {
47 m_domainIdentifierHasBeenSet = true;
48 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
49 }
50 template <typename DomainIdentifierT = Aws::String>
51 StartNotebookRunRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
52 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
62 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
63 template <typename OwningProjectIdentifierT = Aws::String>
64 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
65 m_owningProjectIdentifierHasBeenSet = true;
66 m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value);
67 }
68 template <typename OwningProjectIdentifierT = Aws::String>
69 StartNotebookRunRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
70 SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetNotebookIdentifier() const { return m_notebookIdentifier; }
80 inline bool NotebookIdentifierHasBeenSet() const { return m_notebookIdentifierHasBeenSet; }
81 template <typename NotebookIdentifierT = Aws::String>
82 void SetNotebookIdentifier(NotebookIdentifierT&& value) {
83 m_notebookIdentifierHasBeenSet = true;
84 m_notebookIdentifier = std::forward<NotebookIdentifierT>(value);
85 }
86 template <typename NotebookIdentifierT = Aws::String>
87 StartNotebookRunRequest& WithNotebookIdentifier(NotebookIdentifierT&& value) {
88 SetNotebookIdentifier(std::forward<NotebookIdentifierT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetScheduleIdentifier() const { return m_scheduleIdentifier; }
98 inline bool ScheduleIdentifierHasBeenSet() const { return m_scheduleIdentifierHasBeenSet; }
99 template <typename ScheduleIdentifierT = Aws::String>
100 void SetScheduleIdentifier(ScheduleIdentifierT&& value) {
101 m_scheduleIdentifierHasBeenSet = true;
102 m_scheduleIdentifier = std::forward<ScheduleIdentifierT>(value);
103 }
104 template <typename ScheduleIdentifierT = Aws::String>
105 StartNotebookRunRequest& WithScheduleIdentifier(ScheduleIdentifierT&& value) {
106 SetScheduleIdentifier(std::forward<ScheduleIdentifierT>(value));
107 return *this;
108 }
110
112
116 inline const ComputeConfig& GetComputeConfiguration() const { return m_computeConfiguration; }
117 inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; }
118 template <typename ComputeConfigurationT = ComputeConfig>
119 void SetComputeConfiguration(ComputeConfigurationT&& value) {
120 m_computeConfigurationHasBeenSet = true;
121 m_computeConfiguration = std::forward<ComputeConfigurationT>(value);
122 }
123 template <typename ComputeConfigurationT = ComputeConfig>
124 StartNotebookRunRequest& WithComputeConfiguration(ComputeConfigurationT&& value) {
125 SetComputeConfiguration(std::forward<ComputeConfigurationT>(value));
126 return *this;
127 }
129
131
135 inline const NetworkConfig& GetNetworkConfiguration() const { return m_networkConfiguration; }
136 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
137 template <typename NetworkConfigurationT = NetworkConfig>
138 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
139 m_networkConfigurationHasBeenSet = true;
140 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
141 }
142 template <typename NetworkConfigurationT = NetworkConfig>
143 StartNotebookRunRequest& WithNetworkConfiguration(NetworkConfigurationT&& value) {
144 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
145 return *this;
146 }
148
150
154 inline const TimeoutConfig& GetTimeoutConfiguration() const { return m_timeoutConfiguration; }
155 inline bool TimeoutConfigurationHasBeenSet() const { return m_timeoutConfigurationHasBeenSet; }
156 template <typename TimeoutConfigurationT = TimeoutConfig>
157 void SetTimeoutConfiguration(TimeoutConfigurationT&& value) {
158 m_timeoutConfigurationHasBeenSet = true;
159 m_timeoutConfiguration = std::forward<TimeoutConfigurationT>(value);
160 }
161 template <typename TimeoutConfigurationT = TimeoutConfig>
162 StartNotebookRunRequest& WithTimeoutConfiguration(TimeoutConfigurationT&& value) {
163 SetTimeoutConfiguration(std::forward<TimeoutConfigurationT>(value));
164 return *this;
165 }
167
169
173 inline const NotificationConfig& GetNotificationConfiguration() const { return m_notificationConfiguration; }
174 inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
175 template <typename NotificationConfigurationT = NotificationConfig>
176 void SetNotificationConfiguration(NotificationConfigurationT&& value) {
177 m_notificationConfigurationHasBeenSet = true;
178 m_notificationConfiguration = std::forward<NotificationConfigurationT>(value);
179 }
180 template <typename NotificationConfigurationT = NotificationConfig>
181 StartNotebookRunRequest& WithNotificationConfiguration(NotificationConfigurationT&& value) {
182 SetNotificationConfiguration(std::forward<NotificationConfigurationT>(value));
183 return *this;
184 }
186
188
191 inline const TriggerSource& GetTriggerSource() const { return m_triggerSource; }
192 inline bool TriggerSourceHasBeenSet() const { return m_triggerSourceHasBeenSet; }
193 template <typename TriggerSourceT = TriggerSource>
194 void SetTriggerSource(TriggerSourceT&& value) {
195 m_triggerSourceHasBeenSet = true;
196 m_triggerSource = std::forward<TriggerSourceT>(value);
197 }
198 template <typename TriggerSourceT = TriggerSource>
200 SetTriggerSource(std::forward<TriggerSourceT>(value));
201 return *this;
202 }
204
206
211 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
212 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
213 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
214 void SetMetadata(MetadataT&& value) {
215 m_metadataHasBeenSet = true;
216 m_metadata = std::forward<MetadataT>(value);
217 }
218 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
220 SetMetadata(std::forward<MetadataT>(value));
221 return *this;
222 }
223 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
224 StartNotebookRunRequest& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
225 m_metadataHasBeenSet = true;
226 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
227 return *this;
228 }
230
232
237 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
238 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
239 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
240 void SetParameters(ParametersT&& value) {
241 m_parametersHasBeenSet = true;
242 m_parameters = std::forward<ParametersT>(value);
243 }
244 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
246 SetParameters(std::forward<ParametersT>(value));
247 return *this;
248 }
249 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
250 StartNotebookRunRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
251 m_parametersHasBeenSet = true;
252 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
253 return *this;
254 }
256
258
262 inline const Aws::String& GetClientToken() const { return m_clientToken; }
263 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
264 template <typename ClientTokenT = Aws::String>
265 void SetClientToken(ClientTokenT&& value) {
266 m_clientTokenHasBeenSet = true;
267 m_clientToken = std::forward<ClientTokenT>(value);
268 }
269 template <typename ClientTokenT = Aws::String>
271 SetClientToken(std::forward<ClientTokenT>(value));
272 return *this;
273 }
275 private:
276 Aws::String m_domainIdentifier;
277
278 Aws::String m_owningProjectIdentifier;
279
280 Aws::String m_notebookIdentifier;
281
282 Aws::String m_scheduleIdentifier;
283
284 ComputeConfig m_computeConfiguration;
285
286 NetworkConfig m_networkConfiguration;
287
288 TimeoutConfig m_timeoutConfiguration;
289
290 NotificationConfig m_notificationConfiguration;
291
292 TriggerSource m_triggerSource;
293
295
297
299 bool m_domainIdentifierHasBeenSet = false;
300 bool m_owningProjectIdentifierHasBeenSet = false;
301 bool m_notebookIdentifierHasBeenSet = false;
302 bool m_scheduleIdentifierHasBeenSet = false;
303 bool m_computeConfigurationHasBeenSet = false;
304 bool m_networkConfigurationHasBeenSet = false;
305 bool m_timeoutConfigurationHasBeenSet = false;
306 bool m_notificationConfigurationHasBeenSet = false;
307 bool m_triggerSourceHasBeenSet = false;
308 bool m_metadataHasBeenSet = false;
309 bool m_parametersHasBeenSet = false;
310 bool m_clientTokenHasBeenSet = true;
311};
312
313} // namespace Model
314} // namespace DataZone
315} // namespace Aws
void SetComputeConfiguration(ComputeConfigurationT &&value)
void SetNotificationConfiguration(NotificationConfigurationT &&value)
StartNotebookRunRequest & WithNetworkConfiguration(NetworkConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetNetworkConfiguration(NetworkConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
StartNotebookRunRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
StartNotebookRunRequest & WithNotebookIdentifier(NotebookIdentifierT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
StartNotebookRunRequest & WithParameters(ParametersT &&value)
StartNotebookRunRequest & WithTriggerSource(TriggerSourceT &&value)
const NotificationConfig & GetNotificationConfiguration() const
void SetTimeoutConfiguration(TimeoutConfigurationT &&value)
StartNotebookRunRequest & WithNotificationConfiguration(NotificationConfigurationT &&value)
AWS_DATAZONE_API StartNotebookRunRequest()=default
StartNotebookRunRequest & WithTimeoutConfiguration(TimeoutConfigurationT &&value)
StartNotebookRunRequest & WithClientToken(ClientTokenT &&value)
StartNotebookRunRequest & WithComputeConfiguration(ComputeConfigurationT &&value)
StartNotebookRunRequest & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
StartNotebookRunRequest & WithOwningProjectIdentifier(OwningProjectIdentifierT &&value)
StartNotebookRunRequest & WithMetadata(MetadataT &&value)
void SetScheduleIdentifier(ScheduleIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetNotebookIdentifier(NotebookIdentifierT &&value)
StartNotebookRunRequest & WithDomainIdentifier(DomainIdentifierT &&value)
StartNotebookRunRequest & WithScheduleIdentifier(ScheduleIdentifierT &&value)
void SetOwningProjectIdentifier(OwningProjectIdentifierT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String