AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchAvailablePhoneNumbersRequest.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/ChimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/chime/model/PhoneNumberType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace Chime
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SearchAvailablePhoneNumbers"; }
36
37 AWS_CHIME_API Aws::String SerializePayload() const override;
38
39 AWS_CHIME_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetAreaCode() const{ return m_areaCode; }
47 inline bool AreaCodeHasBeenSet() const { return m_areaCodeHasBeenSet; }
48 inline void SetAreaCode(const Aws::String& value) { m_areaCodeHasBeenSet = true; m_areaCode = value; }
49 inline void SetAreaCode(Aws::String&& value) { m_areaCodeHasBeenSet = true; m_areaCode = std::move(value); }
50 inline void SetAreaCode(const char* value) { m_areaCodeHasBeenSet = true; m_areaCode.assign(value); }
51 inline SearchAvailablePhoneNumbersRequest& WithAreaCode(const Aws::String& value) { SetAreaCode(value); return *this;}
52 inline SearchAvailablePhoneNumbersRequest& WithAreaCode(Aws::String&& value) { SetAreaCode(std::move(value)); return *this;}
53 inline SearchAvailablePhoneNumbersRequest& WithAreaCode(const char* value) { SetAreaCode(value); return *this;}
55
57
60 inline const Aws::String& GetCity() const{ return m_city; }
61 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
62 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
63 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
64 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
65 inline SearchAvailablePhoneNumbersRequest& WithCity(const Aws::String& value) { SetCity(value); return *this;}
66 inline SearchAvailablePhoneNumbersRequest& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
67 inline SearchAvailablePhoneNumbersRequest& WithCity(const char* value) { SetCity(value); return *this;}
69
71
75 inline const Aws::String& GetCountry() const{ return m_country; }
76 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
77 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
78 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
79 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
80 inline SearchAvailablePhoneNumbersRequest& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
81 inline SearchAvailablePhoneNumbersRequest& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
82 inline SearchAvailablePhoneNumbersRequest& WithCountry(const char* value) { SetCountry(value); return *this;}
84
86
90 inline const Aws::String& GetState() const{ return m_state; }
91 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
92 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
93 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
94 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
95 inline SearchAvailablePhoneNumbersRequest& WithState(const Aws::String& value) { SetState(value); return *this;}
96 inline SearchAvailablePhoneNumbersRequest& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
97 inline SearchAvailablePhoneNumbersRequest& WithState(const char* value) { SetState(value); return *this;}
99
101
105 inline const Aws::String& GetTollFreePrefix() const{ return m_tollFreePrefix; }
106 inline bool TollFreePrefixHasBeenSet() const { return m_tollFreePrefixHasBeenSet; }
107 inline void SetTollFreePrefix(const Aws::String& value) { m_tollFreePrefixHasBeenSet = true; m_tollFreePrefix = value; }
108 inline void SetTollFreePrefix(Aws::String&& value) { m_tollFreePrefixHasBeenSet = true; m_tollFreePrefix = std::move(value); }
109 inline void SetTollFreePrefix(const char* value) { m_tollFreePrefixHasBeenSet = true; m_tollFreePrefix.assign(value); }
111 inline SearchAvailablePhoneNumbersRequest& WithTollFreePrefix(Aws::String&& value) { SetTollFreePrefix(std::move(value)); return *this;}
112 inline SearchAvailablePhoneNumbersRequest& WithTollFreePrefix(const char* value) { SetTollFreePrefix(value); return *this;}
114
116
120 inline const PhoneNumberType& GetPhoneNumberType() const{ return m_phoneNumberType; }
121 inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; }
122 inline void SetPhoneNumberType(const PhoneNumberType& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = value; }
123 inline void SetPhoneNumberType(PhoneNumberType&& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = std::move(value); }
127
129
132 inline int GetMaxResults() const{ return m_maxResults; }
133 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
134 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
135 inline SearchAvailablePhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
137
139
142 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
143 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
144 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
145 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
146 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
147 inline SearchAvailablePhoneNumbersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
148 inline SearchAvailablePhoneNumbersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
149 inline SearchAvailablePhoneNumbersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
151 private:
152
153 Aws::String m_areaCode;
154 bool m_areaCodeHasBeenSet = false;
155
156 Aws::String m_city;
157 bool m_cityHasBeenSet = false;
158
159 Aws::String m_country;
160 bool m_countryHasBeenSet = false;
161
162 Aws::String m_state;
163 bool m_stateHasBeenSet = false;
164
165 Aws::String m_tollFreePrefix;
166 bool m_tollFreePrefixHasBeenSet = false;
167
168 PhoneNumberType m_phoneNumberType;
169 bool m_phoneNumberTypeHasBeenSet = false;
170
171 int m_maxResults;
172 bool m_maxResultsHasBeenSet = false;
173
174 Aws::String m_nextToken;
175 bool m_nextTokenHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace Chime
180} // namespace Aws
SearchAvailablePhoneNumbersRequest & WithState(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithCity(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithState(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithCountry(const char *value)
SearchAvailablePhoneNumbersRequest & WithCity(const char *value)
SearchAvailablePhoneNumbersRequest & WithPhoneNumberType(const PhoneNumberType &value)
SearchAvailablePhoneNumbersRequest & WithTollFreePrefix(const char *value)
SearchAvailablePhoneNumbersRequest & WithMaxResults(int value)
SearchAvailablePhoneNumbersRequest & WithNextToken(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithCountry(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithCountry(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithAreaCode(const char *value)
SearchAvailablePhoneNumbersRequest & WithState(const char *value)
SearchAvailablePhoneNumbersRequest & WithNextToken(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithAreaCode(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithAreaCode(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithTollFreePrefix(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithTollFreePrefix(Aws::String &&value)
AWS_CHIME_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CHIME_API Aws::String SerializePayload() const override
SearchAvailablePhoneNumbersRequest & WithPhoneNumberType(PhoneNumberType &&value)
SearchAvailablePhoneNumbersRequest & WithNextToken(const char *value)
SearchAvailablePhoneNumbersRequest & WithCity(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String