AWS SDK for C++

AWS SDK for C++ Version 1.11.555

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
SearchAvailablePhoneNumbersRequest.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/connect/model/PhoneNumberCountryCode.h>
11#include <aws/connect/model/PhoneNumberType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECT_API SearchAvailablePhoneNumbersRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SearchAvailablePhoneNumbers"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
44 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
45 template<typename TargetArnT = Aws::String>
46 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
47 template<typename TargetArnT = Aws::String>
48 SearchAvailablePhoneNumbersRequest& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
50
52
59 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
60 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
61 template<typename InstanceIdT = Aws::String>
62 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
63 template<typename InstanceIdT = Aws::String>
64 SearchAvailablePhoneNumbersRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
66
68
71 inline PhoneNumberCountryCode GetPhoneNumberCountryCode() const { return m_phoneNumberCountryCode; }
72 inline bool PhoneNumberCountryCodeHasBeenSet() const { return m_phoneNumberCountryCodeHasBeenSet; }
73 inline void SetPhoneNumberCountryCode(PhoneNumberCountryCode value) { m_phoneNumberCountryCodeHasBeenSet = true; m_phoneNumberCountryCode = value; }
76
78
81 inline PhoneNumberType GetPhoneNumberType() const { return m_phoneNumberType; }
82 inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; }
83 inline void SetPhoneNumberType(PhoneNumberType value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = value; }
86
88
92 inline const Aws::String& GetPhoneNumberPrefix() const { return m_phoneNumberPrefix; }
93 inline bool PhoneNumberPrefixHasBeenSet() const { return m_phoneNumberPrefixHasBeenSet; }
94 template<typename PhoneNumberPrefixT = Aws::String>
95 void SetPhoneNumberPrefix(PhoneNumberPrefixT&& value) { m_phoneNumberPrefixHasBeenSet = true; m_phoneNumberPrefix = std::forward<PhoneNumberPrefixT>(value); }
96 template<typename PhoneNumberPrefixT = Aws::String>
97 SearchAvailablePhoneNumbersRequest& WithPhoneNumberPrefix(PhoneNumberPrefixT&& value) { SetPhoneNumberPrefix(std::forward<PhoneNumberPrefixT>(value)); return *this;}
99
101
104 inline int GetMaxResults() const { return m_maxResults; }
105 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
106 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
107 inline SearchAvailablePhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
109
111
115 inline const Aws::String& GetNextToken() const { return m_nextToken; }
116 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
117 template<typename NextTokenT = Aws::String>
118 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
119 template<typename NextTokenT = Aws::String>
120 SearchAvailablePhoneNumbersRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
122 private:
123
124 Aws::String m_targetArn;
125 bool m_targetArnHasBeenSet = false;
126
127 Aws::String m_instanceId;
128 bool m_instanceIdHasBeenSet = false;
129
131 bool m_phoneNumberCountryCodeHasBeenSet = false;
132
133 PhoneNumberType m_phoneNumberType{PhoneNumberType::NOT_SET};
134 bool m_phoneNumberTypeHasBeenSet = false;
135
136 Aws::String m_phoneNumberPrefix;
137 bool m_phoneNumberPrefixHasBeenSet = false;
138
139 int m_maxResults{0};
140 bool m_maxResultsHasBeenSet = false;
141
142 Aws::String m_nextToken;
143 bool m_nextTokenHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Connect
148} // 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