AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LinkedWhatsAppBusinessAccount.h
1
6#pragma once
7#include <aws/socialmessaging/SocialMessaging_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/socialmessaging/model/RegistrationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/socialmessaging/model/WhatsAppBusinessAccountEventDestination.h>
13#include <aws/socialmessaging/model/WhatsAppPhoneNumberSummary.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SocialMessaging
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccount() = default;
43 AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 LinkedWhatsAppBusinessAccount& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
63 inline const Aws::String& GetId() const { return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 template<typename IdT = Aws::String>
66 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
67 template<typename IdT = Aws::String>
68 LinkedWhatsAppBusinessAccount& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetWabaId() const { return m_wabaId; }
76 inline bool WabaIdHasBeenSet() const { return m_wabaIdHasBeenSet; }
77 template<typename WabaIdT = Aws::String>
78 void SetWabaId(WabaIdT&& value) { m_wabaIdHasBeenSet = true; m_wabaId = std::forward<WabaIdT>(value); }
79 template<typename WabaIdT = Aws::String>
80 LinkedWhatsAppBusinessAccount& WithWabaId(WabaIdT&& value) { SetWabaId(std::forward<WabaIdT>(value)); return *this;}
82
84
87 inline RegistrationStatus GetRegistrationStatus() const { return m_registrationStatus; }
88 inline bool RegistrationStatusHasBeenSet() const { return m_registrationStatusHasBeenSet; }
89 inline void SetRegistrationStatus(RegistrationStatus value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = value; }
92
94
97 inline const Aws::Utils::DateTime& GetLinkDate() const { return m_linkDate; }
98 inline bool LinkDateHasBeenSet() const { return m_linkDateHasBeenSet; }
99 template<typename LinkDateT = Aws::Utils::DateTime>
100 void SetLinkDate(LinkDateT&& value) { m_linkDateHasBeenSet = true; m_linkDate = std::forward<LinkDateT>(value); }
101 template<typename LinkDateT = Aws::Utils::DateTime>
102 LinkedWhatsAppBusinessAccount& WithLinkDate(LinkDateT&& value) { SetLinkDate(std::forward<LinkDateT>(value)); return *this;}
104
106
109 inline const Aws::String& GetWabaName() const { return m_wabaName; }
110 inline bool WabaNameHasBeenSet() const { return m_wabaNameHasBeenSet; }
111 template<typename WabaNameT = Aws::String>
112 void SetWabaName(WabaNameT&& value) { m_wabaNameHasBeenSet = true; m_wabaName = std::forward<WabaNameT>(value); }
113 template<typename WabaNameT = Aws::String>
114 LinkedWhatsAppBusinessAccount& WithWabaName(WabaNameT&& value) { SetWabaName(std::forward<WabaNameT>(value)); return *this;}
116
118
121 inline const Aws::Vector<WhatsAppBusinessAccountEventDestination>& GetEventDestinations() const { return m_eventDestinations; }
122 inline bool EventDestinationsHasBeenSet() const { return m_eventDestinationsHasBeenSet; }
123 template<typename EventDestinationsT = Aws::Vector<WhatsAppBusinessAccountEventDestination>>
124 void SetEventDestinations(EventDestinationsT&& value) { m_eventDestinationsHasBeenSet = true; m_eventDestinations = std::forward<EventDestinationsT>(value); }
125 template<typename EventDestinationsT = Aws::Vector<WhatsAppBusinessAccountEventDestination>>
126 LinkedWhatsAppBusinessAccount& WithEventDestinations(EventDestinationsT&& value) { SetEventDestinations(std::forward<EventDestinationsT>(value)); return *this;}
127 template<typename EventDestinationsT = WhatsAppBusinessAccountEventDestination>
128 LinkedWhatsAppBusinessAccount& AddEventDestinations(EventDestinationsT&& value) { m_eventDestinationsHasBeenSet = true; m_eventDestinations.emplace_back(std::forward<EventDestinationsT>(value)); return *this; }
130
132
135 inline const Aws::Vector<WhatsAppPhoneNumberSummary>& GetPhoneNumbers() const { return m_phoneNumbers; }
136 inline bool PhoneNumbersHasBeenSet() const { return m_phoneNumbersHasBeenSet; }
137 template<typename PhoneNumbersT = Aws::Vector<WhatsAppPhoneNumberSummary>>
138 void SetPhoneNumbers(PhoneNumbersT&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = std::forward<PhoneNumbersT>(value); }
139 template<typename PhoneNumbersT = Aws::Vector<WhatsAppPhoneNumberSummary>>
140 LinkedWhatsAppBusinessAccount& WithPhoneNumbers(PhoneNumbersT&& value) { SetPhoneNumbers(std::forward<PhoneNumbersT>(value)); return *this;}
141 template<typename PhoneNumbersT = WhatsAppPhoneNumberSummary>
142 LinkedWhatsAppBusinessAccount& AddPhoneNumbers(PhoneNumbersT&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.emplace_back(std::forward<PhoneNumbersT>(value)); return *this; }
144 private:
145
146 Aws::String m_arn;
147 bool m_arnHasBeenSet = false;
148
149 Aws::String m_id;
150 bool m_idHasBeenSet = false;
151
152 Aws::String m_wabaId;
153 bool m_wabaIdHasBeenSet = false;
154
156 bool m_registrationStatusHasBeenSet = false;
157
158 Aws::Utils::DateTime m_linkDate{};
159 bool m_linkDateHasBeenSet = false;
160
161 Aws::String m_wabaName;
162 bool m_wabaNameHasBeenSet = false;
163
165 bool m_eventDestinationsHasBeenSet = false;
166
168 bool m_phoneNumbersHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace SocialMessaging
173} // namespace Aws
LinkedWhatsAppBusinessAccount & WithWabaId(WabaIdT &&value)
LinkedWhatsAppBusinessAccount & AddPhoneNumbers(PhoneNumbersT &&value)
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccount(Aws::Utils::Json::JsonView jsonValue)
LinkedWhatsAppBusinessAccount & WithWabaName(WabaNameT &&value)
LinkedWhatsAppBusinessAccount & WithEventDestinations(EventDestinationsT &&value)
LinkedWhatsAppBusinessAccount & WithRegistrationStatus(RegistrationStatus value)
AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< WhatsAppBusinessAccountEventDestination > & GetEventDestinations() const
LinkedWhatsAppBusinessAccount & WithLinkDate(LinkDateT &&value)
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccount()=default
const Aws::Vector< WhatsAppPhoneNumberSummary > & GetPhoneNumbers() const
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
LinkedWhatsAppBusinessAccount & WithPhoneNumbers(PhoneNumbersT &&value)
LinkedWhatsAppBusinessAccount & AddEventDestinations(EventDestinationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue