AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LinkedWhatsAppBusinessAccountSummary.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 <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SocialMessaging
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccountSummary() = default;
42 AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 LinkedWhatsAppBusinessAccountSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
56
58
62 inline const Aws::String& GetId() const { return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 template<typename IdT = Aws::String>
65 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
66 template<typename IdT = Aws::String>
67 LinkedWhatsAppBusinessAccountSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetWabaId() const { return m_wabaId; }
75 inline bool WabaIdHasBeenSet() const { return m_wabaIdHasBeenSet; }
76 template<typename WabaIdT = Aws::String>
77 void SetWabaId(WabaIdT&& value) { m_wabaIdHasBeenSet = true; m_wabaId = std::forward<WabaIdT>(value); }
78 template<typename WabaIdT = Aws::String>
79 LinkedWhatsAppBusinessAccountSummary& WithWabaId(WabaIdT&& value) { SetWabaId(std::forward<WabaIdT>(value)); return *this;}
81
83
86 inline RegistrationStatus GetRegistrationStatus() const { return m_registrationStatus; }
87 inline bool RegistrationStatusHasBeenSet() const { return m_registrationStatusHasBeenSet; }
88 inline void SetRegistrationStatus(RegistrationStatus value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = value; }
91
93
96 inline const Aws::Utils::DateTime& GetLinkDate() const { return m_linkDate; }
97 inline bool LinkDateHasBeenSet() const { return m_linkDateHasBeenSet; }
98 template<typename LinkDateT = Aws::Utils::DateTime>
99 void SetLinkDate(LinkDateT&& value) { m_linkDateHasBeenSet = true; m_linkDate = std::forward<LinkDateT>(value); }
100 template<typename LinkDateT = Aws::Utils::DateTime>
101 LinkedWhatsAppBusinessAccountSummary& WithLinkDate(LinkDateT&& value) { SetLinkDate(std::forward<LinkDateT>(value)); return *this;}
103
105
108 inline const Aws::String& GetWabaName() const { return m_wabaName; }
109 inline bool WabaNameHasBeenSet() const { return m_wabaNameHasBeenSet; }
110 template<typename WabaNameT = Aws::String>
111 void SetWabaName(WabaNameT&& value) { m_wabaNameHasBeenSet = true; m_wabaName = std::forward<WabaNameT>(value); }
112 template<typename WabaNameT = Aws::String>
113 LinkedWhatsAppBusinessAccountSummary& WithWabaName(WabaNameT&& value) { SetWabaName(std::forward<WabaNameT>(value)); return *this;}
115
117
120 inline const Aws::Vector<WhatsAppBusinessAccountEventDestination>& GetEventDestinations() const { return m_eventDestinations; }
121 inline bool EventDestinationsHasBeenSet() const { return m_eventDestinationsHasBeenSet; }
122 template<typename EventDestinationsT = Aws::Vector<WhatsAppBusinessAccountEventDestination>>
123 void SetEventDestinations(EventDestinationsT&& value) { m_eventDestinationsHasBeenSet = true; m_eventDestinations = std::forward<EventDestinationsT>(value); }
124 template<typename EventDestinationsT = Aws::Vector<WhatsAppBusinessAccountEventDestination>>
125 LinkedWhatsAppBusinessAccountSummary& WithEventDestinations(EventDestinationsT&& value) { SetEventDestinations(std::forward<EventDestinationsT>(value)); return *this;}
126 template<typename EventDestinationsT = WhatsAppBusinessAccountEventDestination>
127 LinkedWhatsAppBusinessAccountSummary& AddEventDestinations(EventDestinationsT&& value) { m_eventDestinationsHasBeenSet = true; m_eventDestinations.emplace_back(std::forward<EventDestinationsT>(value)); return *this; }
129 private:
130
131 Aws::String m_arn;
132 bool m_arnHasBeenSet = false;
133
134 Aws::String m_id;
135 bool m_idHasBeenSet = false;
136
137 Aws::String m_wabaId;
138 bool m_wabaIdHasBeenSet = false;
139
141 bool m_registrationStatusHasBeenSet = false;
142
143 Aws::Utils::DateTime m_linkDate{};
144 bool m_linkDateHasBeenSet = false;
145
146 Aws::String m_wabaName;
147 bool m_wabaNameHasBeenSet = false;
148
150 bool m_eventDestinationsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace SocialMessaging
155} // namespace Aws
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccountSummary()=default
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccountSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccountSummary(Aws::Utils::Json::JsonView jsonValue)
LinkedWhatsAppBusinessAccountSummary & WithWabaName(WabaNameT &&value)
LinkedWhatsAppBusinessAccountSummary & WithLinkDate(LinkDateT &&value)
LinkedWhatsAppBusinessAccountSummary & WithEventDestinations(EventDestinationsT &&value)
const Aws::Vector< WhatsAppBusinessAccountEventDestination > & GetEventDestinations() const
AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
LinkedWhatsAppBusinessAccountSummary & AddEventDestinations(EventDestinationsT &&value)
LinkedWhatsAppBusinessAccountSummary & WithRegistrationStatus(RegistrationStatus 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