AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
29 AWS_CHIME_API SearchAvailablePhoneNumbersRequest() = default;
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 template<typename AreaCodeT = Aws::String>
49 void SetAreaCode(AreaCodeT&& value) { m_areaCodeHasBeenSet = true; m_areaCode = std::forward<AreaCodeT>(value); }
50 template<typename AreaCodeT = Aws::String>
51 SearchAvailablePhoneNumbersRequest& WithAreaCode(AreaCodeT&& value) { SetAreaCode(std::forward<AreaCodeT>(value)); return *this;}
53
55
58 inline const Aws::String& GetCity() const { return m_city; }
59 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
60 template<typename CityT = Aws::String>
61 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
62 template<typename CityT = Aws::String>
63 SearchAvailablePhoneNumbersRequest& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
65
67
71 inline const Aws::String& GetCountry() const { return m_country; }
72 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
73 template<typename CountryT = Aws::String>
74 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
75 template<typename CountryT = Aws::String>
76 SearchAvailablePhoneNumbersRequest& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
78
80
84 inline const Aws::String& GetState() const { return m_state; }
85 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
86 template<typename StateT = Aws::String>
87 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
88 template<typename StateT = Aws::String>
89 SearchAvailablePhoneNumbersRequest& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
91
93
97 inline const Aws::String& GetTollFreePrefix() const { return m_tollFreePrefix; }
98 inline bool TollFreePrefixHasBeenSet() const { return m_tollFreePrefixHasBeenSet; }
99 template<typename TollFreePrefixT = Aws::String>
100 void SetTollFreePrefix(TollFreePrefixT&& value) { m_tollFreePrefixHasBeenSet = true; m_tollFreePrefix = std::forward<TollFreePrefixT>(value); }
101 template<typename TollFreePrefixT = Aws::String>
102 SearchAvailablePhoneNumbersRequest& WithTollFreePrefix(TollFreePrefixT&& value) { SetTollFreePrefix(std::forward<TollFreePrefixT>(value)); return *this;}
104
106
110 inline PhoneNumberType GetPhoneNumberType() const { return m_phoneNumberType; }
111 inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; }
112 inline void SetPhoneNumberType(PhoneNumberType value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = value; }
115
117
120 inline int GetMaxResults() const { return m_maxResults; }
121 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
122 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
123 inline SearchAvailablePhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
125
127
130 inline const Aws::String& GetNextToken() const { return m_nextToken; }
131 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
132 template<typename NextTokenT = Aws::String>
133 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
134 template<typename NextTokenT = Aws::String>
135 SearchAvailablePhoneNumbersRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
137 private:
138
139 Aws::String m_areaCode;
140 bool m_areaCodeHasBeenSet = false;
141
142 Aws::String m_city;
143 bool m_cityHasBeenSet = false;
144
145 Aws::String m_country;
146 bool m_countryHasBeenSet = false;
147
148 Aws::String m_state;
149 bool m_stateHasBeenSet = false;
150
151 Aws::String m_tollFreePrefix;
152 bool m_tollFreePrefixHasBeenSet = false;
153
154 PhoneNumberType m_phoneNumberType{PhoneNumberType::NOT_SET};
155 bool m_phoneNumberTypeHasBeenSet = false;
156
157 int m_maxResults{0};
158 bool m_maxResultsHasBeenSet = false;
159
160 Aws::String m_nextToken;
161 bool m_nextTokenHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Chime
166} // 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