AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
46 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
47 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
48 inline SearchAvailablePhoneNumbersRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
49 inline SearchAvailablePhoneNumbersRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
50 inline SearchAvailablePhoneNumbersRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
52
54
61 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
62 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
63 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
64 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
65 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
66 inline SearchAvailablePhoneNumbersRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
67 inline SearchAvailablePhoneNumbersRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
68 inline SearchAvailablePhoneNumbersRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
70
72
75 inline const PhoneNumberCountryCode& GetPhoneNumberCountryCode() const{ return m_phoneNumberCountryCode; }
76 inline bool PhoneNumberCountryCodeHasBeenSet() const { return m_phoneNumberCountryCodeHasBeenSet; }
77 inline void SetPhoneNumberCountryCode(const PhoneNumberCountryCode& value) { m_phoneNumberCountryCodeHasBeenSet = true; m_phoneNumberCountryCode = value; }
78 inline void SetPhoneNumberCountryCode(PhoneNumberCountryCode&& value) { m_phoneNumberCountryCodeHasBeenSet = true; m_phoneNumberCountryCode = std::move(value); }
82
84
87 inline const PhoneNumberType& GetPhoneNumberType() const{ return m_phoneNumberType; }
88 inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; }
89 inline void SetPhoneNumberType(const PhoneNumberType& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = value; }
90 inline void SetPhoneNumberType(PhoneNumberType&& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = std::move(value); }
94
96
100 inline const Aws::String& GetPhoneNumberPrefix() const{ return m_phoneNumberPrefix; }
101 inline bool PhoneNumberPrefixHasBeenSet() const { return m_phoneNumberPrefixHasBeenSet; }
102 inline void SetPhoneNumberPrefix(const Aws::String& value) { m_phoneNumberPrefixHasBeenSet = true; m_phoneNumberPrefix = value; }
103 inline void SetPhoneNumberPrefix(Aws::String&& value) { m_phoneNumberPrefixHasBeenSet = true; m_phoneNumberPrefix = std::move(value); }
104 inline void SetPhoneNumberPrefix(const char* value) { m_phoneNumberPrefixHasBeenSet = true; m_phoneNumberPrefix.assign(value); }
107 inline SearchAvailablePhoneNumbersRequest& WithPhoneNumberPrefix(const char* value) { SetPhoneNumberPrefix(value); return *this;}
109
111
114 inline int GetMaxResults() const{ return m_maxResults; }
115 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
116 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
117 inline SearchAvailablePhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
119
121
125 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
126 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
127 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
128 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
129 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
130 inline SearchAvailablePhoneNumbersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
131 inline SearchAvailablePhoneNumbersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
132 inline SearchAvailablePhoneNumbersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
134 private:
135
136 Aws::String m_targetArn;
137 bool m_targetArnHasBeenSet = false;
138
139 Aws::String m_instanceId;
140 bool m_instanceIdHasBeenSet = false;
141
142 PhoneNumberCountryCode m_phoneNumberCountryCode;
143 bool m_phoneNumberCountryCodeHasBeenSet = false;
144
145 PhoneNumberType m_phoneNumberType;
146 bool m_phoneNumberTypeHasBeenSet = false;
147
148 Aws::String m_phoneNumberPrefix;
149 bool m_phoneNumberPrefixHasBeenSet = false;
150
151 int m_maxResults;
152 bool m_maxResultsHasBeenSet = false;
153
154 Aws::String m_nextToken;
155 bool m_nextTokenHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Connect
160} // namespace Aws
SearchAvailablePhoneNumbersRequest & WithPhoneNumberType(const PhoneNumberType &value)
SearchAvailablePhoneNumbersRequest & WithTargetArn(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithNextToken(const char *value)
SearchAvailablePhoneNumbersRequest & WithInstanceId(const char *value)
SearchAvailablePhoneNumbersRequest & WithPhoneNumberPrefix(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithPhoneNumberPrefix(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithTargetArn(const char *value)
SearchAvailablePhoneNumbersRequest & WithInstanceId(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithNextToken(const Aws::String &value)
SearchAvailablePhoneNumbersRequest & WithPhoneNumberCountryCode(PhoneNumberCountryCode &&value)
SearchAvailablePhoneNumbersRequest & WithNextToken(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithInstanceId(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithTargetArn(Aws::String &&value)
SearchAvailablePhoneNumbersRequest & WithPhoneNumberPrefix(const char *value)
SearchAvailablePhoneNumbersRequest & WithPhoneNumberType(PhoneNumberType &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
SearchAvailablePhoneNumbersRequest & WithPhoneNumberCountryCode(const PhoneNumberCountryCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String