AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SearchAvailablePhoneNumbersRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/PhoneNumberCountryCode.h>
10#include <aws/connect/model/PhoneNumberType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API SearchAvailablePhoneNumbersRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SearchAvailablePhoneNumbers"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
40 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
41 template <typename TargetArnT = Aws::String>
42 void SetTargetArn(TargetArnT&& value) {
43 m_targetArnHasBeenSet = true;
44 m_targetArn = std::forward<TargetArnT>(value);
45 }
46 template <typename TargetArnT = Aws::String>
48 SetTargetArn(std::forward<TargetArnT>(value));
49 return *this;
50 }
52
54
61 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
62 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
63 template <typename InstanceIdT = Aws::String>
64 void SetInstanceId(InstanceIdT&& value) {
65 m_instanceIdHasBeenSet = true;
66 m_instanceId = std::forward<InstanceIdT>(value);
67 }
68 template <typename InstanceIdT = Aws::String>
70 SetInstanceId(std::forward<InstanceIdT>(value));
71 return *this;
72 }
74
76
79 inline PhoneNumberCountryCode GetPhoneNumberCountryCode() const { return m_phoneNumberCountryCode; }
80 inline bool PhoneNumberCountryCodeHasBeenSet() const { return m_phoneNumberCountryCodeHasBeenSet; }
82 m_phoneNumberCountryCodeHasBeenSet = true;
83 m_phoneNumberCountryCode = value;
84 }
87 return *this;
88 }
90
92
95 inline PhoneNumberType GetPhoneNumberType() const { return m_phoneNumberType; }
96 inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; }
98 m_phoneNumberTypeHasBeenSet = true;
99 m_phoneNumberType = value;
100 }
102 SetPhoneNumberType(value);
103 return *this;
104 }
106
108
112 inline const Aws::String& GetPhoneNumberPrefix() const { return m_phoneNumberPrefix; }
113 inline bool PhoneNumberPrefixHasBeenSet() const { return m_phoneNumberPrefixHasBeenSet; }
114 template <typename PhoneNumberPrefixT = Aws::String>
115 void SetPhoneNumberPrefix(PhoneNumberPrefixT&& value) {
116 m_phoneNumberPrefixHasBeenSet = true;
117 m_phoneNumberPrefix = std::forward<PhoneNumberPrefixT>(value);
118 }
119 template <typename PhoneNumberPrefixT = Aws::String>
121 SetPhoneNumberPrefix(std::forward<PhoneNumberPrefixT>(value));
122 return *this;
123 }
125
127
130 inline int GetMaxResults() const { return m_maxResults; }
131 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
132 inline void SetMaxResults(int value) {
133 m_maxResultsHasBeenSet = true;
134 m_maxResults = value;
135 }
137 SetMaxResults(value);
138 return *this;
139 }
141
143
147 inline const Aws::String& GetNextToken() const { return m_nextToken; }
148 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
149 template <typename NextTokenT = Aws::String>
150 void SetNextToken(NextTokenT&& value) {
151 m_nextTokenHasBeenSet = true;
152 m_nextToken = std::forward<NextTokenT>(value);
153 }
154 template <typename NextTokenT = Aws::String>
156 SetNextToken(std::forward<NextTokenT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_targetArn;
162
163 Aws::String m_instanceId;
164
166
167 PhoneNumberType m_phoneNumberType{PhoneNumberType::NOT_SET};
168
169 Aws::String m_phoneNumberPrefix;
170
171 int m_maxResults{0};
172
173 Aws::String m_nextToken;
174 bool m_targetArnHasBeenSet = false;
175 bool m_instanceIdHasBeenSet = false;
176 bool m_phoneNumberCountryCodeHasBeenSet = false;
177 bool m_phoneNumberTypeHasBeenSet = false;
178 bool m_phoneNumberPrefixHasBeenSet = false;
179 bool m_maxResultsHasBeenSet = false;
180 bool m_nextTokenHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace Connect
185} // namespace Aws
SearchAvailablePhoneNumbersRequest & WithPhoneNumberPrefix(PhoneNumberPrefixT &&value)
SearchAvailablePhoneNumbersRequest & WithInstanceId(InstanceIdT &&value)
SearchAvailablePhoneNumbersRequest & WithPhoneNumberType(PhoneNumberType value)
AWS_CONNECT_API Aws::String SerializePayload() const override
SearchAvailablePhoneNumbersRequest & WithNextToken(NextTokenT &&value)
SearchAvailablePhoneNumbersRequest & WithPhoneNumberCountryCode(PhoneNumberCountryCode value)
SearchAvailablePhoneNumbersRequest & WithTargetArn(TargetArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String