AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline LinkedWhatsAppBusinessAccount& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline LinkedWhatsAppBusinessAccount& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline LinkedWhatsAppBusinessAccount& WithArn(const char* value) { SetArn(value); return *this;}
59
61
65 inline const Aws::String& GetId() const{ return m_id; }
66 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
67 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
68 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
69 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
70 inline LinkedWhatsAppBusinessAccount& WithId(const Aws::String& value) { SetId(value); return *this;}
71 inline LinkedWhatsAppBusinessAccount& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
72 inline LinkedWhatsAppBusinessAccount& WithId(const char* value) { SetId(value); return *this;}
74
76
79 inline const Aws::String& GetWabaId() const{ return m_wabaId; }
80 inline bool WabaIdHasBeenSet() const { return m_wabaIdHasBeenSet; }
81 inline void SetWabaId(const Aws::String& value) { m_wabaIdHasBeenSet = true; m_wabaId = value; }
82 inline void SetWabaId(Aws::String&& value) { m_wabaIdHasBeenSet = true; m_wabaId = std::move(value); }
83 inline void SetWabaId(const char* value) { m_wabaIdHasBeenSet = true; m_wabaId.assign(value); }
84 inline LinkedWhatsAppBusinessAccount& WithWabaId(const Aws::String& value) { SetWabaId(value); return *this;}
85 inline LinkedWhatsAppBusinessAccount& WithWabaId(Aws::String&& value) { SetWabaId(std::move(value)); return *this;}
86 inline LinkedWhatsAppBusinessAccount& WithWabaId(const char* value) { SetWabaId(value); return *this;}
88
90
93 inline const RegistrationStatus& GetRegistrationStatus() const{ return m_registrationStatus; }
94 inline bool RegistrationStatusHasBeenSet() const { return m_registrationStatusHasBeenSet; }
95 inline void SetRegistrationStatus(const RegistrationStatus& value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = value; }
96 inline void SetRegistrationStatus(RegistrationStatus&& value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = std::move(value); }
100
102
105 inline const Aws::Utils::DateTime& GetLinkDate() const{ return m_linkDate; }
106 inline bool LinkDateHasBeenSet() const { return m_linkDateHasBeenSet; }
107 inline void SetLinkDate(const Aws::Utils::DateTime& value) { m_linkDateHasBeenSet = true; m_linkDate = value; }
108 inline void SetLinkDate(Aws::Utils::DateTime&& value) { m_linkDateHasBeenSet = true; m_linkDate = std::move(value); }
109 inline LinkedWhatsAppBusinessAccount& WithLinkDate(const Aws::Utils::DateTime& value) { SetLinkDate(value); return *this;}
110 inline LinkedWhatsAppBusinessAccount& WithLinkDate(Aws::Utils::DateTime&& value) { SetLinkDate(std::move(value)); return *this;}
112
114
117 inline const Aws::String& GetWabaName() const{ return m_wabaName; }
118 inline bool WabaNameHasBeenSet() const { return m_wabaNameHasBeenSet; }
119 inline void SetWabaName(const Aws::String& value) { m_wabaNameHasBeenSet = true; m_wabaName = value; }
120 inline void SetWabaName(Aws::String&& value) { m_wabaNameHasBeenSet = true; m_wabaName = std::move(value); }
121 inline void SetWabaName(const char* value) { m_wabaNameHasBeenSet = true; m_wabaName.assign(value); }
122 inline LinkedWhatsAppBusinessAccount& WithWabaName(const Aws::String& value) { SetWabaName(value); return *this;}
123 inline LinkedWhatsAppBusinessAccount& WithWabaName(Aws::String&& value) { SetWabaName(std::move(value)); return *this;}
124 inline LinkedWhatsAppBusinessAccount& WithWabaName(const char* value) { SetWabaName(value); return *this;}
126
128
131 inline const Aws::Vector<WhatsAppBusinessAccountEventDestination>& GetEventDestinations() const{ return m_eventDestinations; }
132 inline bool EventDestinationsHasBeenSet() const { return m_eventDestinationsHasBeenSet; }
133 inline void SetEventDestinations(const Aws::Vector<WhatsAppBusinessAccountEventDestination>& value) { m_eventDestinationsHasBeenSet = true; m_eventDestinations = value; }
134 inline void SetEventDestinations(Aws::Vector<WhatsAppBusinessAccountEventDestination>&& value) { m_eventDestinationsHasBeenSet = true; m_eventDestinations = std::move(value); }
137 inline LinkedWhatsAppBusinessAccount& AddEventDestinations(const WhatsAppBusinessAccountEventDestination& value) { m_eventDestinationsHasBeenSet = true; m_eventDestinations.push_back(value); return *this; }
138 inline LinkedWhatsAppBusinessAccount& AddEventDestinations(WhatsAppBusinessAccountEventDestination&& value) { m_eventDestinationsHasBeenSet = true; m_eventDestinations.push_back(std::move(value)); return *this; }
140
142
145 inline const Aws::Vector<WhatsAppPhoneNumberSummary>& GetPhoneNumbers() const{ return m_phoneNumbers; }
146 inline bool PhoneNumbersHasBeenSet() const { return m_phoneNumbersHasBeenSet; }
147 inline void SetPhoneNumbers(const Aws::Vector<WhatsAppPhoneNumberSummary>& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = value; }
148 inline void SetPhoneNumbers(Aws::Vector<WhatsAppPhoneNumberSummary>&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers = std::move(value); }
151 inline LinkedWhatsAppBusinessAccount& AddPhoneNumbers(const WhatsAppPhoneNumberSummary& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.push_back(value); return *this; }
152 inline LinkedWhatsAppBusinessAccount& AddPhoneNumbers(WhatsAppPhoneNumberSummary&& value) { m_phoneNumbersHasBeenSet = true; m_phoneNumbers.push_back(std::move(value)); return *this; }
154 private:
155
156 Aws::String m_arn;
157 bool m_arnHasBeenSet = false;
158
159 Aws::String m_id;
160 bool m_idHasBeenSet = false;
161
162 Aws::String m_wabaId;
163 bool m_wabaIdHasBeenSet = false;
164
165 RegistrationStatus m_registrationStatus;
166 bool m_registrationStatusHasBeenSet = false;
167
168 Aws::Utils::DateTime m_linkDate;
169 bool m_linkDateHasBeenSet = false;
170
171 Aws::String m_wabaName;
172 bool m_wabaNameHasBeenSet = false;
173
175 bool m_eventDestinationsHasBeenSet = false;
176
178 bool m_phoneNumbersHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace SocialMessaging
183} // namespace Aws
LinkedWhatsAppBusinessAccount & WithArn(const char *value)
void SetEventDestinations(Aws::Vector< WhatsAppBusinessAccountEventDestination > &&value)
LinkedWhatsAppBusinessAccount & AddPhoneNumbers(const WhatsAppPhoneNumberSummary &value)
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccount(Aws::Utils::Json::JsonView jsonValue)
void SetPhoneNumbers(Aws::Vector< WhatsAppPhoneNumberSummary > &&value)
LinkedWhatsAppBusinessAccount & AddEventDestinations(WhatsAppBusinessAccountEventDestination &&value)
void SetPhoneNumbers(const Aws::Vector< WhatsAppPhoneNumberSummary > &value)
LinkedWhatsAppBusinessAccount & WithWabaId(const Aws::String &value)
LinkedWhatsAppBusinessAccount & WithRegistrationStatus(RegistrationStatus &&value)
LinkedWhatsAppBusinessAccount & WithWabaId(const char *value)
LinkedWhatsAppBusinessAccount & WithArn(const Aws::String &value)
LinkedWhatsAppBusinessAccount & WithWabaId(Aws::String &&value)
LinkedWhatsAppBusinessAccount & WithLinkDate(Aws::Utils::DateTime &&value)
void SetEventDestinations(const Aws::Vector< WhatsAppBusinessAccountEventDestination > &value)
LinkedWhatsAppBusinessAccount & WithPhoneNumbers(Aws::Vector< WhatsAppPhoneNumberSummary > &&value)
LinkedWhatsAppBusinessAccount & WithId(Aws::String &&value)
LinkedWhatsAppBusinessAccount & WithWabaName(Aws::String &&value)
AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
LinkedWhatsAppBusinessAccount & WithId(const Aws::String &value)
const Aws::Vector< WhatsAppBusinessAccountEventDestination > & GetEventDestinations() const
LinkedWhatsAppBusinessAccount & WithArn(Aws::String &&value)
LinkedWhatsAppBusinessAccount & WithWabaName(const Aws::String &value)
LinkedWhatsAppBusinessAccount & WithEventDestinations(const Aws::Vector< WhatsAppBusinessAccountEventDestination > &value)
LinkedWhatsAppBusinessAccount & WithEventDestinations(Aws::Vector< WhatsAppBusinessAccountEventDestination > &&value)
LinkedWhatsAppBusinessAccount & WithId(const char *value)
const Aws::Vector< WhatsAppPhoneNumberSummary > & GetPhoneNumbers() const
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
LinkedWhatsAppBusinessAccount & AddEventDestinations(const WhatsAppBusinessAccountEventDestination &value)
LinkedWhatsAppBusinessAccount & WithPhoneNumbers(const Aws::Vector< WhatsAppPhoneNumberSummary > &value)
LinkedWhatsAppBusinessAccount & AddPhoneNumbers(WhatsAppPhoneNumberSummary &&value)
LinkedWhatsAppBusinessAccount & WithRegistrationStatus(const RegistrationStatus &value)
LinkedWhatsAppBusinessAccount & WithWabaName(const char *value)
LinkedWhatsAppBusinessAccount & WithLinkDate(const Aws::Utils::DateTime &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