AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SearchAvailablePhoneNumbersRequest.h
1
6#pragma once
7#include <aws/chime/ChimeRequest.h>
8#include <aws/chime/Chime_EXPORTS.h>
9#include <aws/chime/model/PhoneNumberType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace Chime {
19namespace Model {
20
24 public:
25 AWS_CHIME_API SearchAvailablePhoneNumbersRequest() = default;
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.
31 inline virtual const char* GetServiceRequestName() const override { return "SearchAvailablePhoneNumbers"; }
32
33 AWS_CHIME_API Aws::String SerializePayload() const override;
34
35 AWS_CHIME_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetAreaCode() const { return m_areaCode; }
42 inline bool AreaCodeHasBeenSet() const { return m_areaCodeHasBeenSet; }
43 template <typename AreaCodeT = Aws::String>
44 void SetAreaCode(AreaCodeT&& value) {
45 m_areaCodeHasBeenSet = true;
46 m_areaCode = std::forward<AreaCodeT>(value);
47 }
48 template <typename AreaCodeT = Aws::String>
50 SetAreaCode(std::forward<AreaCodeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCity() const { return m_city; }
60 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
61 template <typename CityT = Aws::String>
62 void SetCity(CityT&& value) {
63 m_cityHasBeenSet = true;
64 m_city = std::forward<CityT>(value);
65 }
66 template <typename CityT = Aws::String>
68 SetCity(std::forward<CityT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetCountry() const { return m_country; }
79 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
80 template <typename CountryT = Aws::String>
81 void SetCountry(CountryT&& value) {
82 m_countryHasBeenSet = true;
83 m_country = std::forward<CountryT>(value);
84 }
85 template <typename CountryT = Aws::String>
87 SetCountry(std::forward<CountryT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetState() const { return m_state; }
98 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 template <typename StateT = Aws::String>
100 void SetState(StateT&& value) {
101 m_stateHasBeenSet = true;
102 m_state = std::forward<StateT>(value);
103 }
104 template <typename StateT = Aws::String>
106 SetState(std::forward<StateT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetTollFreePrefix() const { return m_tollFreePrefix; }
117 inline bool TollFreePrefixHasBeenSet() const { return m_tollFreePrefixHasBeenSet; }
118 template <typename TollFreePrefixT = Aws::String>
119 void SetTollFreePrefix(TollFreePrefixT&& value) {
120 m_tollFreePrefixHasBeenSet = true;
121 m_tollFreePrefix = std::forward<TollFreePrefixT>(value);
122 }
123 template <typename TollFreePrefixT = Aws::String>
125 SetTollFreePrefix(std::forward<TollFreePrefixT>(value));
126 return *this;
127 }
129
131
135 inline PhoneNumberType GetPhoneNumberType() const { return m_phoneNumberType; }
136 inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; }
138 m_phoneNumberTypeHasBeenSet = true;
139 m_phoneNumberType = value;
140 }
142 SetPhoneNumberType(value);
143 return *this;
144 }
146
148
151 inline int GetMaxResults() const { return m_maxResults; }
152 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
153 inline void SetMaxResults(int value) {
154 m_maxResultsHasBeenSet = true;
155 m_maxResults = value;
156 }
158 SetMaxResults(value);
159 return *this;
160 }
162
164
167 inline const Aws::String& GetNextToken() const { return m_nextToken; }
168 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
169 template <typename NextTokenT = Aws::String>
170 void SetNextToken(NextTokenT&& value) {
171 m_nextTokenHasBeenSet = true;
172 m_nextToken = std::forward<NextTokenT>(value);
173 }
174 template <typename NextTokenT = Aws::String>
176 SetNextToken(std::forward<NextTokenT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_areaCode;
182
183 Aws::String m_city;
184
185 Aws::String m_country;
186
187 Aws::String m_state;
188
189 Aws::String m_tollFreePrefix;
190
191 PhoneNumberType m_phoneNumberType{PhoneNumberType::NOT_SET};
192
193 int m_maxResults{0};
194
195 Aws::String m_nextToken;
196 bool m_areaCodeHasBeenSet = false;
197 bool m_cityHasBeenSet = false;
198 bool m_countryHasBeenSet = false;
199 bool m_stateHasBeenSet = false;
200 bool m_tollFreePrefixHasBeenSet = false;
201 bool m_phoneNumberTypeHasBeenSet = false;
202 bool m_maxResultsHasBeenSet = false;
203 bool m_nextTokenHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace Chime
208} // namespace Aws
SearchAvailablePhoneNumbersRequest & WithState(StateT &&value)
SearchAvailablePhoneNumbersRequest & WithMaxResults(int value)
SearchAvailablePhoneNumbersRequest & WithCity(CityT &&value)
SearchAvailablePhoneNumbersRequest & WithAreaCode(AreaCodeT &&value)
AWS_CHIME_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchAvailablePhoneNumbersRequest & WithTollFreePrefix(TollFreePrefixT &&value)
AWS_CHIME_API Aws::String SerializePayload() const override
SearchAvailablePhoneNumbersRequest & WithPhoneNumberType(PhoneNumberType value)
SearchAvailablePhoneNumbersRequest & WithCountry(CountryT &&value)
SearchAvailablePhoneNumbersRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String