AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
UpdateJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/snowball/SnowballRequest.h>
9#include <aws/snowball/Snowball_EXPORTS.h>
10#include <aws/snowball/model/JobResource.h>
11#include <aws/snowball/model/Notification.h>
12#include <aws/snowball/model/OnDeviceServiceConfiguration.h>
13#include <aws/snowball/model/PickupDetails.h>
14#include <aws/snowball/model/ShippingOption.h>
15#include <aws/snowball/model/SnowballCapacity.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Snowball {
21namespace Model {
22
26 public:
27 AWS_SNOWBALL_API UpdateJobRequest() = 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 "UpdateJob"; }
34
35 AWS_SNOWBALL_API Aws::String SerializePayload() const override;
36
38
40
44 inline const Aws::String& GetJobId() const { return m_jobId; }
45 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
46 template <typename JobIdT = Aws::String>
47 void SetJobId(JobIdT&& value) {
48 m_jobIdHasBeenSet = true;
49 m_jobId = std::forward<JobIdT>(value);
50 }
51 template <typename JobIdT = Aws::String>
52 UpdateJobRequest& WithJobId(JobIdT&& value) {
53 SetJobId(std::forward<JobIdT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
66 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
67 template <typename RoleARNT = Aws::String>
68 void SetRoleARN(RoleARNT&& value) {
69 m_roleARNHasBeenSet = true;
70 m_roleARN = std::forward<RoleARNT>(value);
71 }
72 template <typename RoleARNT = Aws::String>
73 UpdateJobRequest& WithRoleARN(RoleARNT&& value) {
74 SetRoleARN(std::forward<RoleARNT>(value));
75 return *this;
76 }
78
80
83 inline const Notification& GetNotification() const { return m_notification; }
84 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
85 template <typename NotificationT = Notification>
86 void SetNotification(NotificationT&& value) {
87 m_notificationHasBeenSet = true;
88 m_notification = std::forward<NotificationT>(value);
89 }
90 template <typename NotificationT = Notification>
91 UpdateJobRequest& WithNotification(NotificationT&& value) {
92 SetNotification(std::forward<NotificationT>(value));
93 return *this;
94 }
96
98
102 inline const JobResource& GetResources() const { return m_resources; }
103 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
104 template <typename ResourcesT = JobResource>
105 void SetResources(ResourcesT&& value) {
106 m_resourcesHasBeenSet = true;
107 m_resources = std::forward<ResourcesT>(value);
108 }
109 template <typename ResourcesT = JobResource>
110 UpdateJobRequest& WithResources(ResourcesT&& value) {
111 SetResources(std::forward<ResourcesT>(value));
112 return *this;
113 }
115
117
123 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const { return m_onDeviceServiceConfiguration; }
124 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
125 template <typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
126 void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) {
127 m_onDeviceServiceConfigurationHasBeenSet = true;
128 m_onDeviceServiceConfiguration = std::forward<OnDeviceServiceConfigurationT>(value);
129 }
130 template <typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
131 UpdateJobRequest& WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) {
132 SetOnDeviceServiceConfiguration(std::forward<OnDeviceServiceConfigurationT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetAddressId() const { return m_addressId; }
142 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
143 template <typename AddressIdT = Aws::String>
144 void SetAddressId(AddressIdT&& value) {
145 m_addressIdHasBeenSet = true;
146 m_addressId = std::forward<AddressIdT>(value);
147 }
148 template <typename AddressIdT = Aws::String>
149 UpdateJobRequest& WithAddressId(AddressIdT&& value) {
150 SetAddressId(std::forward<AddressIdT>(value));
151 return *this;
152 }
154
156
160 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
161 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
163 m_shippingOptionHasBeenSet = true;
164 m_shippingOption = value;
165 }
167 SetShippingOption(value);
168 return *this;
169 }
171
173
176 inline const Aws::String& GetDescription() const { return m_description; }
177 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
178 template <typename DescriptionT = Aws::String>
179 void SetDescription(DescriptionT&& value) {
180 m_descriptionHasBeenSet = true;
181 m_description = std::forward<DescriptionT>(value);
182 }
183 template <typename DescriptionT = Aws::String>
184 UpdateJobRequest& WithDescription(DescriptionT&& value) {
185 SetDescription(std::forward<DescriptionT>(value));
186 return *this;
187 }
189
191
200 inline SnowballCapacity GetSnowballCapacityPreference() const { return m_snowballCapacityPreference; }
201 inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
203 m_snowballCapacityPreferenceHasBeenSet = true;
204 m_snowballCapacityPreference = value;
205 }
208 return *this;
209 }
211
213
217 inline const Aws::String& GetForwardingAddressId() const { return m_forwardingAddressId; }
218 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
219 template <typename ForwardingAddressIdT = Aws::String>
220 void SetForwardingAddressId(ForwardingAddressIdT&& value) {
221 m_forwardingAddressIdHasBeenSet = true;
222 m_forwardingAddressId = std::forward<ForwardingAddressIdT>(value);
223 }
224 template <typename ForwardingAddressIdT = Aws::String>
225 UpdateJobRequest& WithForwardingAddressId(ForwardingAddressIdT&& value) {
226 SetForwardingAddressId(std::forward<ForwardingAddressIdT>(value));
227 return *this;
228 }
230
232
233 inline const PickupDetails& GetPickupDetails() const { return m_pickupDetails; }
234 inline bool PickupDetailsHasBeenSet() const { return m_pickupDetailsHasBeenSet; }
235 template <typename PickupDetailsT = PickupDetails>
236 void SetPickupDetails(PickupDetailsT&& value) {
237 m_pickupDetailsHasBeenSet = true;
238 m_pickupDetails = std::forward<PickupDetailsT>(value);
239 }
240 template <typename PickupDetailsT = PickupDetails>
241 UpdateJobRequest& WithPickupDetails(PickupDetailsT&& value) {
242 SetPickupDetails(std::forward<PickupDetailsT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_jobId;
248
249 Aws::String m_roleARN;
250
251 Notification m_notification;
252
253 JobResource m_resources;
254
255 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
256
257 Aws::String m_addressId;
258
259 ShippingOption m_shippingOption{ShippingOption::NOT_SET};
260
261 Aws::String m_description;
262
263 SnowballCapacity m_snowballCapacityPreference{SnowballCapacity::NOT_SET};
264
265 Aws::String m_forwardingAddressId;
266
267 PickupDetails m_pickupDetails;
268 bool m_jobIdHasBeenSet = false;
269 bool m_roleARNHasBeenSet = false;
270 bool m_notificationHasBeenSet = false;
271 bool m_resourcesHasBeenSet = false;
272 bool m_onDeviceServiceConfigurationHasBeenSet = false;
273 bool m_addressIdHasBeenSet = false;
274 bool m_shippingOptionHasBeenSet = false;
275 bool m_descriptionHasBeenSet = false;
276 bool m_snowballCapacityPreferenceHasBeenSet = false;
277 bool m_forwardingAddressIdHasBeenSet = false;
278 bool m_pickupDetailsHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace Snowball
283} // namespace Aws
UpdateJobRequest & WithSnowballCapacityPreference(SnowballCapacity value)
AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
AWS_SNOWBALL_API Aws::String SerializePayload() const override
const PickupDetails & GetPickupDetails() const
void SetShippingOption(ShippingOption value)
void SetPickupDetails(PickupDetailsT &&value)
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
const Aws::String & GetDescription() const
UpdateJobRequest & WithJobId(JobIdT &&value)
const JobResource & GetResources() const
AWS_SNOWBALL_API UpdateJobRequest()=default
UpdateJobRequest & WithShippingOption(ShippingOption value)
UpdateJobRequest & WithDescription(DescriptionT &&value)
UpdateJobRequest & WithAddressId(AddressIdT &&value)
const Aws::String & GetForwardingAddressId() const
virtual const char * GetServiceRequestName() const override
void SetNotification(NotificationT &&value)
const Aws::String & GetJobId() const
void SetForwardingAddressId(ForwardingAddressIdT &&value)
const Aws::String & GetAddressId() const
SnowballCapacity GetSnowballCapacityPreference() const
void SetSnowballCapacityPreference(SnowballCapacity value)
UpdateJobRequest & WithForwardingAddressId(ForwardingAddressIdT &&value)
UpdateJobRequest & WithPickupDetails(PickupDetailsT &&value)
UpdateJobRequest & WithResources(ResourcesT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetRoleARN() const
UpdateJobRequest & WithNotification(NotificationT &&value)
const Notification & GetNotification() const
UpdateJobRequest & WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
UpdateJobRequest & WithRoleARN(RoleARNT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String