1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/importexport/ImportExport_EXPORTS.h> 8 #include <aws/importexport/ImportExportRequest.h> 9 #include <aws/core/utils/memory/stl/AWSVector.h> 10 #include <aws/core/utils/memory/stl/AWSString.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace ImportExport 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_IMPORTEXPORT_API GetShippingLabelRequest : public ImportExportRequest 23 { 24 public: 25 GetShippingLabelRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "GetShippingLabel"; } 32 33 Aws::String SerializePayload() const override; 34 35 protected: 36 void DumpBodyToUrl(Aws::Http::URI& uri ) const override; 37 38 public: 39 40 GetJobIds()41 inline const Aws::Vector<Aws::String>& GetJobIds() const{ return m_jobIds; } 42 43 JobIdsHasBeenSet()44 inline bool JobIdsHasBeenSet() const { return m_jobIdsHasBeenSet; } 45 46 SetJobIds(const Aws::Vector<Aws::String> & value)47 inline void SetJobIds(const Aws::Vector<Aws::String>& value) { m_jobIdsHasBeenSet = true; m_jobIds = value; } 48 49 SetJobIds(Aws::Vector<Aws::String> && value)50 inline void SetJobIds(Aws::Vector<Aws::String>&& value) { m_jobIdsHasBeenSet = true; m_jobIds = std::move(value); } 51 52 WithJobIds(const Aws::Vector<Aws::String> & value)53 inline GetShippingLabelRequest& WithJobIds(const Aws::Vector<Aws::String>& value) { SetJobIds(value); return *this;} 54 55 WithJobIds(Aws::Vector<Aws::String> && value)56 inline GetShippingLabelRequest& WithJobIds(Aws::Vector<Aws::String>&& value) { SetJobIds(std::move(value)); return *this;} 57 58 AddJobIds(const Aws::String & value)59 inline GetShippingLabelRequest& AddJobIds(const Aws::String& value) { m_jobIdsHasBeenSet = true; m_jobIds.push_back(value); return *this; } 60 61 AddJobIds(Aws::String && value)62 inline GetShippingLabelRequest& AddJobIds(Aws::String&& value) { m_jobIdsHasBeenSet = true; m_jobIds.push_back(std::move(value)); return *this; } 63 64 AddJobIds(const char * value)65 inline GetShippingLabelRequest& AddJobIds(const char* value) { m_jobIdsHasBeenSet = true; m_jobIds.push_back(value); return *this; } 66 67 68 GetName()69 inline const Aws::String& GetName() const{ return m_name; } 70 71 NameHasBeenSet()72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 73 74 SetName(const Aws::String & value)75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } 76 77 SetName(Aws::String && value)78 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 79 80 SetName(const char * value)81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } 82 83 WithName(const Aws::String & value)84 inline GetShippingLabelRequest& WithName(const Aws::String& value) { SetName(value); return *this;} 85 86 WithName(Aws::String && value)87 inline GetShippingLabelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 88 89 WithName(const char * value)90 inline GetShippingLabelRequest& WithName(const char* value) { SetName(value); return *this;} 91 92 93 GetCompany()94 inline const Aws::String& GetCompany() const{ return m_company; } 95 96 CompanyHasBeenSet()97 inline bool CompanyHasBeenSet() const { return m_companyHasBeenSet; } 98 99 SetCompany(const Aws::String & value)100 inline void SetCompany(const Aws::String& value) { m_companyHasBeenSet = true; m_company = value; } 101 102 SetCompany(Aws::String && value)103 inline void SetCompany(Aws::String&& value) { m_companyHasBeenSet = true; m_company = std::move(value); } 104 105 SetCompany(const char * value)106 inline void SetCompany(const char* value) { m_companyHasBeenSet = true; m_company.assign(value); } 107 108 WithCompany(const Aws::String & value)109 inline GetShippingLabelRequest& WithCompany(const Aws::String& value) { SetCompany(value); return *this;} 110 111 WithCompany(Aws::String && value)112 inline GetShippingLabelRequest& WithCompany(Aws::String&& value) { SetCompany(std::move(value)); return *this;} 113 114 WithCompany(const char * value)115 inline GetShippingLabelRequest& WithCompany(const char* value) { SetCompany(value); return *this;} 116 117 118 GetPhoneNumber()119 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; } 120 121 PhoneNumberHasBeenSet()122 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; } 123 124 SetPhoneNumber(const Aws::String & value)125 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; } 126 127 SetPhoneNumber(Aws::String && value)128 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); } 129 130 SetPhoneNumber(const char * value)131 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); } 132 133 WithPhoneNumber(const Aws::String & value)134 inline GetShippingLabelRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;} 135 136 WithPhoneNumber(Aws::String && value)137 inline GetShippingLabelRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;} 138 139 WithPhoneNumber(const char * value)140 inline GetShippingLabelRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;} 141 142 143 GetCountry()144 inline const Aws::String& GetCountry() const{ return m_country; } 145 146 CountryHasBeenSet()147 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; } 148 149 SetCountry(const Aws::String & value)150 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; } 151 152 SetCountry(Aws::String && value)153 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); } 154 155 SetCountry(const char * value)156 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); } 157 158 WithCountry(const Aws::String & value)159 inline GetShippingLabelRequest& WithCountry(const Aws::String& value) { SetCountry(value); return *this;} 160 161 WithCountry(Aws::String && value)162 inline GetShippingLabelRequest& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;} 163 164 WithCountry(const char * value)165 inline GetShippingLabelRequest& WithCountry(const char* value) { SetCountry(value); return *this;} 166 167 168 GetStateOrProvince()169 inline const Aws::String& GetStateOrProvince() const{ return m_stateOrProvince; } 170 171 StateOrProvinceHasBeenSet()172 inline bool StateOrProvinceHasBeenSet() const { return m_stateOrProvinceHasBeenSet; } 173 174 SetStateOrProvince(const Aws::String & value)175 inline void SetStateOrProvince(const Aws::String& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = value; } 176 177 SetStateOrProvince(Aws::String && value)178 inline void SetStateOrProvince(Aws::String&& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = std::move(value); } 179 180 SetStateOrProvince(const char * value)181 inline void SetStateOrProvince(const char* value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince.assign(value); } 182 183 WithStateOrProvince(const Aws::String & value)184 inline GetShippingLabelRequest& WithStateOrProvince(const Aws::String& value) { SetStateOrProvince(value); return *this;} 185 186 WithStateOrProvince(Aws::String && value)187 inline GetShippingLabelRequest& WithStateOrProvince(Aws::String&& value) { SetStateOrProvince(std::move(value)); return *this;} 188 189 WithStateOrProvince(const char * value)190 inline GetShippingLabelRequest& WithStateOrProvince(const char* value) { SetStateOrProvince(value); return *this;} 191 192 193 GetCity()194 inline const Aws::String& GetCity() const{ return m_city; } 195 196 CityHasBeenSet()197 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; } 198 199 SetCity(const Aws::String & value)200 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; } 201 202 SetCity(Aws::String && value)203 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); } 204 205 SetCity(const char * value)206 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); } 207 208 WithCity(const Aws::String & value)209 inline GetShippingLabelRequest& WithCity(const Aws::String& value) { SetCity(value); return *this;} 210 211 WithCity(Aws::String && value)212 inline GetShippingLabelRequest& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;} 213 214 WithCity(const char * value)215 inline GetShippingLabelRequest& WithCity(const char* value) { SetCity(value); return *this;} 216 217 218 GetPostalCode()219 inline const Aws::String& GetPostalCode() const{ return m_postalCode; } 220 221 PostalCodeHasBeenSet()222 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; } 223 224 SetPostalCode(const Aws::String & value)225 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; } 226 227 SetPostalCode(Aws::String && value)228 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); } 229 230 SetPostalCode(const char * value)231 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); } 232 233 WithPostalCode(const Aws::String & value)234 inline GetShippingLabelRequest& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;} 235 236 WithPostalCode(Aws::String && value)237 inline GetShippingLabelRequest& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;} 238 239 WithPostalCode(const char * value)240 inline GetShippingLabelRequest& WithPostalCode(const char* value) { SetPostalCode(value); return *this;} 241 242 243 GetStreet1()244 inline const Aws::String& GetStreet1() const{ return m_street1; } 245 246 Street1HasBeenSet()247 inline bool Street1HasBeenSet() const { return m_street1HasBeenSet; } 248 249 SetStreet1(const Aws::String & value)250 inline void SetStreet1(const Aws::String& value) { m_street1HasBeenSet = true; m_street1 = value; } 251 252 SetStreet1(Aws::String && value)253 inline void SetStreet1(Aws::String&& value) { m_street1HasBeenSet = true; m_street1 = std::move(value); } 254 255 SetStreet1(const char * value)256 inline void SetStreet1(const char* value) { m_street1HasBeenSet = true; m_street1.assign(value); } 257 258 WithStreet1(const Aws::String & value)259 inline GetShippingLabelRequest& WithStreet1(const Aws::String& value) { SetStreet1(value); return *this;} 260 261 WithStreet1(Aws::String && value)262 inline GetShippingLabelRequest& WithStreet1(Aws::String&& value) { SetStreet1(std::move(value)); return *this;} 263 264 WithStreet1(const char * value)265 inline GetShippingLabelRequest& WithStreet1(const char* value) { SetStreet1(value); return *this;} 266 267 268 GetStreet2()269 inline const Aws::String& GetStreet2() const{ return m_street2; } 270 271 Street2HasBeenSet()272 inline bool Street2HasBeenSet() const { return m_street2HasBeenSet; } 273 274 SetStreet2(const Aws::String & value)275 inline void SetStreet2(const Aws::String& value) { m_street2HasBeenSet = true; m_street2 = value; } 276 277 SetStreet2(Aws::String && value)278 inline void SetStreet2(Aws::String&& value) { m_street2HasBeenSet = true; m_street2 = std::move(value); } 279 280 SetStreet2(const char * value)281 inline void SetStreet2(const char* value) { m_street2HasBeenSet = true; m_street2.assign(value); } 282 283 WithStreet2(const Aws::String & value)284 inline GetShippingLabelRequest& WithStreet2(const Aws::String& value) { SetStreet2(value); return *this;} 285 286 WithStreet2(Aws::String && value)287 inline GetShippingLabelRequest& WithStreet2(Aws::String&& value) { SetStreet2(std::move(value)); return *this;} 288 289 WithStreet2(const char * value)290 inline GetShippingLabelRequest& WithStreet2(const char* value) { SetStreet2(value); return *this;} 291 292 293 GetStreet3()294 inline const Aws::String& GetStreet3() const{ return m_street3; } 295 296 Street3HasBeenSet()297 inline bool Street3HasBeenSet() const { return m_street3HasBeenSet; } 298 299 SetStreet3(const Aws::String & value)300 inline void SetStreet3(const Aws::String& value) { m_street3HasBeenSet = true; m_street3 = value; } 301 302 SetStreet3(Aws::String && value)303 inline void SetStreet3(Aws::String&& value) { m_street3HasBeenSet = true; m_street3 = std::move(value); } 304 305 SetStreet3(const char * value)306 inline void SetStreet3(const char* value) { m_street3HasBeenSet = true; m_street3.assign(value); } 307 308 WithStreet3(const Aws::String & value)309 inline GetShippingLabelRequest& WithStreet3(const Aws::String& value) { SetStreet3(value); return *this;} 310 311 WithStreet3(Aws::String && value)312 inline GetShippingLabelRequest& WithStreet3(Aws::String&& value) { SetStreet3(std::move(value)); return *this;} 313 314 WithStreet3(const char * value)315 inline GetShippingLabelRequest& WithStreet3(const char* value) { SetStreet3(value); return *this;} 316 317 318 GetAPIVersion()319 inline const Aws::String& GetAPIVersion() const{ return m_aPIVersion; } 320 321 APIVersionHasBeenSet()322 inline bool APIVersionHasBeenSet() const { return m_aPIVersionHasBeenSet; } 323 324 SetAPIVersion(const Aws::String & value)325 inline void SetAPIVersion(const Aws::String& value) { m_aPIVersionHasBeenSet = true; m_aPIVersion = value; } 326 327 SetAPIVersion(Aws::String && value)328 inline void SetAPIVersion(Aws::String&& value) { m_aPIVersionHasBeenSet = true; m_aPIVersion = std::move(value); } 329 330 SetAPIVersion(const char * value)331 inline void SetAPIVersion(const char* value) { m_aPIVersionHasBeenSet = true; m_aPIVersion.assign(value); } 332 333 WithAPIVersion(const Aws::String & value)334 inline GetShippingLabelRequest& WithAPIVersion(const Aws::String& value) { SetAPIVersion(value); return *this;} 335 336 WithAPIVersion(Aws::String && value)337 inline GetShippingLabelRequest& WithAPIVersion(Aws::String&& value) { SetAPIVersion(std::move(value)); return *this;} 338 339 WithAPIVersion(const char * value)340 inline GetShippingLabelRequest& WithAPIVersion(const char* value) { SetAPIVersion(value); return *this;} 341 342 private: 343 344 Aws::Vector<Aws::String> m_jobIds; 345 bool m_jobIdsHasBeenSet; 346 347 Aws::String m_name; 348 bool m_nameHasBeenSet; 349 350 Aws::String m_company; 351 bool m_companyHasBeenSet; 352 353 Aws::String m_phoneNumber; 354 bool m_phoneNumberHasBeenSet; 355 356 Aws::String m_country; 357 bool m_countryHasBeenSet; 358 359 Aws::String m_stateOrProvince; 360 bool m_stateOrProvinceHasBeenSet; 361 362 Aws::String m_city; 363 bool m_cityHasBeenSet; 364 365 Aws::String m_postalCode; 366 bool m_postalCodeHasBeenSet; 367 368 Aws::String m_street1; 369 bool m_street1HasBeenSet; 370 371 Aws::String m_street2; 372 bool m_street2HasBeenSet; 373 374 Aws::String m_street3; 375 bool m_street3HasBeenSet; 376 377 Aws::String m_aPIVersion; 378 bool m_aPIVersionHasBeenSet; 379 }; 380 381 } // namespace Model 382 } // namespace ImportExport 383 } // namespace Aws 384