AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
GCMChannelResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint {
20namespace Model {
21
31 public:
32 AWS_PINPOINT_API GCMChannelResponse() = default;
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 template <typename ApplicationIdT = Aws::String>
45 void SetApplicationId(ApplicationIdT&& value) {
46 m_applicationIdHasBeenSet = true;
47 m_applicationId = std::forward<ApplicationIdT>(value);
48 }
49 template <typename ApplicationIdT = Aws::String>
50 GCMChannelResponse& WithApplicationId(ApplicationIdT&& value) {
51 SetApplicationId(std::forward<ApplicationIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
61 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
62 template <typename CreationDateT = Aws::String>
63 void SetCreationDate(CreationDateT&& value) {
64 m_creationDateHasBeenSet = true;
65 m_creationDate = std::forward<CreationDateT>(value);
66 }
67 template <typename CreationDateT = Aws::String>
68 GCMChannelResponse& WithCreationDate(CreationDateT&& value) {
69 SetCreationDate(std::forward<CreationDateT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetCredential() const { return m_credential; }
80 inline bool CredentialHasBeenSet() const { return m_credentialHasBeenSet; }
81 template <typename CredentialT = Aws::String>
82 void SetCredential(CredentialT&& value) {
83 m_credentialHasBeenSet = true;
84 m_credential = std::forward<CredentialT>(value);
85 }
86 template <typename CredentialT = Aws::String>
87 GCMChannelResponse& WithCredential(CredentialT&& value) {
88 SetCredential(std::forward<CredentialT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetDefaultAuthenticationMethod() const { return m_defaultAuthenticationMethod; }
99 inline bool DefaultAuthenticationMethodHasBeenSet() const { return m_defaultAuthenticationMethodHasBeenSet; }
100 template <typename DefaultAuthenticationMethodT = Aws::String>
101 void SetDefaultAuthenticationMethod(DefaultAuthenticationMethodT&& value) {
102 m_defaultAuthenticationMethodHasBeenSet = true;
103 m_defaultAuthenticationMethod = std::forward<DefaultAuthenticationMethodT>(value);
104 }
105 template <typename DefaultAuthenticationMethodT = Aws::String>
106 GCMChannelResponse& WithDefaultAuthenticationMethod(DefaultAuthenticationMethodT&& value) {
107 SetDefaultAuthenticationMethod(std::forward<DefaultAuthenticationMethodT>(value));
108 return *this;
109 }
111
113
116 inline bool GetEnabled() const { return m_enabled; }
117 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
118 inline void SetEnabled(bool value) {
119 m_enabledHasBeenSet = true;
120 m_enabled = value;
121 }
122 inline GCMChannelResponse& WithEnabled(bool value) {
123 SetEnabled(value);
124 return *this;
125 }
127
129
132 inline bool GetHasCredential() const { return m_hasCredential; }
133 inline bool HasCredentialHasBeenSet() const { return m_hasCredentialHasBeenSet; }
134 inline void SetHasCredential(bool value) {
135 m_hasCredentialHasBeenSet = true;
136 m_hasCredential = value;
137 }
139 SetHasCredential(value);
140 return *this;
141 }
143
145
149 inline bool GetHasFcmServiceCredentials() const { return m_hasFcmServiceCredentials; }
150 inline bool HasFcmServiceCredentialsHasBeenSet() const { return m_hasFcmServiceCredentialsHasBeenSet; }
151 inline void SetHasFcmServiceCredentials(bool value) {
152 m_hasFcmServiceCredentialsHasBeenSet = true;
153 m_hasFcmServiceCredentials = value;
154 }
157 return *this;
158 }
160
162
166 inline const Aws::String& GetId() const { return m_id; }
167 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
168 template <typename IdT = Aws::String>
169 void SetId(IdT&& value) {
170 m_idHasBeenSet = true;
171 m_id = std::forward<IdT>(value);
172 }
173 template <typename IdT = Aws::String>
175 SetId(std::forward<IdT>(value));
176 return *this;
177 }
179
181
184 inline bool GetIsArchived() const { return m_isArchived; }
185 inline bool IsArchivedHasBeenSet() const { return m_isArchivedHasBeenSet; }
186 inline void SetIsArchived(bool value) {
187 m_isArchivedHasBeenSet = true;
188 m_isArchived = value;
189 }
190 inline GCMChannelResponse& WithIsArchived(bool value) {
191 SetIsArchived(value);
192 return *this;
193 }
195
197
200 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
201 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
202 template <typename LastModifiedByT = Aws::String>
203 void SetLastModifiedBy(LastModifiedByT&& value) {
204 m_lastModifiedByHasBeenSet = true;
205 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
206 }
207 template <typename LastModifiedByT = Aws::String>
208 GCMChannelResponse& WithLastModifiedBy(LastModifiedByT&& value) {
209 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
219 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
220 template <typename LastModifiedDateT = Aws::String>
221 void SetLastModifiedDate(LastModifiedDateT&& value) {
222 m_lastModifiedDateHasBeenSet = true;
223 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
224 }
225 template <typename LastModifiedDateT = Aws::String>
226 GCMChannelResponse& WithLastModifiedDate(LastModifiedDateT&& value) {
227 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
228 return *this;
229 }
231
233
237 inline const Aws::String& GetPlatform() const { return m_platform; }
238 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
239 template <typename PlatformT = Aws::String>
240 void SetPlatform(PlatformT&& value) {
241 m_platformHasBeenSet = true;
242 m_platform = std::forward<PlatformT>(value);
243 }
244 template <typename PlatformT = Aws::String>
245 GCMChannelResponse& WithPlatform(PlatformT&& value) {
246 SetPlatform(std::forward<PlatformT>(value));
247 return *this;
248 }
250
252
255 inline int GetVersion() const { return m_version; }
256 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
257 inline void SetVersion(int value) {
258 m_versionHasBeenSet = true;
259 m_version = value;
260 }
261 inline GCMChannelResponse& WithVersion(int value) {
262 SetVersion(value);
263 return *this;
264 }
266 private:
267 Aws::String m_applicationId;
268 bool m_applicationIdHasBeenSet = false;
269
270 Aws::String m_creationDate;
271 bool m_creationDateHasBeenSet = false;
272
273 Aws::String m_credential;
274 bool m_credentialHasBeenSet = false;
275
276 Aws::String m_defaultAuthenticationMethod;
277 bool m_defaultAuthenticationMethodHasBeenSet = false;
278
279 bool m_enabled{false};
280 bool m_enabledHasBeenSet = false;
281
282 bool m_hasCredential{false};
283 bool m_hasCredentialHasBeenSet = false;
284
285 bool m_hasFcmServiceCredentials{false};
286 bool m_hasFcmServiceCredentialsHasBeenSet = false;
287
288 Aws::String m_id;
289 bool m_idHasBeenSet = false;
290
291 bool m_isArchived{false};
292 bool m_isArchivedHasBeenSet = false;
293
294 Aws::String m_lastModifiedBy;
295 bool m_lastModifiedByHasBeenSet = false;
296
297 Aws::String m_lastModifiedDate;
298 bool m_lastModifiedDateHasBeenSet = false;
299
300 Aws::String m_platform;
301 bool m_platformHasBeenSet = false;
302
303 int m_version{0};
304 bool m_versionHasBeenSet = false;
305};
306
307} // namespace Model
308} // namespace Pinpoint
309} // namespace Aws
const Aws::String & GetLastModifiedBy() const
const Aws::String & GetApplicationId() const
const Aws::String & GetCredential() const
const Aws::String & GetLastModifiedDate() const
GCMChannelResponse & WithApplicationId(ApplicationIdT &&value)
void SetDefaultAuthenticationMethod(DefaultAuthenticationMethodT &&value)
GCMChannelResponse & WithLastModifiedDate(LastModifiedDateT &&value)
GCMChannelResponse & WithEnabled(bool value)
GCMChannelResponse & WithCreationDate(CreationDateT &&value)
const Aws::String & GetCreationDate() const
void SetLastModifiedBy(LastModifiedByT &&value)
GCMChannelResponse & WithId(IdT &&value)
const Aws::String & GetDefaultAuthenticationMethod() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API GCMChannelResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedDate(LastModifiedDateT &&value)
GCMChannelResponse & WithPlatform(PlatformT &&value)
AWS_PINPOINT_API GCMChannelResponse()=default
GCMChannelResponse & WithCredential(CredentialT &&value)
GCMChannelResponse & WithIsArchived(bool value)
GCMChannelResponse & WithHasCredential(bool value)
GCMChannelResponse & WithLastModifiedBy(LastModifiedByT &&value)
GCMChannelResponse & WithHasFcmServiceCredentials(bool value)
GCMChannelResponse & WithVersion(int value)
AWS_PINPOINT_API GCMChannelResponse(Aws::Utils::Json::JsonView jsonValue)
GCMChannelResponse & WithDefaultAuthenticationMethod(DefaultAuthenticationMethodT &&value)
void SetCreationDate(CreationDateT &&value)
void SetApplicationId(ApplicationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue