AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClaimedPhoneNumberSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/PhoneNumberCountryCode.h>
10#include <aws/connect/model/PhoneNumberType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/connect/model/PhoneNumberStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CONNECT_API ClaimedPhoneNumberSummary();
42 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetPhoneNumberId() const{ return m_phoneNumberId; }
50 inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; }
51 inline void SetPhoneNumberId(const Aws::String& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = value; }
52 inline void SetPhoneNumberId(Aws::String&& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = std::move(value); }
53 inline void SetPhoneNumberId(const char* value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId.assign(value); }
54 inline ClaimedPhoneNumberSummary& WithPhoneNumberId(const Aws::String& value) { SetPhoneNumberId(value); return *this;}
55 inline ClaimedPhoneNumberSummary& WithPhoneNumberId(Aws::String&& value) { SetPhoneNumberId(std::move(value)); return *this;}
56 inline ClaimedPhoneNumberSummary& WithPhoneNumberId(const char* value) { SetPhoneNumberId(value); return *this;}
58
60
63 inline const Aws::String& GetPhoneNumberArn() const{ return m_phoneNumberArn; }
64 inline bool PhoneNumberArnHasBeenSet() const { return m_phoneNumberArnHasBeenSet; }
65 inline void SetPhoneNumberArn(const Aws::String& value) { m_phoneNumberArnHasBeenSet = true; m_phoneNumberArn = value; }
66 inline void SetPhoneNumberArn(Aws::String&& value) { m_phoneNumberArnHasBeenSet = true; m_phoneNumberArn = std::move(value); }
67 inline void SetPhoneNumberArn(const char* value) { m_phoneNumberArnHasBeenSet = true; m_phoneNumberArn.assign(value); }
68 inline ClaimedPhoneNumberSummary& WithPhoneNumberArn(const Aws::String& value) { SetPhoneNumberArn(value); return *this;}
69 inline ClaimedPhoneNumberSummary& WithPhoneNumberArn(Aws::String&& value) { SetPhoneNumberArn(std::move(value)); return *this;}
70 inline ClaimedPhoneNumberSummary& WithPhoneNumberArn(const char* value) { SetPhoneNumberArn(value); return *this;}
72
74
78 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
79 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
80 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
81 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
82 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
83 inline ClaimedPhoneNumberSummary& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
84 inline ClaimedPhoneNumberSummary& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
85 inline ClaimedPhoneNumberSummary& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
87
89
92 inline const PhoneNumberCountryCode& GetPhoneNumberCountryCode() const{ return m_phoneNumberCountryCode; }
93 inline bool PhoneNumberCountryCodeHasBeenSet() const { return m_phoneNumberCountryCodeHasBeenSet; }
94 inline void SetPhoneNumberCountryCode(const PhoneNumberCountryCode& value) { m_phoneNumberCountryCodeHasBeenSet = true; m_phoneNumberCountryCode = value; }
95 inline void SetPhoneNumberCountryCode(PhoneNumberCountryCode&& value) { m_phoneNumberCountryCodeHasBeenSet = true; m_phoneNumberCountryCode = std::move(value); }
99
101
104 inline const PhoneNumberType& GetPhoneNumberType() const{ return m_phoneNumberType; }
105 inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; }
106 inline void SetPhoneNumberType(const PhoneNumberType& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = value; }
107 inline void SetPhoneNumberType(PhoneNumberType&& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = std::move(value); }
109 inline ClaimedPhoneNumberSummary& WithPhoneNumberType(PhoneNumberType&& value) { SetPhoneNumberType(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetPhoneNumberDescription() const{ return m_phoneNumberDescription; }
117 inline bool PhoneNumberDescriptionHasBeenSet() const { return m_phoneNumberDescriptionHasBeenSet; }
118 inline void SetPhoneNumberDescription(const Aws::String& value) { m_phoneNumberDescriptionHasBeenSet = true; m_phoneNumberDescription = value; }
119 inline void SetPhoneNumberDescription(Aws::String&& value) { m_phoneNumberDescriptionHasBeenSet = true; m_phoneNumberDescription = std::move(value); }
120 inline void SetPhoneNumberDescription(const char* value) { m_phoneNumberDescriptionHasBeenSet = true; m_phoneNumberDescription.assign(value); }
123 inline ClaimedPhoneNumberSummary& WithPhoneNumberDescription(const char* value) { SetPhoneNumberDescription(value); return *this;}
125
127
131 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
132 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
133 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
134 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
135 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
136 inline ClaimedPhoneNumberSummary& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
137 inline ClaimedPhoneNumberSummary& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
138 inline ClaimedPhoneNumberSummary& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
140
142
148 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
149 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
150 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
151 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
152 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
153 inline ClaimedPhoneNumberSummary& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
154 inline ClaimedPhoneNumberSummary& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
155 inline ClaimedPhoneNumberSummary& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
157
159
163 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
164 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
166 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
168 inline ClaimedPhoneNumberSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
169 inline ClaimedPhoneNumberSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
170 inline ClaimedPhoneNumberSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
171 inline ClaimedPhoneNumberSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
172 inline ClaimedPhoneNumberSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
173 inline ClaimedPhoneNumberSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
174 inline ClaimedPhoneNumberSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
175 inline ClaimedPhoneNumberSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
177
179
207 inline const PhoneNumberStatus& GetPhoneNumberStatus() const{ return m_phoneNumberStatus; }
208 inline bool PhoneNumberStatusHasBeenSet() const { return m_phoneNumberStatusHasBeenSet; }
209 inline void SetPhoneNumberStatus(const PhoneNumberStatus& value) { m_phoneNumberStatusHasBeenSet = true; m_phoneNumberStatus = value; }
210 inline void SetPhoneNumberStatus(PhoneNumberStatus&& value) { m_phoneNumberStatusHasBeenSet = true; m_phoneNumberStatus = std::move(value); }
214
216
221 inline const Aws::String& GetSourcePhoneNumberArn() const{ return m_sourcePhoneNumberArn; }
222 inline bool SourcePhoneNumberArnHasBeenSet() const { return m_sourcePhoneNumberArnHasBeenSet; }
223 inline void SetSourcePhoneNumberArn(const Aws::String& value) { m_sourcePhoneNumberArnHasBeenSet = true; m_sourcePhoneNumberArn = value; }
224 inline void SetSourcePhoneNumberArn(Aws::String&& value) { m_sourcePhoneNumberArnHasBeenSet = true; m_sourcePhoneNumberArn = std::move(value); }
225 inline void SetSourcePhoneNumberArn(const char* value) { m_sourcePhoneNumberArnHasBeenSet = true; m_sourcePhoneNumberArn.assign(value); }
228 inline ClaimedPhoneNumberSummary& WithSourcePhoneNumberArn(const char* value) { SetSourcePhoneNumberArn(value); return *this;}
230 private:
231
232 Aws::String m_phoneNumberId;
233 bool m_phoneNumberIdHasBeenSet = false;
234
235 Aws::String m_phoneNumberArn;
236 bool m_phoneNumberArnHasBeenSet = false;
237
238 Aws::String m_phoneNumber;
239 bool m_phoneNumberHasBeenSet = false;
240
241 PhoneNumberCountryCode m_phoneNumberCountryCode;
242 bool m_phoneNumberCountryCodeHasBeenSet = false;
243
244 PhoneNumberType m_phoneNumberType;
245 bool m_phoneNumberTypeHasBeenSet = false;
246
247 Aws::String m_phoneNumberDescription;
248 bool m_phoneNumberDescriptionHasBeenSet = false;
249
250 Aws::String m_targetArn;
251 bool m_targetArnHasBeenSet = false;
252
253 Aws::String m_instanceId;
254 bool m_instanceIdHasBeenSet = false;
255
257 bool m_tagsHasBeenSet = false;
258
259 PhoneNumberStatus m_phoneNumberStatus;
260 bool m_phoneNumberStatusHasBeenSet = false;
261
262 Aws::String m_sourcePhoneNumberArn;
263 bool m_sourcePhoneNumberArnHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace Connect
268} // namespace Aws
ClaimedPhoneNumberSummary & WithInstanceId(const char *value)
ClaimedPhoneNumberSummary & WithPhoneNumberCountryCode(PhoneNumberCountryCode &&value)
const PhoneNumberCountryCode & GetPhoneNumberCountryCode() const
ClaimedPhoneNumberSummary & WithPhoneNumberCountryCode(const PhoneNumberCountryCode &value)
ClaimedPhoneNumberSummary & WithPhoneNumberId(Aws::String &&value)
ClaimedPhoneNumberSummary & WithPhoneNumberDescription(const char *value)
void SetPhoneNumberStatus(const PhoneNumberStatus &value)
AWS_CONNECT_API ClaimedPhoneNumberSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ClaimedPhoneNumberSummary & WithPhoneNumber(const Aws::String &value)
void SetPhoneNumberCountryCode(const PhoneNumberCountryCode &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ClaimedPhoneNumberSummary & WithTargetArn(const char *value)
ClaimedPhoneNumberSummary & WithSourcePhoneNumberArn(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ClaimedPhoneNumberSummary & WithPhoneNumberStatus(const PhoneNumberStatus &value)
ClaimedPhoneNumberSummary & WithPhoneNumber(Aws::String &&value)
ClaimedPhoneNumberSummary & AddTags(const char *key, const char *value)
ClaimedPhoneNumberSummary & AddTags(Aws::String &&key, const Aws::String &value)
ClaimedPhoneNumberSummary & AddTags(const Aws::String &key, Aws::String &&value)
ClaimedPhoneNumberSummary & WithPhoneNumberId(const char *value)
ClaimedPhoneNumberSummary & WithTargetArn(const Aws::String &value)
ClaimedPhoneNumberSummary & AddTags(Aws::String &&key, Aws::String &&value)
ClaimedPhoneNumberSummary & WithTargetArn(Aws::String &&value)
ClaimedPhoneNumberSummary & WithSourcePhoneNumberArn(const Aws::String &value)
ClaimedPhoneNumberSummary & WithPhoneNumberType(PhoneNumberType &&value)
ClaimedPhoneNumberSummary & AddTags(const Aws::String &key, const Aws::String &value)
ClaimedPhoneNumberSummary & WithPhoneNumber(const char *value)
ClaimedPhoneNumberSummary & WithPhoneNumberArn(const char *value)
ClaimedPhoneNumberSummary & AddTags(const char *key, Aws::String &&value)
AWS_CONNECT_API ClaimedPhoneNumberSummary(Aws::Utils::Json::JsonView jsonValue)
ClaimedPhoneNumberSummary & WithPhoneNumberId(const Aws::String &value)
ClaimedPhoneNumberSummary & WithPhoneNumberArn(Aws::String &&value)
ClaimedPhoneNumberSummary & WithPhoneNumberType(const PhoneNumberType &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ClaimedPhoneNumberSummary & WithPhoneNumberArn(const Aws::String &value)
ClaimedPhoneNumberSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ClaimedPhoneNumberSummary & WithPhoneNumberDescription(Aws::String &&value)
ClaimedPhoneNumberSummary & WithInstanceId(const Aws::String &value)
ClaimedPhoneNumberSummary & WithPhoneNumberStatus(PhoneNumberStatus &&value)
void SetPhoneNumberCountryCode(PhoneNumberCountryCode &&value)
ClaimedPhoneNumberSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ClaimedPhoneNumberSummary & WithPhoneNumberDescription(const Aws::String &value)
ClaimedPhoneNumberSummary & WithInstanceId(Aws::String &&value)
ClaimedPhoneNumberSummary & AddTags(Aws::String &&key, const char *value)
ClaimedPhoneNumberSummary & WithSourcePhoneNumberArn(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue