AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateJobRequest.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/snowball/SnowballRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/snowball/model/Notification.h>
11#include <aws/snowball/model/JobResource.h>
12#include <aws/snowball/model/OnDeviceServiceConfiguration.h>
13#include <aws/snowball/model/ShippingOption.h>
14#include <aws/snowball/model/SnowballCapacity.h>
15#include <aws/snowball/model/PickupDetails.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Snowball
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SNOWBALL_API UpdateJobRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateJob"; }
37
38 AWS_SNOWBALL_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetJobId() const { return m_jobId; }
49 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
50 template<typename JobIdT = Aws::String>
51 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
52 template<typename JobIdT = Aws::String>
53 UpdateJobRequest& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
55
57
63 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
64 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
65 template<typename RoleARNT = Aws::String>
66 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
67 template<typename RoleARNT = Aws::String>
68 UpdateJobRequest& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
70
72
75 inline const Notification& GetNotification() const { return m_notification; }
76 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
77 template<typename NotificationT = Notification>
78 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
79 template<typename NotificationT = Notification>
80 UpdateJobRequest& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
82
84
88 inline const JobResource& GetResources() const { return m_resources; }
89 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
90 template<typename ResourcesT = JobResource>
91 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
92 template<typename ResourcesT = JobResource>
93 UpdateJobRequest& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
95
97
103 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const { return m_onDeviceServiceConfiguration; }
104 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
105 template<typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
106 void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::forward<OnDeviceServiceConfigurationT>(value); }
107 template<typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
108 UpdateJobRequest& WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) { SetOnDeviceServiceConfiguration(std::forward<OnDeviceServiceConfigurationT>(value)); return *this;}
110
112
115 inline const Aws::String& GetAddressId() const { return m_addressId; }
116 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
117 template<typename AddressIdT = Aws::String>
118 void SetAddressId(AddressIdT&& value) { m_addressIdHasBeenSet = true; m_addressId = std::forward<AddressIdT>(value); }
119 template<typename AddressIdT = Aws::String>
120 UpdateJobRequest& WithAddressId(AddressIdT&& value) { SetAddressId(std::forward<AddressIdT>(value)); return *this;}
122
124
128 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
129 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
130 inline void SetShippingOption(ShippingOption value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
133
135
138 inline const Aws::String& GetDescription() const { return m_description; }
139 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
140 template<typename DescriptionT = Aws::String>
141 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
142 template<typename DescriptionT = Aws::String>
143 UpdateJobRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
145
147
156 inline SnowballCapacity GetSnowballCapacityPreference() const { return m_snowballCapacityPreference; }
157 inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
158 inline void SetSnowballCapacityPreference(SnowballCapacity value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
161
163
167 inline const Aws::String& GetForwardingAddressId() const { return m_forwardingAddressId; }
168 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
169 template<typename ForwardingAddressIdT = Aws::String>
170 void SetForwardingAddressId(ForwardingAddressIdT&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::forward<ForwardingAddressIdT>(value); }
171 template<typename ForwardingAddressIdT = Aws::String>
172 UpdateJobRequest& WithForwardingAddressId(ForwardingAddressIdT&& value) { SetForwardingAddressId(std::forward<ForwardingAddressIdT>(value)); return *this;}
174
176
177 inline const PickupDetails& GetPickupDetails() const { return m_pickupDetails; }
178 inline bool PickupDetailsHasBeenSet() const { return m_pickupDetailsHasBeenSet; }
179 template<typename PickupDetailsT = PickupDetails>
180 void SetPickupDetails(PickupDetailsT&& value) { m_pickupDetailsHasBeenSet = true; m_pickupDetails = std::forward<PickupDetailsT>(value); }
181 template<typename PickupDetailsT = PickupDetails>
182 UpdateJobRequest& WithPickupDetails(PickupDetailsT&& value) { SetPickupDetails(std::forward<PickupDetailsT>(value)); return *this;}
184 private:
185
186 Aws::String m_jobId;
187 bool m_jobIdHasBeenSet = false;
188
189 Aws::String m_roleARN;
190 bool m_roleARNHasBeenSet = false;
191
192 Notification m_notification;
193 bool m_notificationHasBeenSet = false;
194
195 JobResource m_resources;
196 bool m_resourcesHasBeenSet = false;
197
198 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
199 bool m_onDeviceServiceConfigurationHasBeenSet = false;
200
201 Aws::String m_addressId;
202 bool m_addressIdHasBeenSet = false;
203
204 ShippingOption m_shippingOption{ShippingOption::NOT_SET};
205 bool m_shippingOptionHasBeenSet = false;
206
207 Aws::String m_description;
208 bool m_descriptionHasBeenSet = false;
209
210 SnowballCapacity m_snowballCapacityPreference{SnowballCapacity::NOT_SET};
211 bool m_snowballCapacityPreferenceHasBeenSet = false;
212
213 Aws::String m_forwardingAddressId;
214 bool m_forwardingAddressIdHasBeenSet = false;
215
216 PickupDetails m_pickupDetails;
217 bool m_pickupDetailsHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace Snowball
222} // 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