AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
ListPhoneNumbersRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/connect/model/PhoneNumberType.h>
12#include <aws/connect/model/PhoneNumberCountryCode.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace Connect
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_CONNECT_API ListPhoneNumbersRequest() = default;
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_CONNECT_API Aws::String SerializePayload() const override;
40
41 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
50 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
51 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
52 template<typename InstanceIdT = Aws::String>
53 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
54 template<typename InstanceIdT = Aws::String>
55 ListPhoneNumbersRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
57
59
67 inline const Aws::Vector<PhoneNumberType>& GetPhoneNumberTypes() const { return m_phoneNumberTypes; }
68 inline bool PhoneNumberTypesHasBeenSet() const { return m_phoneNumberTypesHasBeenSet; }
69 template<typename PhoneNumberTypesT = Aws::Vector<PhoneNumberType>>
70 void SetPhoneNumberTypes(PhoneNumberTypesT&& value) { m_phoneNumberTypesHasBeenSet = true; m_phoneNumberTypes = std::forward<PhoneNumberTypesT>(value); }
71 template<typename PhoneNumberTypesT = Aws::Vector<PhoneNumberType>>
72 ListPhoneNumbersRequest& WithPhoneNumberTypes(PhoneNumberTypesT&& value) { SetPhoneNumberTypes(std::forward<PhoneNumberTypesT>(value)); return *this;}
73 inline ListPhoneNumbersRequest& AddPhoneNumberTypes(PhoneNumberType value) { m_phoneNumberTypesHasBeenSet = true; m_phoneNumberTypes.push_back(value); return *this; }
75
77
80 inline const Aws::Vector<PhoneNumberCountryCode>& GetPhoneNumberCountryCodes() const { return m_phoneNumberCountryCodes; }
81 inline bool PhoneNumberCountryCodesHasBeenSet() const { return m_phoneNumberCountryCodesHasBeenSet; }
82 template<typename PhoneNumberCountryCodesT = Aws::Vector<PhoneNumberCountryCode>>
83 void SetPhoneNumberCountryCodes(PhoneNumberCountryCodesT&& value) { m_phoneNumberCountryCodesHasBeenSet = true; m_phoneNumberCountryCodes = std::forward<PhoneNumberCountryCodesT>(value); }
84 template<typename PhoneNumberCountryCodesT = Aws::Vector<PhoneNumberCountryCode>>
85 ListPhoneNumbersRequest& WithPhoneNumberCountryCodes(PhoneNumberCountryCodesT&& value) { SetPhoneNumberCountryCodes(std::forward<PhoneNumberCountryCodesT>(value)); return *this;}
86 inline ListPhoneNumbersRequest& AddPhoneNumberCountryCodes(PhoneNumberCountryCode value) { m_phoneNumberCountryCodesHasBeenSet = true; m_phoneNumberCountryCodes.push_back(value); return *this; }
88
90
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template<typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
98 template<typename NextTokenT = Aws::String>
99 ListPhoneNumbersRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
101
103
107 inline int GetMaxResults() const { return m_maxResults; }
108 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
109 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
110 inline ListPhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
112 private:
113
114 Aws::String m_instanceId;
115 bool m_instanceIdHasBeenSet = false;
116
117 Aws::Vector<PhoneNumberType> m_phoneNumberTypes;
118 bool m_phoneNumberTypesHasBeenSet = false;
119
120 Aws::Vector<PhoneNumberCountryCode> m_phoneNumberCountryCodes;
121 bool m_phoneNumberCountryCodesHasBeenSet = false;
122
123 Aws::String m_nextToken;
124 bool m_nextTokenHasBeenSet = false;
125
126 int m_maxResults{0};
127 bool m_maxResultsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Connect
132} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< PhoneNumberCountryCode > & GetPhoneNumberCountryCodes() const
ListPhoneNumbersRequest & WithPhoneNumberCountryCodes(PhoneNumberCountryCodesT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
ListPhoneNumbersRequest & WithNextToken(NextTokenT &&value)
AWS_CONNECT_API ListPhoneNumbersRequest()=default
ListPhoneNumbersRequest & WithInstanceId(InstanceIdT &&value)
ListPhoneNumbersRequest & WithMaxResults(int value)
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPhoneNumbersRequest & AddPhoneNumberCountryCodes(PhoneNumberCountryCode value)
const Aws::Vector< PhoneNumberType > & GetPhoneNumberTypes() const
void SetPhoneNumberTypes(PhoneNumberTypesT &&value)
ListPhoneNumbersRequest & WithPhoneNumberTypes(PhoneNumberTypesT &&value)
ListPhoneNumbersRequest & AddPhoneNumberTypes(PhoneNumberType value)
void SetPhoneNumberCountryCodes(PhoneNumberCountryCodesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector