AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
51 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
52 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
53 inline UpdateJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
54 inline UpdateJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
55 inline UpdateJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
57
59
65 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
66 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
67 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
68 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
69 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
70 inline UpdateJobRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
71 inline UpdateJobRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
72 inline UpdateJobRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
74
76
79 inline const Notification& GetNotification() const{ return m_notification; }
80 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
81 inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
82 inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
83 inline UpdateJobRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;}
84 inline UpdateJobRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;}
86
88
92 inline const JobResource& GetResources() const{ return m_resources; }
93 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
94 inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; }
95 inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
96 inline UpdateJobRequest& WithResources(const JobResource& value) { SetResources(value); return *this;}
97 inline UpdateJobRequest& WithResources(JobResource&& value) { SetResources(std::move(value)); return *this;}
99
101
107 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const{ return m_onDeviceServiceConfiguration; }
108 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
109 inline void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = value; }
110 inline void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::move(value); }
114
116
119 inline const Aws::String& GetAddressId() const{ return m_addressId; }
120 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
121 inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
122 inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); }
123 inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
124 inline UpdateJobRequest& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
125 inline UpdateJobRequest& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;}
126 inline UpdateJobRequest& WithAddressId(const char* value) { SetAddressId(value); return *this;}
128
130
134 inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
135 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
136 inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
137 inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); }
138 inline UpdateJobRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
139 inline UpdateJobRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;}
141
143
146 inline const Aws::String& GetDescription() const{ return m_description; }
147 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
148 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
149 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
150 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
151 inline UpdateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
152 inline UpdateJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
153 inline UpdateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
155
157
166 inline const SnowballCapacity& GetSnowballCapacityPreference() const{ return m_snowballCapacityPreference; }
167 inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
168 inline void SetSnowballCapacityPreference(const SnowballCapacity& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
169 inline void SetSnowballCapacityPreference(SnowballCapacity&& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = std::move(value); }
173
175
179 inline const Aws::String& GetForwardingAddressId() const{ return m_forwardingAddressId; }
180 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
181 inline void SetForwardingAddressId(const Aws::String& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = value; }
182 inline void SetForwardingAddressId(Aws::String&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::move(value); }
183 inline void SetForwardingAddressId(const char* value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId.assign(value); }
184 inline UpdateJobRequest& WithForwardingAddressId(const Aws::String& value) { SetForwardingAddressId(value); return *this;}
185 inline UpdateJobRequest& WithForwardingAddressId(Aws::String&& value) { SetForwardingAddressId(std::move(value)); return *this;}
186 inline UpdateJobRequest& WithForwardingAddressId(const char* value) { SetForwardingAddressId(value); return *this;}
188
190
191 inline const PickupDetails& GetPickupDetails() const{ return m_pickupDetails; }
192 inline bool PickupDetailsHasBeenSet() const { return m_pickupDetailsHasBeenSet; }
193 inline void SetPickupDetails(const PickupDetails& value) { m_pickupDetailsHasBeenSet = true; m_pickupDetails = value; }
194 inline void SetPickupDetails(PickupDetails&& value) { m_pickupDetailsHasBeenSet = true; m_pickupDetails = std::move(value); }
195 inline UpdateJobRequest& WithPickupDetails(const PickupDetails& value) { SetPickupDetails(value); return *this;}
196 inline UpdateJobRequest& WithPickupDetails(PickupDetails&& value) { SetPickupDetails(std::move(value)); return *this;}
198 private:
199
200 Aws::String m_jobId;
201 bool m_jobIdHasBeenSet = false;
202
203 Aws::String m_roleARN;
204 bool m_roleARNHasBeenSet = false;
205
206 Notification m_notification;
207 bool m_notificationHasBeenSet = false;
208
209 JobResource m_resources;
210 bool m_resourcesHasBeenSet = false;
211
212 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
213 bool m_onDeviceServiceConfigurationHasBeenSet = false;
214
215 Aws::String m_addressId;
216 bool m_addressIdHasBeenSet = false;
217
218 ShippingOption m_shippingOption;
219 bool m_shippingOptionHasBeenSet = false;
220
221 Aws::String m_description;
222 bool m_descriptionHasBeenSet = false;
223
224 SnowballCapacity m_snowballCapacityPreference;
225 bool m_snowballCapacityPreferenceHasBeenSet = false;
226
227 Aws::String m_forwardingAddressId;
228 bool m_forwardingAddressIdHasBeenSet = false;
229
230 PickupDetails m_pickupDetails;
231 bool m_pickupDetailsHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace Snowball
236} // namespace Aws
UpdateJobRequest & WithDescription(const char *value)
AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateJobRequest & WithNotification(const Notification &value)
const ShippingOption & GetShippingOption() const
void SetJobId(const Aws::String &value)
void SetSnowballCapacityPreference(const SnowballCapacity &value)
UpdateJobRequest & WithAddressId(const Aws::String &value)
void SetDescription(const Aws::String &value)
AWS_SNOWBALL_API Aws::String SerializePayload() const override
UpdateJobRequest & WithShippingOption(const ShippingOption &value)
const PickupDetails & GetPickupDetails() const
void SetDescription(Aws::String &&value)
const SnowballCapacity & GetSnowballCapacityPreference() const
void SetShippingOption(const ShippingOption &value)
UpdateJobRequest & WithSnowballCapacityPreference(SnowballCapacity &&value)
void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration &value)
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
void SetRoleARN(const Aws::String &value)
void SetResources(JobResource &&value)
UpdateJobRequest & WithOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration &value)
UpdateJobRequest & WithSnowballCapacityPreference(const SnowballCapacity &value)
const Aws::String & GetDescription() const
void SetResources(const JobResource &value)
UpdateJobRequest & WithResources(const JobResource &value)
void SetForwardingAddressId(Aws::String &&value)
const JobResource & GetResources() const
UpdateJobRequest & WithDescription(const Aws::String &value)
void SetAddressId(const Aws::String &value)
UpdateJobRequest & WithRoleARN(const char *value)
UpdateJobRequest & WithPickupDetails(PickupDetails &&value)
UpdateJobRequest & WithDescription(Aws::String &&value)
const Aws::String & GetForwardingAddressId() const
virtual const char * GetServiceRequestName() const override
void SetNotification(const Notification &value)
UpdateJobRequest & WithJobId(Aws::String &&value)
void SetPickupDetails(PickupDetails &&value)
const Aws::String & GetJobId() const
UpdateJobRequest & WithRoleARN(const Aws::String &value)
UpdateJobRequest & WithPickupDetails(const PickupDetails &value)
const Aws::String & GetAddressId() const
void SetPickupDetails(const PickupDetails &value)
UpdateJobRequest & WithForwardingAddressId(const Aws::String &value)
void SetForwardingAddressId(const char *value)
UpdateJobRequest & WithForwardingAddressId(Aws::String &&value)
void SetForwardingAddressId(const Aws::String &value)
void SetSnowballCapacityPreference(SnowballCapacity &&value)
UpdateJobRequest & WithOnDeviceServiceConfiguration(OnDeviceServiceConfiguration &&value)
UpdateJobRequest & WithAddressId(Aws::String &&value)
UpdateJobRequest & WithAddressId(const char *value)
UpdateJobRequest & WithShippingOption(ShippingOption &&value)
UpdateJobRequest & WithRoleARN(Aws::String &&value)
UpdateJobRequest & WithResources(JobResource &&value)
const Aws::String & GetRoleARN() const
UpdateJobRequest & WithJobId(const char *value)
void SetNotification(Notification &&value)
UpdateJobRequest & WithForwardingAddressId(const char *value)
UpdateJobRequest & WithJobId(const Aws::String &value)
const Notification & GetNotification() const
UpdateJobRequest & WithNotification(Notification &&value)
void SetShippingOption(ShippingOption &&value)
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String