AWS SDK for C++  1.9.102
AWS SDK for C++
CampaignSummary.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Personalize
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline CampaignSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline CampaignSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline CampaignSummary& WithName(const char* value) { SetName(value); return *this;}
81 
82 
86  inline const Aws::String& GetCampaignArn() const{ return m_campaignArn; }
87 
91  inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; }
92 
96  inline void SetCampaignArn(const Aws::String& value) { m_campaignArnHasBeenSet = true; m_campaignArn = value; }
97 
101  inline void SetCampaignArn(Aws::String&& value) { m_campaignArnHasBeenSet = true; m_campaignArn = std::move(value); }
102 
106  inline void SetCampaignArn(const char* value) { m_campaignArnHasBeenSet = true; m_campaignArn.assign(value); }
107 
111  inline CampaignSummary& WithCampaignArn(const Aws::String& value) { SetCampaignArn(value); return *this;}
112 
116  inline CampaignSummary& WithCampaignArn(Aws::String&& value) { SetCampaignArn(std::move(value)); return *this;}
117 
121  inline CampaignSummary& WithCampaignArn(const char* value) { SetCampaignArn(value); return *this;}
122 
123 
130  inline const Aws::String& GetStatus() const{ return m_status; }
131 
138  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 
146  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
147 
154  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
155 
162  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
163 
170  inline CampaignSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
171 
178  inline CampaignSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
179 
186  inline CampaignSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
187 
188 
192  inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
193 
197  inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
198 
202  inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
203 
207  inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
208 
212  inline CampaignSummary& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
213 
217  inline CampaignSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
218 
219 
223  inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
224 
228  inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
229 
233  inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
234 
238  inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
239 
243  inline CampaignSummary& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;}
244 
248  inline CampaignSummary& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
249 
250 
254  inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
255 
259  inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
260 
264  inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
265 
269  inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
270 
274  inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
275 
279  inline CampaignSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
280 
284  inline CampaignSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
285 
289  inline CampaignSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
290 
291  private:
292 
293  Aws::String m_name;
294  bool m_nameHasBeenSet;
295 
296  Aws::String m_campaignArn;
297  bool m_campaignArnHasBeenSet;
298 
299  Aws::String m_status;
300  bool m_statusHasBeenSet;
301 
302  Aws::Utils::DateTime m_creationDateTime;
303  bool m_creationDateTimeHasBeenSet;
304 
305  Aws::Utils::DateTime m_lastUpdatedDateTime;
306  bool m_lastUpdatedDateTimeHasBeenSet;
307 
308  Aws::String m_failureReason;
309  bool m_failureReasonHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace Personalize
314 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Personalize::Model::CampaignSummary::CampaignArnHasBeenSet
bool CampaignArnHasBeenSet() const
Definition: CampaignSummary.h:91
Aws::Personalize::Model::CampaignSummary::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: CampaignSummary.h:138
Aws::Personalize::Model::CampaignSummary::WithCampaignArn
CampaignSummary & WithCampaignArn(const Aws::String &value)
Definition: CampaignSummary.h:111
Aws::Personalize::Model::CampaignSummary::WithFailureReason
CampaignSummary & WithFailureReason(Aws::String &&value)
Definition: CampaignSummary.h:284
Aws::Personalize::Model::CampaignSummary::SetStatus
void SetStatus(Aws::String &&value)
Definition: CampaignSummary.h:154
Aws::Personalize::Model::CampaignSummary::SetCampaignArn
void SetCampaignArn(Aws::String &&value)
Definition: CampaignSummary.h:101
Aws::Personalize::Model::CampaignSummary::WithCreationDateTime
CampaignSummary & WithCreationDateTime(Aws::Utils::DateTime &&value)
Definition: CampaignSummary.h:217
Aws::Personalize::Model::CampaignSummary::WithStatus
CampaignSummary & WithStatus(const Aws::String &value)
Definition: CampaignSummary.h:170
Aws::Personalize::Model::CampaignSummary::LastUpdatedDateTimeHasBeenSet
bool LastUpdatedDateTimeHasBeenSet() const
Definition: CampaignSummary.h:228
Aws::Personalize::Model::CampaignSummary::GetFailureReason
const Aws::String & GetFailureReason() const
Definition: CampaignSummary.h:254
Aws::Personalize::Model::CampaignSummary::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CampaignSummary.h:50
Aws::Personalize::Model::CampaignSummary::SetCampaignArn
void SetCampaignArn(const Aws::String &value)
Definition: CampaignSummary.h:96
Aws::Personalize::Model::CampaignSummary::operator=
CampaignSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Personalize::Model::CampaignSummary::WithName
CampaignSummary & WithName(const Aws::String &value)
Definition: CampaignSummary.h:70
Aws::Personalize::Model::CampaignSummary::SetName
void SetName(Aws::String &&value)
Definition: CampaignSummary.h:60
Aws::Personalize::Model::CampaignSummary::SetCreationDateTime
void SetCreationDateTime(const Aws::Utils::DateTime &value)
Definition: CampaignSummary.h:202
Aws::Personalize::Model::CampaignSummary::SetStatus
void SetStatus(const char *value)
Definition: CampaignSummary.h:162
Aws::Personalize::Model::CampaignSummary::GetLastUpdatedDateTime
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition: CampaignSummary.h:223
DateTime.h
Aws::Personalize::Model::CampaignSummary
Definition: CampaignSummary.h:34
Aws::Personalize::Model::CampaignSummary::SetFailureReason
void SetFailureReason(Aws::String &&value)
Definition: CampaignSummary.h:269
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::CampaignSummary::SetCampaignArn
void SetCampaignArn(const char *value)
Definition: CampaignSummary.h:106
Aws::Personalize::Model::CampaignSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Personalize::Model::CampaignSummary::SetCreationDateTime
void SetCreationDateTime(Aws::Utils::DateTime &&value)
Definition: CampaignSummary.h:207
Aws::Personalize::Model::CampaignSummary::GetCreationDateTime
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition: CampaignSummary.h:192
Aws::Personalize::Model::CampaignSummary::CampaignSummary
CampaignSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::Personalize::Model::CampaignSummary::FailureReasonHasBeenSet
bool FailureReasonHasBeenSet() const
Definition: CampaignSummary.h:259
Aws::Personalize::Model::CampaignSummary::WithName
CampaignSummary & WithName(const char *value)
Definition: CampaignSummary.h:80
Aws::Personalize::Model::CampaignSummary::CreationDateTimeHasBeenSet
bool CreationDateTimeHasBeenSet() const
Definition: CampaignSummary.h:197
Aws::Personalize::Model::CampaignSummary::WithLastUpdatedDateTime
CampaignSummary & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: CampaignSummary.h:243
Aws::Personalize::Model::CampaignSummary::WithLastUpdatedDateTime
CampaignSummary & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: CampaignSummary.h:248
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Personalize::Model::CampaignSummary::SetStatus
void SetStatus(const Aws::String &value)
Definition: CampaignSummary.h:146
Aws::Personalize::Model::CampaignSummary::WithCampaignArn
CampaignSummary & WithCampaignArn(const char *value)
Definition: CampaignSummary.h:121
Aws::Personalize::Model::CampaignSummary::CampaignSummary
CampaignSummary()
Aws::Personalize::Model::CampaignSummary::WithStatus
CampaignSummary & WithStatus(Aws::String &&value)
Definition: CampaignSummary.h:178
Aws::Personalize::Model::CampaignSummary::SetLastUpdatedDateTime
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: CampaignSummary.h:238
Aws::Personalize::Model::CampaignSummary::SetName
void SetName(const char *value)
Definition: CampaignSummary.h:65
Aws::Personalize::Model::CampaignSummary::WithStatus
CampaignSummary & WithStatus(const char *value)
Definition: CampaignSummary.h:186
Aws::Personalize::Model::CampaignSummary::GetStatus
const Aws::String & GetStatus() const
Definition: CampaignSummary.h:130
Aws::Personalize::Model::CampaignSummary::GetCampaignArn
const Aws::String & GetCampaignArn() const
Definition: CampaignSummary.h:86
Aws::Personalize::Model::CampaignSummary::SetFailureReason
void SetFailureReason(const char *value)
Definition: CampaignSummary.h:274
Aws::Personalize::Model::CampaignSummary::WithName
CampaignSummary & WithName(Aws::String &&value)
Definition: CampaignSummary.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::CampaignSummary::SetLastUpdatedDateTime
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: CampaignSummary.h:233
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::CampaignSummary::WithFailureReason
CampaignSummary & WithFailureReason(const char *value)
Definition: CampaignSummary.h:289
Personalize_EXPORTS.h
Aws::Personalize::Model::CampaignSummary::WithCampaignArn
CampaignSummary & WithCampaignArn(Aws::String &&value)
Definition: CampaignSummary.h:116
Aws::Personalize::Model::CampaignSummary::GetName
const Aws::String & GetName() const
Definition: CampaignSummary.h:45
Aws::Personalize::Model::CampaignSummary::SetName
void SetName(const Aws::String &value)
Definition: CampaignSummary.h:55
Aws::Personalize::Model::CampaignSummary::WithCreationDateTime
CampaignSummary & WithCreationDateTime(const Aws::Utils::DateTime &value)
Definition: CampaignSummary.h:212
Aws::Personalize::Model::CampaignSummary::SetFailureReason
void SetFailureReason(const Aws::String &value)
Definition: CampaignSummary.h:264
Aws::Personalize::Model::CampaignSummary::WithFailureReason
CampaignSummary & WithFailureReason(const Aws::String &value)
Definition: CampaignSummary.h:279