AWS SDK for C++  1.9.109
AWS SDK for C++
ListPhoneNumbersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Http
18 {
19  class URI;
20 } //namespace Http
21 namespace Connect
22 {
23 namespace Model
24 {
25 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "ListPhoneNumbers"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
48  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
49 
54  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
55 
60  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
61 
66  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
67 
72  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
73 
78  inline ListPhoneNumbersRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
79 
84  inline ListPhoneNumbersRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
85 
90  inline ListPhoneNumbersRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
91 
92 
96  inline const Aws::Vector<PhoneNumberType>& GetPhoneNumberTypes() const{ return m_phoneNumberTypes; }
97 
101  inline bool PhoneNumberTypesHasBeenSet() const { return m_phoneNumberTypesHasBeenSet; }
102 
106  inline void SetPhoneNumberTypes(const Aws::Vector<PhoneNumberType>& value) { m_phoneNumberTypesHasBeenSet = true; m_phoneNumberTypes = value; }
107 
111  inline void SetPhoneNumberTypes(Aws::Vector<PhoneNumberType>&& value) { m_phoneNumberTypesHasBeenSet = true; m_phoneNumberTypes = std::move(value); }
112 
116  inline ListPhoneNumbersRequest& WithPhoneNumberTypes(const Aws::Vector<PhoneNumberType>& value) { SetPhoneNumberTypes(value); return *this;}
117 
121  inline ListPhoneNumbersRequest& WithPhoneNumberTypes(Aws::Vector<PhoneNumberType>&& value) { SetPhoneNumberTypes(std::move(value)); return *this;}
122 
126  inline ListPhoneNumbersRequest& AddPhoneNumberTypes(const PhoneNumberType& value) { m_phoneNumberTypesHasBeenSet = true; m_phoneNumberTypes.push_back(value); return *this; }
127 
131  inline ListPhoneNumbersRequest& AddPhoneNumberTypes(PhoneNumberType&& value) { m_phoneNumberTypesHasBeenSet = true; m_phoneNumberTypes.push_back(std::move(value)); return *this; }
132 
133 
137  inline const Aws::Vector<PhoneNumberCountryCode>& GetPhoneNumberCountryCodes() const{ return m_phoneNumberCountryCodes; }
138 
142  inline bool PhoneNumberCountryCodesHasBeenSet() const { return m_phoneNumberCountryCodesHasBeenSet; }
143 
147  inline void SetPhoneNumberCountryCodes(const Aws::Vector<PhoneNumberCountryCode>& value) { m_phoneNumberCountryCodesHasBeenSet = true; m_phoneNumberCountryCodes = value; }
148 
152  inline void SetPhoneNumberCountryCodes(Aws::Vector<PhoneNumberCountryCode>&& value) { m_phoneNumberCountryCodesHasBeenSet = true; m_phoneNumberCountryCodes = std::move(value); }
153 
157  inline ListPhoneNumbersRequest& WithPhoneNumberCountryCodes(const Aws::Vector<PhoneNumberCountryCode>& value) { SetPhoneNumberCountryCodes(value); return *this;}
158 
162  inline ListPhoneNumbersRequest& WithPhoneNumberCountryCodes(Aws::Vector<PhoneNumberCountryCode>&& value) { SetPhoneNumberCountryCodes(std::move(value)); return *this;}
163 
167  inline ListPhoneNumbersRequest& AddPhoneNumberCountryCodes(const PhoneNumberCountryCode& value) { m_phoneNumberCountryCodesHasBeenSet = true; m_phoneNumberCountryCodes.push_back(value); return *this; }
168 
172  inline ListPhoneNumbersRequest& AddPhoneNumberCountryCodes(PhoneNumberCountryCode&& value) { m_phoneNumberCountryCodesHasBeenSet = true; m_phoneNumberCountryCodes.push_back(std::move(value)); return *this; }
173 
174 
179  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
180 
185  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
186 
191  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
192 
197  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
198 
203  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
204 
209  inline ListPhoneNumbersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
210 
215  inline ListPhoneNumbersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
216 
221  inline ListPhoneNumbersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
222 
223 
227  inline int GetMaxResults() const{ return m_maxResults; }
228 
232  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
233 
237  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
238 
242  inline ListPhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
243 
244  private:
245 
246  Aws::String m_instanceId;
247  bool m_instanceIdHasBeenSet;
248 
249  Aws::Vector<PhoneNumberType> m_phoneNumberTypes;
250  bool m_phoneNumberTypesHasBeenSet;
251 
252  Aws::Vector<PhoneNumberCountryCode> m_phoneNumberCountryCodes;
253  bool m_phoneNumberCountryCodesHasBeenSet;
254 
255  Aws::String m_nextToken;
256  bool m_nextTokenHasBeenSet;
257 
258  int m_maxResults;
259  bool m_maxResultsHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace Connect
264 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Connect::Model::ListPhoneNumbersRequest::WithPhoneNumberCountryCodes
ListPhoneNumbersRequest & WithPhoneNumberCountryCodes(const Aws::Vector< PhoneNumberCountryCode > &value)
Definition: ListPhoneNumbersRequest.h:157
Aws::Connect::Model::ListPhoneNumbersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::ListPhoneNumbersRequest::AddPhoneNumberCountryCodes
ListPhoneNumbersRequest & AddPhoneNumberCountryCodes(const PhoneNumberCountryCode &value)
Definition: ListPhoneNumbersRequest.h:167
Aws::Connect::Model::ListPhoneNumbersRequest::WithNextToken
ListPhoneNumbersRequest & WithNextToken(Aws::String &&value)
Definition: ListPhoneNumbersRequest.h:215
Aws::Connect::Model::ListPhoneNumbersRequest::WithPhoneNumberTypes
ListPhoneNumbersRequest & WithPhoneNumberTypes(Aws::Vector< PhoneNumberType > &&value)
Definition: ListPhoneNumbersRequest.h:121
Aws::Connect::Model::ListPhoneNumbersRequest::GetPhoneNumberCountryCodes
const Aws::Vector< PhoneNumberCountryCode > & GetPhoneNumberCountryCodes() const
Definition: ListPhoneNumbersRequest.h:137
PhoneNumberCountryCode.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Connect::Model::ListPhoneNumbersRequest::ListPhoneNumbersRequest
ListPhoneNumbersRequest()
Aws::Connect::Model::ListPhoneNumbersRequest::SetPhoneNumberCountryCodes
void SetPhoneNumberCountryCodes(const Aws::Vector< PhoneNumberCountryCode > &value)
Definition: ListPhoneNumbersRequest.h:147
Aws::Connect::Model::ListPhoneNumbersRequest::WithInstanceId
ListPhoneNumbersRequest & WithInstanceId(const char *value)
Definition: ListPhoneNumbersRequest.h:90
AWSVector.h
Aws::Connect::Model::ListPhoneNumbersRequest::SetPhoneNumberTypes
void SetPhoneNumberTypes(const Aws::Vector< PhoneNumberType > &value)
Definition: ListPhoneNumbersRequest.h:106
Aws::Connect::Model::ListPhoneNumbersRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ListPhoneNumbersRequest.h:48
Aws::Connect::Model::ListPhoneNumbersRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ListPhoneNumbersRequest.h:66
Aws::Connect::Model::ListPhoneNumbersRequest::AddPhoneNumberCountryCodes
ListPhoneNumbersRequest & AddPhoneNumberCountryCodes(PhoneNumberCountryCode &&value)
Definition: ListPhoneNumbersRequest.h:172
Aws::Connect::Model::ListPhoneNumbersRequest::PhoneNumberCountryCodesHasBeenSet
bool PhoneNumberCountryCodesHasBeenSet() const
Definition: ListPhoneNumbersRequest.h:142
PhoneNumberType.h
Aws::Connect::Model::ListPhoneNumbersRequest::WithNextToken
ListPhoneNumbersRequest & WithNextToken(const char *value)
Definition: ListPhoneNumbersRequest.h:221
Aws::Connect::Model::ListPhoneNumbersRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::ListPhoneNumbersRequest::SetPhoneNumberTypes
void SetPhoneNumberTypes(Aws::Vector< PhoneNumberType > &&value)
Definition: ListPhoneNumbersRequest.h:111
Aws::Connect::Model::ListPhoneNumbersRequest::GetPhoneNumberTypes
const Aws::Vector< PhoneNumberType > & GetPhoneNumberTypes() const
Definition: ListPhoneNumbersRequest.h:96
Aws::Connect::Model::PhoneNumberType
PhoneNumberType
Definition: PhoneNumberType.h:17
Aws::Connect::Model::PhoneNumberCountryCode
PhoneNumberCountryCode
Definition: PhoneNumberCountryCode.h:17
Aws::Connect::Model::ListPhoneNumbersRequest::AddPhoneNumberTypes
ListPhoneNumbersRequest & AddPhoneNumberTypes(const PhoneNumberType &value)
Definition: ListPhoneNumbersRequest.h:126
AWSString.h
Aws::Connect::Model::ListPhoneNumbersRequest
Definition: ListPhoneNumbersRequest.h:29
Aws::Connect::Model::ListPhoneNumbersRequest::WithPhoneNumberCountryCodes
ListPhoneNumbersRequest & WithPhoneNumberCountryCodes(Aws::Vector< PhoneNumberCountryCode > &&value)
Definition: ListPhoneNumbersRequest.h:162
Aws::Connect::Model::ListPhoneNumbersRequest::AddPhoneNumberTypes
ListPhoneNumbersRequest & AddPhoneNumberTypes(PhoneNumberType &&value)
Definition: ListPhoneNumbersRequest.h:131
Aws::Connect::Model::ListPhoneNumbersRequest::GetMaxResults
int GetMaxResults() const
Definition: ListPhoneNumbersRequest.h:227
Aws::Connect::Model::ListPhoneNumbersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListPhoneNumbersRequest.h:232
Aws::Connect::Model::ListPhoneNumbersRequest::WithInstanceId
ListPhoneNumbersRequest & WithInstanceId(const Aws::String &value)
Definition: ListPhoneNumbersRequest.h:78
Aws::Connect::Model::ListPhoneNumbersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPhoneNumbersRequest.h:37
Aws::Connect::Model::ListPhoneNumbersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListPhoneNumbersRequest.h:203
Aws::Connect::Model::ListPhoneNumbersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPhoneNumbersRequest.h:191
Aws::Connect::Model::ListPhoneNumbersRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: ListPhoneNumbersRequest.h:72
Aws::Connect::Model::ListPhoneNumbersRequest::SetPhoneNumberCountryCodes
void SetPhoneNumberCountryCodes(Aws::Vector< PhoneNumberCountryCode > &&value)
Definition: ListPhoneNumbersRequest.h:152
Aws::Connect::Model::ListPhoneNumbersRequest::WithNextToken
ListPhoneNumbersRequest & WithNextToken(const Aws::String &value)
Definition: ListPhoneNumbersRequest.h:209
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::ListPhoneNumbersRequest::WithPhoneNumberTypes
ListPhoneNumbersRequest & WithPhoneNumberTypes(const Aws::Vector< PhoneNumberType > &value)
Definition: ListPhoneNumbersRequest.h:116
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::ListPhoneNumbersRequest::WithInstanceId
ListPhoneNumbersRequest & WithInstanceId(Aws::String &&value)
Definition: ListPhoneNumbersRequest.h:84
Aws::Connect::Model::ListPhoneNumbersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPhoneNumbersRequest.h:179
Aws::Connect::Model::ListPhoneNumbersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListPhoneNumbersRequest.h:185
Aws::Connect::Model::ListPhoneNumbersRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ListPhoneNumbersRequest.h:54
Aws::Connect::Model::ListPhoneNumbersRequest::WithMaxResults
ListPhoneNumbersRequest & WithMaxResults(int value)
Definition: ListPhoneNumbersRequest.h:242
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::ListPhoneNumbersRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ListPhoneNumbersRequest.h:60
Connect_EXPORTS.h
Aws::Connect::Model::ListPhoneNumbersRequest::PhoneNumberTypesHasBeenSet
bool PhoneNumberTypesHasBeenSet() const
Definition: ListPhoneNumbersRequest.h:101
ConnectRequest.h
Aws::Connect::Model::ListPhoneNumbersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListPhoneNumbersRequest.h:237
Aws::Connect::Model::ListPhoneNumbersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPhoneNumbersRequest.h:197