AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ChannelResponse.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
29 public:
30 AWS_PINPOINT_API ChannelResponse() = default;
31 AWS_PINPOINT_API ChannelResponse(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
40 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
41 template <typename ApplicationIdT = Aws::String>
42 void SetApplicationId(ApplicationIdT&& value) {
43 m_applicationIdHasBeenSet = true;
44 m_applicationId = std::forward<ApplicationIdT>(value);
45 }
46 template <typename ApplicationIdT = Aws::String>
47 ChannelResponse& WithApplicationId(ApplicationIdT&& value) {
48 SetApplicationId(std::forward<ApplicationIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
58 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
59 template <typename CreationDateT = Aws::String>
60 void SetCreationDate(CreationDateT&& value) {
61 m_creationDateHasBeenSet = true;
62 m_creationDate = std::forward<CreationDateT>(value);
63 }
64 template <typename CreationDateT = Aws::String>
65 ChannelResponse& WithCreationDate(CreationDateT&& value) {
66 SetCreationDate(std::forward<CreationDateT>(value));
67 return *this;
68 }
70
72
75 inline bool GetEnabled() const { return m_enabled; }
76 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
77 inline void SetEnabled(bool value) {
78 m_enabledHasBeenSet = true;
79 m_enabled = value;
80 }
81 inline ChannelResponse& WithEnabled(bool value) {
82 SetEnabled(value);
83 return *this;
84 }
86
88
91 inline bool GetHasCredential() const { return m_hasCredential; }
92 inline bool HasCredentialHasBeenSet() const { return m_hasCredentialHasBeenSet; }
93 inline void SetHasCredential(bool value) {
94 m_hasCredentialHasBeenSet = true;
95 m_hasCredential = value;
96 }
97 inline ChannelResponse& WithHasCredential(bool value) {
98 SetHasCredential(value);
99 return *this;
100 }
102
104
108 inline const Aws::String& GetId() const { return m_id; }
109 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
110 template <typename IdT = Aws::String>
111 void SetId(IdT&& value) {
112 m_idHasBeenSet = true;
113 m_id = std::forward<IdT>(value);
114 }
115 template <typename IdT = Aws::String>
116 ChannelResponse& WithId(IdT&& value) {
117 SetId(std::forward<IdT>(value));
118 return *this;
119 }
121
123
126 inline bool GetIsArchived() const { return m_isArchived; }
127 inline bool IsArchivedHasBeenSet() const { return m_isArchivedHasBeenSet; }
128 inline void SetIsArchived(bool value) {
129 m_isArchivedHasBeenSet = true;
130 m_isArchived = value;
131 }
132 inline ChannelResponse& WithIsArchived(bool value) {
133 SetIsArchived(value);
134 return *this;
135 }
137
139
142 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
143 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
144 template <typename LastModifiedByT = Aws::String>
145 void SetLastModifiedBy(LastModifiedByT&& value) {
146 m_lastModifiedByHasBeenSet = true;
147 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
148 }
149 template <typename LastModifiedByT = Aws::String>
150 ChannelResponse& WithLastModifiedBy(LastModifiedByT&& value) {
151 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
162 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
163 template <typename LastModifiedDateT = Aws::String>
164 void SetLastModifiedDate(LastModifiedDateT&& value) {
165 m_lastModifiedDateHasBeenSet = true;
166 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
167 }
168 template <typename LastModifiedDateT = Aws::String>
169 ChannelResponse& WithLastModifiedDate(LastModifiedDateT&& value) {
170 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
171 return *this;
172 }
174
176
179 inline int GetVersion() const { return m_version; }
180 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
181 inline void SetVersion(int value) {
182 m_versionHasBeenSet = true;
183 m_version = value;
184 }
185 inline ChannelResponse& WithVersion(int value) {
186 SetVersion(value);
187 return *this;
188 }
190 private:
191 Aws::String m_applicationId;
192 bool m_applicationIdHasBeenSet = false;
193
194 Aws::String m_creationDate;
195 bool m_creationDateHasBeenSet = false;
196
197 bool m_enabled{false};
198 bool m_enabledHasBeenSet = false;
199
200 bool m_hasCredential{false};
201 bool m_hasCredentialHasBeenSet = false;
202
203 Aws::String m_id;
204 bool m_idHasBeenSet = false;
205
206 bool m_isArchived{false};
207 bool m_isArchivedHasBeenSet = false;
208
209 Aws::String m_lastModifiedBy;
210 bool m_lastModifiedByHasBeenSet = false;
211
212 Aws::String m_lastModifiedDate;
213 bool m_lastModifiedDateHasBeenSet = false;
214
215 int m_version{0};
216 bool m_versionHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace Pinpoint
221} // namespace Aws
void SetLastModifiedDate(LastModifiedDateT &&value)
ChannelResponse & WithVersion(int value)
void SetCreationDate(CreationDateT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API ChannelResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetApplicationId() const
const Aws::String & GetCreationDate() const
AWS_PINPOINT_API ChannelResponse(Aws::Utils::Json::JsonView jsonValue)
void SetApplicationId(ApplicationIdT &&value)
ChannelResponse & WithHasCredential(bool value)
ChannelResponse & WithEnabled(bool value)
const Aws::String & GetId() const
ChannelResponse & WithLastModifiedBy(LastModifiedByT &&value)
const Aws::String & GetLastModifiedDate() const
ChannelResponse & WithLastModifiedDate(LastModifiedDateT &&value)
void SetLastModifiedBy(LastModifiedByT &&value)
AWS_PINPOINT_API ChannelResponse()=default
ChannelResponse & WithCreationDate(CreationDateT &&value)
ChannelResponse & WithId(IdT &&value)
const Aws::String & GetLastModifiedBy() const
ChannelResponse & WithIsArchived(bool value)
ChannelResponse & WithApplicationId(ApplicationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue