AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SocialConnectionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
11#include <aws/partnercentral-marketing/model/Platform.h>
12#include <aws/partnercentral-marketing/model/SocialConnectionStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace PartnerCentralMarketing {
23namespace Model {
24
35 public:
36 AWS_PARTNERCENTRALMARKETING_API SocialConnectionSummary() = default;
37 AWS_PARTNERCENTRALMARKETING_API SocialConnectionSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_PARTNERCENTRALMARKETING_API SocialConnectionSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline Platform GetPlatform() const { return m_platform; }
64 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
65 inline void SetPlatform(Platform value) {
66 m_platformHasBeenSet = true;
67 m_platform = value;
68 }
70 SetPlatform(value);
71 return *this;
72 }
74
76
79 inline SocialConnectionStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(SocialConnectionStatus value) {
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetPageName() const { return m_pageName; }
97 inline bool PageNameHasBeenSet() const { return m_pageNameHasBeenSet; }
98 template <typename PageNameT = Aws::String>
99 void SetPageName(PageNameT&& value) {
100 m_pageNameHasBeenSet = true;
101 m_pageName = std::forward<PageNameT>(value);
102 }
103 template <typename PageNameT = Aws::String>
105 SetPageName(std::forward<PageNameT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetAccountName() const { return m_accountName; }
116 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
117 template <typename AccountNameT = Aws::String>
118 void SetAccountName(AccountNameT&& value) {
119 m_accountNameHasBeenSet = true;
120 m_accountName = std::forward<AccountNameT>(value);
121 }
122 template <typename AccountNameT = Aws::String>
124 SetAccountName(std::forward<AccountNameT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetConnectedAt() const { return m_connectedAt; }
134 inline bool ConnectedAtHasBeenSet() const { return m_connectedAtHasBeenSet; }
135 template <typename ConnectedAtT = Aws::Utils::DateTime>
136 void SetConnectedAt(ConnectedAtT&& value) {
137 m_connectedAtHasBeenSet = true;
138 m_connectedAt = std::forward<ConnectedAtT>(value);
139 }
140 template <typename ConnectedAtT = Aws::Utils::DateTime>
142 SetConnectedAt(std::forward<ConnectedAtT>(value));
143 return *this;
144 }
146
148
153 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
154 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
155 template <typename ExpiresAtT = Aws::Utils::DateTime>
156 void SetExpiresAt(ExpiresAtT&& value) {
157 m_expiresAtHasBeenSet = true;
158 m_expiresAt = std::forward<ExpiresAtT>(value);
159 }
160 template <typename ExpiresAtT = Aws::Utils::DateTime>
162 SetExpiresAt(std::forward<ExpiresAtT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_id;
168
169 Platform m_platform{Platform::NOT_SET};
170
172
173 Aws::String m_pageName;
174
175 Aws::String m_accountName;
176
177 Aws::Utils::DateTime m_connectedAt{};
178
179 Aws::Utils::DateTime m_expiresAt{};
180 bool m_idHasBeenSet = false;
181 bool m_platformHasBeenSet = false;
182 bool m_statusHasBeenSet = false;
183 bool m_pageNameHasBeenSet = false;
184 bool m_accountNameHasBeenSet = false;
185 bool m_connectedAtHasBeenSet = false;
186 bool m_expiresAtHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace PartnerCentralMarketing
191} // namespace Aws
AWS_PARTNERCENTRALMARKETING_API SocialConnectionSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SocialConnectionSummary & WithConnectedAt(ConnectedAtT &&value)
SocialConnectionSummary & WithAccountName(AccountNameT &&value)
AWS_PARTNERCENTRALMARKETING_API SocialConnectionSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SocialConnectionSummary & WithExpiresAt(ExpiresAtT &&value)
SocialConnectionSummary & WithStatus(SocialConnectionStatus value)
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_PARTNERCENTRALMARKETING_API SocialConnectionSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String