AWS SDK for C++  0.14.3
AWS SDK for C++
GetShippingLabelRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace ImportExport
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36 
37  inline const Aws::Vector<Aws::String>& GetJobIds() const{ return m_jobIds; }
38 
39 
40  inline void SetJobIds(const Aws::Vector<Aws::String>& value) { m_jobIdsHasBeenSet = true; m_jobIds = value; }
41 
42 
43  inline void SetJobIds(Aws::Vector<Aws::String>&& value) { m_jobIdsHasBeenSet = true; m_jobIds = value; }
44 
45 
46  inline GetShippingLabelRequest& WithJobIds(const Aws::Vector<Aws::String>& value) { SetJobIds(value); return *this;}
47 
48 
49  inline GetShippingLabelRequest& WithJobIds(Aws::Vector<Aws::String>&& value) { SetJobIds(value); return *this;}
50 
51 
52  inline GetShippingLabelRequest& AddJobIds(const Aws::String& value) { m_jobIdsHasBeenSet = true; m_jobIds.push_back(value); return *this; }
53 
54 
55  inline GetShippingLabelRequest& AddJobIds(Aws::String&& value) { m_jobIdsHasBeenSet = true; m_jobIds.push_back(value); return *this; }
56 
57 
58  inline GetShippingLabelRequest& AddJobIds(const char* value) { m_jobIdsHasBeenSet = true; m_jobIds.push_back(value); return *this; }
59 
60 
61  inline const Aws::String& GetName() const{ return m_name; }
62 
63 
64  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 
66 
67  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
68 
69 
70  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 
72 
73  inline GetShippingLabelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
75 
76  inline GetShippingLabelRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
77 
78 
79  inline GetShippingLabelRequest& WithName(const char* value) { SetName(value); return *this;}
80 
81 
82  inline const Aws::String& GetCompany() const{ return m_company; }
83 
84 
85  inline void SetCompany(const Aws::String& value) { m_companyHasBeenSet = true; m_company = value; }
86 
87 
88  inline void SetCompany(Aws::String&& value) { m_companyHasBeenSet = true; m_company = value; }
89 
90 
91  inline void SetCompany(const char* value) { m_companyHasBeenSet = true; m_company.assign(value); }
92 
93 
94  inline GetShippingLabelRequest& WithCompany(const Aws::String& value) { SetCompany(value); return *this;}
95 
96 
97  inline GetShippingLabelRequest& WithCompany(Aws::String&& value) { SetCompany(value); return *this;}
98 
99 
100  inline GetShippingLabelRequest& WithCompany(const char* value) { SetCompany(value); return *this;}
101 
102 
103  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
104 
105 
106  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
107 
108 
109  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
110 
111 
112  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
113 
114 
115  inline GetShippingLabelRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
116 
117 
118  inline GetShippingLabelRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(value); return *this;}
119 
120 
121  inline GetShippingLabelRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
122 
123 
124  inline const Aws::String& GetCountry() const{ return m_country; }
125 
126 
127  inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
128 
129 
130  inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = value; }
131 
132 
133  inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
134 
135 
136  inline GetShippingLabelRequest& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
137 
138 
139  inline GetShippingLabelRequest& WithCountry(Aws::String&& value) { SetCountry(value); return *this;}
140 
141 
142  inline GetShippingLabelRequest& WithCountry(const char* value) { SetCountry(value); return *this;}
143 
144 
145  inline const Aws::String& GetStateOrProvince() const{ return m_stateOrProvince; }
146 
147 
148  inline void SetStateOrProvince(const Aws::String& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = value; }
149 
150 
151  inline void SetStateOrProvince(Aws::String&& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = value; }
152 
153 
154  inline void SetStateOrProvince(const char* value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince.assign(value); }
155 
156 
157  inline GetShippingLabelRequest& WithStateOrProvince(const Aws::String& value) { SetStateOrProvince(value); return *this;}
158 
159 
160  inline GetShippingLabelRequest& WithStateOrProvince(Aws::String&& value) { SetStateOrProvince(value); return *this;}
161 
162 
163  inline GetShippingLabelRequest& WithStateOrProvince(const char* value) { SetStateOrProvince(value); return *this;}
164 
165 
166  inline const Aws::String& GetCity() const{ return m_city; }
167 
168 
169  inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
170 
171 
172  inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = value; }
173 
174 
175  inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
176 
177 
178  inline GetShippingLabelRequest& WithCity(const Aws::String& value) { SetCity(value); return *this;}
179 
180 
181  inline GetShippingLabelRequest& WithCity(Aws::String&& value) { SetCity(value); return *this;}
182 
183 
184  inline GetShippingLabelRequest& WithCity(const char* value) { SetCity(value); return *this;}
185 
186 
187  inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
188 
189 
190  inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
191 
192 
193  inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
194 
195 
196  inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
197 
198 
199  inline GetShippingLabelRequest& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
200 
201 
202  inline GetShippingLabelRequest& WithPostalCode(Aws::String&& value) { SetPostalCode(value); return *this;}
203 
204 
205  inline GetShippingLabelRequest& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
206 
207 
208  inline const Aws::String& GetStreet1() const{ return m_street1; }
209 
210 
211  inline void SetStreet1(const Aws::String& value) { m_street1HasBeenSet = true; m_street1 = value; }
212 
213 
214  inline void SetStreet1(Aws::String&& value) { m_street1HasBeenSet = true; m_street1 = value; }
215 
216 
217  inline void SetStreet1(const char* value) { m_street1HasBeenSet = true; m_street1.assign(value); }
218 
219 
220  inline GetShippingLabelRequest& WithStreet1(const Aws::String& value) { SetStreet1(value); return *this;}
221 
222 
223  inline GetShippingLabelRequest& WithStreet1(Aws::String&& value) { SetStreet1(value); return *this;}
224 
225 
226  inline GetShippingLabelRequest& WithStreet1(const char* value) { SetStreet1(value); return *this;}
227 
228 
229  inline const Aws::String& GetStreet2() const{ return m_street2; }
230 
231 
232  inline void SetStreet2(const Aws::String& value) { m_street2HasBeenSet = true; m_street2 = value; }
233 
234 
235  inline void SetStreet2(Aws::String&& value) { m_street2HasBeenSet = true; m_street2 = value; }
236 
237 
238  inline void SetStreet2(const char* value) { m_street2HasBeenSet = true; m_street2.assign(value); }
239 
240 
241  inline GetShippingLabelRequest& WithStreet2(const Aws::String& value) { SetStreet2(value); return *this;}
242 
243 
244  inline GetShippingLabelRequest& WithStreet2(Aws::String&& value) { SetStreet2(value); return *this;}
245 
246 
247  inline GetShippingLabelRequest& WithStreet2(const char* value) { SetStreet2(value); return *this;}
248 
249 
250  inline const Aws::String& GetStreet3() const{ return m_street3; }
251 
252 
253  inline void SetStreet3(const Aws::String& value) { m_street3HasBeenSet = true; m_street3 = value; }
254 
255 
256  inline void SetStreet3(Aws::String&& value) { m_street3HasBeenSet = true; m_street3 = value; }
257 
258 
259  inline void SetStreet3(const char* value) { m_street3HasBeenSet = true; m_street3.assign(value); }
260 
261 
262  inline GetShippingLabelRequest& WithStreet3(const Aws::String& value) { SetStreet3(value); return *this;}
263 
264 
265  inline GetShippingLabelRequest& WithStreet3(Aws::String&& value) { SetStreet3(value); return *this;}
266 
267 
268  inline GetShippingLabelRequest& WithStreet3(const char* value) { SetStreet3(value); return *this;}
269 
270 
271  inline const Aws::String& GetAPIVersion() const{ return m_aPIVersion; }
272 
273 
274  inline void SetAPIVersion(const Aws::String& value) { m_aPIVersionHasBeenSet = true; m_aPIVersion = value; }
275 
276 
277  inline void SetAPIVersion(Aws::String&& value) { m_aPIVersionHasBeenSet = true; m_aPIVersion = value; }
278 
279 
280  inline void SetAPIVersion(const char* value) { m_aPIVersionHasBeenSet = true; m_aPIVersion.assign(value); }
281 
282 
283  inline GetShippingLabelRequest& WithAPIVersion(const Aws::String& value) { SetAPIVersion(value); return *this;}
284 
285 
286  inline GetShippingLabelRequest& WithAPIVersion(Aws::String&& value) { SetAPIVersion(value); return *this;}
287 
288 
289  inline GetShippingLabelRequest& WithAPIVersion(const char* value) { SetAPIVersion(value); return *this;}
290 
291  private:
292  Aws::Vector<Aws::String> m_jobIds;
293  bool m_jobIdsHasBeenSet;
294  Aws::String m_name;
295  bool m_nameHasBeenSet;
296  Aws::String m_company;
297  bool m_companyHasBeenSet;
298  Aws::String m_phoneNumber;
299  bool m_phoneNumberHasBeenSet;
300  Aws::String m_country;
301  bool m_countryHasBeenSet;
302  Aws::String m_stateOrProvince;
303  bool m_stateOrProvinceHasBeenSet;
304  Aws::String m_city;
305  bool m_cityHasBeenSet;
306  Aws::String m_postalCode;
307  bool m_postalCodeHasBeenSet;
308  Aws::String m_street1;
309  bool m_street1HasBeenSet;
310  Aws::String m_street2;
311  bool m_street2HasBeenSet;
312  Aws::String m_street3;
313  bool m_street3HasBeenSet;
314  Aws::String m_aPIVersion;
315  bool m_aPIVersionHasBeenSet;
316  };
317 
318 } // namespace Model
319 } // namespace ImportExport
320 } // namespace Aws
GetShippingLabelRequest & WithStreet2(const Aws::String &value)
GetShippingLabelRequest & WithStateOrProvince(const Aws::String &value)
GetShippingLabelRequest & WithAPIVersion(const Aws::String &value)
GetShippingLabelRequest & WithAPIVersion(const char *value)
GetShippingLabelRequest & WithPhoneNumber(Aws::String &&value)
GetShippingLabelRequest & WithName(const Aws::String &value)
GetShippingLabelRequest & WithCity(Aws::String &&value)
GetShippingLabelRequest & WithStateOrProvince(Aws::String &&value)
GetShippingLabelRequest & WithCountry(const Aws::String &value)
GetShippingLabelRequest & WithStreet2(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetJobIds(const Aws::Vector< Aws::String > &value)
GetShippingLabelRequest & WithPostalCode(const char *value)
void SetJobIds(Aws::Vector< Aws::String > &&value)
GetShippingLabelRequest & WithCity(const char *value)
GetShippingLabelRequest & WithStateOrProvince(const char *value)
GetShippingLabelRequest & WithPhoneNumber(const char *value)
GetShippingLabelRequest & AddJobIds(const char *value)
GetShippingLabelRequest & WithStreet3(const Aws::String &value)
GetShippingLabelRequest & WithStreet1(const char *value)
GetShippingLabelRequest & AddJobIds(Aws::String &&value)
GetShippingLabelRequest & WithStreet1(Aws::String &&value)
GetShippingLabelRequest & WithCountry(const char *value)
GetShippingLabelRequest & WithPhoneNumber(const Aws::String &value)
GetShippingLabelRequest & WithAPIVersion(Aws::String &&value)
GetShippingLabelRequest & WithCountry(Aws::String &&value)
GetShippingLabelRequest & WithJobIds(Aws::Vector< Aws::String > &&value)
GetShippingLabelRequest & WithStreet3(const char *value)
GetShippingLabelRequest & WithCompany(const Aws::String &value)
GetShippingLabelRequest & WithCity(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetShippingLabelRequest & WithPostalCode(Aws::String &&value)
GetShippingLabelRequest & AddJobIds(const Aws::String &value)
GetShippingLabelRequest & WithName(const char *value)
GetShippingLabelRequest & WithCompany(const char *value)
GetShippingLabelRequest & WithStreet2(const char *value)
GetShippingLabelRequest & WithPostalCode(const Aws::String &value)
GetShippingLabelRequest & WithJobIds(const Aws::Vector< Aws::String > &value)
GetShippingLabelRequest & WithName(Aws::String &&value)
GetShippingLabelRequest & WithStreet3(Aws::String &&value)
GetShippingLabelRequest & WithCompany(Aws::String &&value)
#define AWS_IMPORTEXPORT_API
const Aws::Vector< Aws::String > & GetJobIds() const
JSON (JavaScript Object Notation).
GetShippingLabelRequest & WithStreet1(const Aws::String &value)