AWS SDK for C++  1.8.71
AWS SDK for C++
SearchAvailablePhoneNumbersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Chime
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "SearchAvailablePhoneNumbers"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetAreaCode() const{ return m_areaCode; }
45 
49  inline bool AreaCodeHasBeenSet() const { return m_areaCodeHasBeenSet; }
50 
54  inline void SetAreaCode(const Aws::String& value) { m_areaCodeHasBeenSet = true; m_areaCode = value; }
55 
59  inline void SetAreaCode(Aws::String&& value) { m_areaCodeHasBeenSet = true; m_areaCode = std::move(value); }
60 
64  inline void SetAreaCode(const char* value) { m_areaCodeHasBeenSet = true; m_areaCode.assign(value); }
65 
69  inline SearchAvailablePhoneNumbersRequest& WithAreaCode(const Aws::String& value) { SetAreaCode(value); return *this;}
70 
74  inline SearchAvailablePhoneNumbersRequest& WithAreaCode(Aws::String&& value) { SetAreaCode(std::move(value)); return *this;}
75 
79  inline SearchAvailablePhoneNumbersRequest& WithAreaCode(const char* value) { SetAreaCode(value); return *this;}
80 
81 
85  inline const Aws::String& GetCity() const{ return m_city; }
86 
90  inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
91 
95  inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
96 
100  inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
101 
105  inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
106 
110  inline SearchAvailablePhoneNumbersRequest& WithCity(const Aws::String& value) { SetCity(value); return *this;}
111 
115  inline SearchAvailablePhoneNumbersRequest& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
116 
120  inline SearchAvailablePhoneNumbersRequest& WithCity(const char* value) { SetCity(value); return *this;}
121 
122 
126  inline const Aws::String& GetCountry() const{ return m_country; }
127 
131  inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
132 
136  inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
137 
141  inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
142 
146  inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
147 
151  inline SearchAvailablePhoneNumbersRequest& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
152 
156  inline SearchAvailablePhoneNumbersRequest& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
157 
161  inline SearchAvailablePhoneNumbersRequest& WithCountry(const char* value) { SetCountry(value); return *this;}
162 
163 
167  inline const Aws::String& GetState() const{ return m_state; }
168 
172  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
173 
177  inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
178 
182  inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
183 
187  inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
188 
192  inline SearchAvailablePhoneNumbersRequest& WithState(const Aws::String& value) { SetState(value); return *this;}
193 
197  inline SearchAvailablePhoneNumbersRequest& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
198 
202  inline SearchAvailablePhoneNumbersRequest& WithState(const char* value) { SetState(value); return *this;}
203 
204 
208  inline const Aws::String& GetTollFreePrefix() const{ return m_tollFreePrefix; }
209 
213  inline bool TollFreePrefixHasBeenSet() const { return m_tollFreePrefixHasBeenSet; }
214 
218  inline void SetTollFreePrefix(const Aws::String& value) { m_tollFreePrefixHasBeenSet = true; m_tollFreePrefix = value; }
219 
223  inline void SetTollFreePrefix(Aws::String&& value) { m_tollFreePrefixHasBeenSet = true; m_tollFreePrefix = std::move(value); }
224 
228  inline void SetTollFreePrefix(const char* value) { m_tollFreePrefixHasBeenSet = true; m_tollFreePrefix.assign(value); }
229 
233  inline SearchAvailablePhoneNumbersRequest& WithTollFreePrefix(const Aws::String& value) { SetTollFreePrefix(value); return *this;}
234 
238  inline SearchAvailablePhoneNumbersRequest& WithTollFreePrefix(Aws::String&& value) { SetTollFreePrefix(std::move(value)); return *this;}
239 
243  inline SearchAvailablePhoneNumbersRequest& WithTollFreePrefix(const char* value) { SetTollFreePrefix(value); return *this;}
244 
245 
249  inline int GetMaxResults() const{ return m_maxResults; }
250 
254  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
255 
259  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
260 
264  inline SearchAvailablePhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
265 
266 
270  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
271 
275  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
276 
280  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
281 
285  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
286 
290  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
291 
295  inline SearchAvailablePhoneNumbersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
296 
300  inline SearchAvailablePhoneNumbersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
301 
305  inline SearchAvailablePhoneNumbersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
306 
307  private:
308 
309  Aws::String m_areaCode;
310  bool m_areaCodeHasBeenSet;
311 
312  Aws::String m_city;
313  bool m_cityHasBeenSet;
314 
315  Aws::String m_country;
316  bool m_countryHasBeenSet;
317 
318  Aws::String m_state;
319  bool m_stateHasBeenSet;
320 
321  Aws::String m_tollFreePrefix;
322  bool m_tollFreePrefixHasBeenSet;
323 
324  int m_maxResults;
325  bool m_maxResultsHasBeenSet;
326 
327  Aws::String m_nextToken;
328  bool m_nextTokenHasBeenSet;
329  };
330 
331 } // namespace Model
332 } // namespace Chime
333 } // namespace Aws
SearchAvailablePhoneNumbersRequest & WithAreaCode(const char *value)
SearchAvailablePhoneNumbersRequest & WithNextToken(const char *value)
SearchAvailablePhoneNumbersRequest & WithCountry(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithNextToken(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithCity(Aws::String &&value)
#define AWS_CHIME_API
Definition: Chime_EXPORTS.h:28
SearchAvailablePhoneNumbersRequest & WithTollFreePrefix(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithCity(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithState(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithAreaCode(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithAreaCode(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithState(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SearchAvailablePhoneNumbersRequest & WithNextToken(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithCity(const char *value)
SearchAvailablePhoneNumbersRequest & WithTollFreePrefix(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithState(const char *value)
SearchAvailablePhoneNumbersRequest & WithTollFreePrefix(const char *value)
SearchAvailablePhoneNumbersRequest & WithCountry(const char *value)
SearchAvailablePhoneNumbersRequest & WithCountry(Aws::String &&value)