AWS SDK for C++

AWS SDK for C++ Version 1.11.806

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/TimeoutConfig.h>
15#include <aws/datazone/model/TriggerSource.h>
16
17#include <utility>
18
19namespace Aws {
20namespace DataZone {
21namespace Model {
22
26 public:
27 AWS_DATAZONE_API StartNotebookRunRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartNotebookRun"; }
34
35 AWS_DATAZONE_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
43 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
44 template <typename DomainIdentifierT = Aws::String>
45 void SetDomainIdentifier(DomainIdentifierT&& value) {
46 m_domainIdentifierHasBeenSet = true;
47 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
48 }
49 template <typename DomainIdentifierT = Aws::String>
50 StartNotebookRunRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
51 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
61 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
62 template <typename OwningProjectIdentifierT = Aws::String>
63 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
64 m_owningProjectIdentifierHasBeenSet = true;
65 m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value);
66 }
67 template <typename OwningProjectIdentifierT = Aws::String>
68 StartNotebookRunRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
69 SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetNotebookIdentifier() const { return m_notebookIdentifier; }
79 inline bool NotebookIdentifierHasBeenSet() const { return m_notebookIdentifierHasBeenSet; }
80 template <typename NotebookIdentifierT = Aws::String>
81 void SetNotebookIdentifier(NotebookIdentifierT&& value) {
82 m_notebookIdentifierHasBeenSet = true;
83 m_notebookIdentifier = std::forward<NotebookIdentifierT>(value);
84 }
85 template <typename NotebookIdentifierT = Aws::String>
86 StartNotebookRunRequest& WithNotebookIdentifier(NotebookIdentifierT&& value) {
87 SetNotebookIdentifier(std::forward<NotebookIdentifierT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetScheduleIdentifier() const { return m_scheduleIdentifier; }
97 inline bool ScheduleIdentifierHasBeenSet() const { return m_scheduleIdentifierHasBeenSet; }
98 template <typename ScheduleIdentifierT = Aws::String>
99 void SetScheduleIdentifier(ScheduleIdentifierT&& value) {
100 m_scheduleIdentifierHasBeenSet = true;
101 m_scheduleIdentifier = std::forward<ScheduleIdentifierT>(value);
102 }
103 template <typename ScheduleIdentifierT = Aws::String>
104 StartNotebookRunRequest& WithScheduleIdentifier(ScheduleIdentifierT&& value) {
105 SetScheduleIdentifier(std::forward<ScheduleIdentifierT>(value));
106 return *this;
107 }
109
111
115 inline const ComputeConfig& GetComputeConfiguration() const { return m_computeConfiguration; }
116 inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; }
117 template <typename ComputeConfigurationT = ComputeConfig>
118 void SetComputeConfiguration(ComputeConfigurationT&& value) {
119 m_computeConfigurationHasBeenSet = true;
120 m_computeConfiguration = std::forward<ComputeConfigurationT>(value);
121 }
122 template <typename ComputeConfigurationT = ComputeConfig>
123 StartNotebookRunRequest& WithComputeConfiguration(ComputeConfigurationT&& value) {
124 SetComputeConfiguration(std::forward<ComputeConfigurationT>(value));
125 return *this;
126 }
128
130
134 inline const NetworkConfig& GetNetworkConfiguration() const { return m_networkConfiguration; }
135 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
136 template <typename NetworkConfigurationT = NetworkConfig>
137 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
138 m_networkConfigurationHasBeenSet = true;
139 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
140 }
141 template <typename NetworkConfigurationT = NetworkConfig>
142 StartNotebookRunRequest& WithNetworkConfiguration(NetworkConfigurationT&& value) {
143 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
144 return *this;
145 }
147
149
153 inline const TimeoutConfig& GetTimeoutConfiguration() const { return m_timeoutConfiguration; }
154 inline bool TimeoutConfigurationHasBeenSet() const { return m_timeoutConfigurationHasBeenSet; }
155 template <typename TimeoutConfigurationT = TimeoutConfig>
156 void SetTimeoutConfiguration(TimeoutConfigurationT&& value) {
157 m_timeoutConfigurationHasBeenSet = true;
158 m_timeoutConfiguration = std::forward<TimeoutConfigurationT>(value);
159 }
160 template <typename TimeoutConfigurationT = TimeoutConfig>
161 StartNotebookRunRequest& WithTimeoutConfiguration(TimeoutConfigurationT&& value) {
162 SetTimeoutConfiguration(std::forward<TimeoutConfigurationT>(value));
163 return *this;
164 }
166
168
171 inline const TriggerSource& GetTriggerSource() const { return m_triggerSource; }
172 inline bool TriggerSourceHasBeenSet() const { return m_triggerSourceHasBeenSet; }
173 template <typename TriggerSourceT = TriggerSource>
174 void SetTriggerSource(TriggerSourceT&& value) {
175 m_triggerSourceHasBeenSet = true;
176 m_triggerSource = std::forward<TriggerSourceT>(value);
177 }
178 template <typename TriggerSourceT = TriggerSource>
180 SetTriggerSource(std::forward<TriggerSourceT>(value));
181 return *this;
182 }
184
186
191 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
192 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
193 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
194 void SetMetadata(MetadataT&& value) {
195 m_metadataHasBeenSet = true;
196 m_metadata = std::forward<MetadataT>(value);
197 }
198 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
200 SetMetadata(std::forward<MetadataT>(value));
201 return *this;
202 }
203 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
204 StartNotebookRunRequest& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
205 m_metadataHasBeenSet = true;
206 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
207 return *this;
208 }
210
212
217 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
218 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
219 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
220 void SetParameters(ParametersT&& value) {
221 m_parametersHasBeenSet = true;
222 m_parameters = std::forward<ParametersT>(value);
223 }
224 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
226 SetParameters(std::forward<ParametersT>(value));
227 return *this;
228 }
229 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
230 StartNotebookRunRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
231 m_parametersHasBeenSet = true;
232 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
233 return *this;
234 }
236
238
242 inline const Aws::String& GetClientToken() const { return m_clientToken; }
243 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
244 template <typename ClientTokenT = Aws::String>
245 void SetClientToken(ClientTokenT&& value) {
246 m_clientTokenHasBeenSet = true;
247 m_clientToken = std::forward<ClientTokenT>(value);
248 }
249 template <typename ClientTokenT = Aws::String>
251 SetClientToken(std::forward<ClientTokenT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_domainIdentifier;
257
258 Aws::String m_owningProjectIdentifier;
259
260 Aws::String m_notebookIdentifier;
261
262 Aws::String m_scheduleIdentifier;
263
264 ComputeConfig m_computeConfiguration;
265
266 NetworkConfig m_networkConfiguration;
267
268 TimeoutConfig m_timeoutConfiguration;
269
270 TriggerSource m_triggerSource;
271
273
275
277 bool m_domainIdentifierHasBeenSet = false;
278 bool m_owningProjectIdentifierHasBeenSet = false;
279 bool m_notebookIdentifierHasBeenSet = false;
280 bool m_scheduleIdentifierHasBeenSet = false;
281 bool m_computeConfigurationHasBeenSet = false;
282 bool m_networkConfigurationHasBeenSet = false;
283 bool m_timeoutConfigurationHasBeenSet = false;
284 bool m_triggerSourceHasBeenSet = false;
285 bool m_metadataHasBeenSet = false;
286 bool m_parametersHasBeenSet = false;
287 bool m_clientTokenHasBeenSet = true;
288};
289
290} // namespace Model
291} // namespace DataZone
292} // namespace Aws
void SetComputeConfiguration(ComputeConfigurationT &&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)
void SetTimeoutConfiguration(TimeoutConfigurationT &&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