AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PhoneNumberSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/PhoneNumberCountryCode.h>
9#include <aws/connect/model/PhoneNumberType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
31 public:
32 AWS_CONNECT_API PhoneNumberSummary() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 PhoneNumberSummary& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 PhoneNumberSummary& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
78 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
79 template <typename PhoneNumberT = Aws::String>
80 void SetPhoneNumber(PhoneNumberT&& value) {
81 m_phoneNumberHasBeenSet = true;
82 m_phoneNumber = std::forward<PhoneNumberT>(value);
83 }
84 template <typename PhoneNumberT = Aws::String>
85 PhoneNumberSummary& WithPhoneNumber(PhoneNumberT&& value) {
86 SetPhoneNumber(std::forward<PhoneNumberT>(value));
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
111 inline PhoneNumberCountryCode GetPhoneNumberCountryCode() const { return m_phoneNumberCountryCode; }
112 inline bool PhoneNumberCountryCodeHasBeenSet() const { return m_phoneNumberCountryCodeHasBeenSet; }
114 m_phoneNumberCountryCodeHasBeenSet = true;
115 m_phoneNumberCountryCode = value;
116 }
119 return *this;
120 }
122 private:
123 Aws::String m_id;
124
125 Aws::String m_arn;
126
127 Aws::String m_phoneNumber;
128
129 PhoneNumberType m_phoneNumberType{PhoneNumberType::NOT_SET};
130
132 bool m_idHasBeenSet = false;
133 bool m_arnHasBeenSet = false;
134 bool m_phoneNumberHasBeenSet = false;
135 bool m_phoneNumberTypeHasBeenSet = false;
136 bool m_phoneNumberCountryCodeHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace Connect
141} // namespace Aws
PhoneNumberSummary & WithPhoneNumberType(PhoneNumberType value)
PhoneNumberCountryCode GetPhoneNumberCountryCode() const
AWS_CONNECT_API PhoneNumberSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PhoneNumberSummary & WithPhoneNumberCountryCode(PhoneNumberCountryCode value)
PhoneNumberSummary & WithId(IdT &&value)
AWS_CONNECT_API PhoneNumberSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API PhoneNumberSummary()=default
void SetPhoneNumberCountryCode(PhoneNumberCountryCode value)
void SetPhoneNumber(PhoneNumberT &&value)
const Aws::String & GetPhoneNumber() const
PhoneNumberSummary & WithArn(ArnT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPhoneNumberType(PhoneNumberType value)
PhoneNumberSummary & WithPhoneNumber(PhoneNumberT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue