AWS SDK for C++  1.9.108
AWS SDK for C++
Campaign.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Personalize
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
73  inline Campaign& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
78  inline Campaign& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
83  inline Campaign& WithName(const char* value) { SetName(value); return *this;}
84 
85 
89  inline const Aws::String& GetCampaignArn() const{ return m_campaignArn; }
90 
94  inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; }
95 
99  inline void SetCampaignArn(const Aws::String& value) { m_campaignArnHasBeenSet = true; m_campaignArn = value; }
100 
104  inline void SetCampaignArn(Aws::String&& value) { m_campaignArnHasBeenSet = true; m_campaignArn = std::move(value); }
105 
109  inline void SetCampaignArn(const char* value) { m_campaignArnHasBeenSet = true; m_campaignArn.assign(value); }
110 
114  inline Campaign& WithCampaignArn(const Aws::String& value) { SetCampaignArn(value); return *this;}
115 
119  inline Campaign& WithCampaignArn(Aws::String&& value) { SetCampaignArn(std::move(value)); return *this;}
120 
124  inline Campaign& WithCampaignArn(const char* value) { SetCampaignArn(value); return *this;}
125 
126 
130  inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
131 
135  inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
136 
140  inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
141 
145  inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
146 
150  inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
151 
155  inline Campaign& WithSolutionVersionArn(const Aws::String& value) { SetSolutionVersionArn(value); return *this;}
156 
160  inline Campaign& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
161 
165  inline Campaign& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
166 
167 
172  inline int GetMinProvisionedTPS() const{ return m_minProvisionedTPS; }
173 
178  inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
179 
184  inline void SetMinProvisionedTPS(int value) { m_minProvisionedTPSHasBeenSet = true; m_minProvisionedTPS = value; }
185 
190  inline Campaign& WithMinProvisionedTPS(int value) { SetMinProvisionedTPS(value); return *this;}
191 
192 
196  inline const CampaignConfig& GetCampaignConfig() const{ return m_campaignConfig; }
197 
201  inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
202 
206  inline void SetCampaignConfig(const CampaignConfig& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = value; }
207 
211  inline void SetCampaignConfig(CampaignConfig&& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = std::move(value); }
212 
216  inline Campaign& WithCampaignConfig(const CampaignConfig& value) { SetCampaignConfig(value); return *this;}
217 
221  inline Campaign& WithCampaignConfig(CampaignConfig&& value) { SetCampaignConfig(std::move(value)); return *this;}
222 
223 
230  inline const Aws::String& GetStatus() const{ return m_status; }
231 
238  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
239 
246  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
247 
254  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
255 
262  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
263 
270  inline Campaign& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
271 
278  inline Campaign& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
279 
286  inline Campaign& WithStatus(const char* value) { SetStatus(value); return *this;}
287 
288 
292  inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
293 
297  inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
298 
302  inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
303 
307  inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
308 
312  inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
313 
317  inline Campaign& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
318 
322  inline Campaign& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
323 
327  inline Campaign& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
328 
329 
333  inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
334 
338  inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
339 
343  inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
344 
348  inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
349 
353  inline Campaign& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
354 
358  inline Campaign& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
359 
360 
364  inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
365 
369  inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
370 
374  inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
375 
379  inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
380 
384  inline Campaign& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;}
385 
389  inline Campaign& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
390 
391 
392 
393  inline const CampaignUpdateSummary& GetLatestCampaignUpdate() const{ return m_latestCampaignUpdate; }
394 
395 
396  inline bool LatestCampaignUpdateHasBeenSet() const { return m_latestCampaignUpdateHasBeenSet; }
397 
398 
399  inline void SetLatestCampaignUpdate(const CampaignUpdateSummary& value) { m_latestCampaignUpdateHasBeenSet = true; m_latestCampaignUpdate = value; }
400 
401 
402  inline void SetLatestCampaignUpdate(CampaignUpdateSummary&& value) { m_latestCampaignUpdateHasBeenSet = true; m_latestCampaignUpdate = std::move(value); }
403 
404 
405  inline Campaign& WithLatestCampaignUpdate(const CampaignUpdateSummary& value) { SetLatestCampaignUpdate(value); return *this;}
406 
407 
408  inline Campaign& WithLatestCampaignUpdate(CampaignUpdateSummary&& value) { SetLatestCampaignUpdate(std::move(value)); return *this;}
409 
410  private:
411 
412  Aws::String m_name;
413  bool m_nameHasBeenSet;
414 
415  Aws::String m_campaignArn;
416  bool m_campaignArnHasBeenSet;
417 
418  Aws::String m_solutionVersionArn;
419  bool m_solutionVersionArnHasBeenSet;
420 
421  int m_minProvisionedTPS;
422  bool m_minProvisionedTPSHasBeenSet;
423 
424  CampaignConfig m_campaignConfig;
425  bool m_campaignConfigHasBeenSet;
426 
427  Aws::String m_status;
428  bool m_statusHasBeenSet;
429 
430  Aws::String m_failureReason;
431  bool m_failureReasonHasBeenSet;
432 
433  Aws::Utils::DateTime m_creationDateTime;
434  bool m_creationDateTimeHasBeenSet;
435 
436  Aws::Utils::DateTime m_lastUpdatedDateTime;
437  bool m_lastUpdatedDateTimeHasBeenSet;
438 
439  CampaignUpdateSummary m_latestCampaignUpdate;
440  bool m_latestCampaignUpdateHasBeenSet;
441  };
442 
443 } // namespace Model
444 } // namespace Personalize
445 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Personalize::Model::Campaign::GetMinProvisionedTPS
int GetMinProvisionedTPS() const
Definition: Campaign.h:172
Aws::Personalize::Model::Campaign::GetSolutionVersionArn
const Aws::String & GetSolutionVersionArn() const
Definition: Campaign.h:130
Aws::Personalize::Model::Campaign::GetLatestCampaignUpdate
const CampaignUpdateSummary & GetLatestCampaignUpdate() const
Definition: Campaign.h:393
Aws::Personalize::Model::Campaign::SetSolutionVersionArn
void SetSolutionVersionArn(const char *value)
Definition: Campaign.h:150
Aws::Personalize::Model::CampaignUpdateSummary
Definition: CampaignUpdateSummary.h:35
Aws::Personalize::Model::Campaign::LatestCampaignUpdateHasBeenSet
bool LatestCampaignUpdateHasBeenSet() const
Definition: Campaign.h:396
Aws::Personalize::Model::Campaign::SetLatestCampaignUpdate
void SetLatestCampaignUpdate(CampaignUpdateSummary &&value)
Definition: Campaign.h:402
Aws::Personalize::Model::Campaign::SetStatus
void SetStatus(const Aws::String &value)
Definition: Campaign.h:246
CampaignConfig.h
DateTime.h
Aws::Personalize::Model::CampaignConfig
Definition: CampaignConfig.h:33
Aws::Personalize::Model::Campaign::SetCreationDateTime
void SetCreationDateTime(Aws::Utils::DateTime &&value)
Definition: Campaign.h:348
Aws::Personalize::Model::Campaign::WithCreationDateTime
Campaign & WithCreationDateTime(Aws::Utils::DateTime &&value)
Definition: Campaign.h:358
Aws::Personalize::Model::Campaign::WithCreationDateTime
Campaign & WithCreationDateTime(const Aws::Utils::DateTime &value)
Definition: Campaign.h:353
Aws::Personalize::Model::Campaign::GetFailureReason
const Aws::String & GetFailureReason() const
Definition: Campaign.h:292
Aws::Personalize::Model::Campaign::GetCampaignArn
const Aws::String & GetCampaignArn() const
Definition: Campaign.h:89
Aws::Personalize::Model::Campaign::SetCampaignConfig
void SetCampaignConfig(CampaignConfig &&value)
Definition: Campaign.h:211
Aws::Personalize::Model::Campaign::WithLatestCampaignUpdate
Campaign & WithLatestCampaignUpdate(const CampaignUpdateSummary &value)
Definition: Campaign.h:405
Aws::Personalize::Model::Campaign::WithLastUpdatedDateTime
Campaign & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: Campaign.h:384
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::Campaign::CampaignArnHasBeenSet
bool CampaignArnHasBeenSet() const
Definition: Campaign.h:94
Aws::Personalize::Model::Campaign::SetCreationDateTime
void SetCreationDateTime(const Aws::Utils::DateTime &value)
Definition: Campaign.h:343
Aws::Personalize::Model::Campaign::WithCampaignArn
Campaign & WithCampaignArn(const char *value)
Definition: Campaign.h:124
Aws::Personalize::Model::Campaign::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Campaign.h:238
Aws::Personalize::Model::Campaign::SetStatus
void SetStatus(Aws::String &&value)
Definition: Campaign.h:254
Aws::Personalize::Model::Campaign::WithFailureReason
Campaign & WithFailureReason(const char *value)
Definition: Campaign.h:327
Aws::Personalize::Model::Campaign::WithStatus
Campaign & WithStatus(Aws::String &&value)
Definition: Campaign.h:278
Aws::Personalize::Model::Campaign::SetSolutionVersionArn
void SetSolutionVersionArn(const Aws::String &value)
Definition: Campaign.h:140
Aws::Personalize::Model::Campaign::SetLastUpdatedDateTime
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: Campaign.h:379
Aws::Personalize::Model::Campaign::SetName
void SetName(const char *value)
Definition: Campaign.h:68
Aws::Personalize::Model::Campaign::WithName
Campaign & WithName(Aws::String &&value)
Definition: Campaign.h:78
Aws::Personalize::Model::Campaign::SetMinProvisionedTPS
void SetMinProvisionedTPS(int value)
Definition: Campaign.h:184
Aws::Personalize::Model::Campaign::WithName
Campaign & WithName(const Aws::String &value)
Definition: Campaign.h:73
Aws::Personalize::Model::Campaign::GetStatus
const Aws::String & GetStatus() const
Definition: Campaign.h:230
Aws::Personalize::Model::Campaign::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Campaign.h:53
Aws::Personalize::Model::Campaign::WithLatestCampaignUpdate
Campaign & WithLatestCampaignUpdate(CampaignUpdateSummary &&value)
Definition: Campaign.h:408
Aws::Personalize::Model::Campaign::SetStatus
void SetStatus(const char *value)
Definition: Campaign.h:262
Aws::Personalize::Model::Campaign::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Personalize::Model::Campaign
Definition: Campaign.h:37
Aws::Personalize::Model::Campaign::SolutionVersionArnHasBeenSet
bool SolutionVersionArnHasBeenSet() const
Definition: Campaign.h:135
Aws::Personalize::Model::Campaign::SetFailureReason
void SetFailureReason(Aws::String &&value)
Definition: Campaign.h:307
Aws::Personalize::Model::Campaign::GetLastUpdatedDateTime
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition: Campaign.h:364
Aws::Personalize::Model::Campaign::WithFailureReason
Campaign & WithFailureReason(const Aws::String &value)
Definition: Campaign.h:317
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Personalize::Model::Campaign::GetCreationDateTime
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition: Campaign.h:333
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Personalize::Model::Campaign::FailureReasonHasBeenSet
bool FailureReasonHasBeenSet() const
Definition: Campaign.h:297
Aws::Personalize::Model::Campaign::WithCampaignArn
Campaign & WithCampaignArn(const Aws::String &value)
Definition: Campaign.h:114
Aws::Personalize::Model::Campaign::CampaignConfigHasBeenSet
bool CampaignConfigHasBeenSet() const
Definition: Campaign.h:201
Aws::Personalize::Model::Campaign::WithStatus
Campaign & WithStatus(const Aws::String &value)
Definition: Campaign.h:270
Aws::Personalize::Model::Campaign::SetCampaignArn
void SetCampaignArn(Aws::String &&value)
Definition: Campaign.h:104
Aws::Personalize::Model::Campaign::CreationDateTimeHasBeenSet
bool CreationDateTimeHasBeenSet() const
Definition: Campaign.h:338
Aws::Personalize::Model::Campaign::SetCampaignArn
void SetCampaignArn(const Aws::String &value)
Definition: Campaign.h:99
Aws::Personalize::Model::Campaign::WithSolutionVersionArn
Campaign & WithSolutionVersionArn(Aws::String &&value)
Definition: Campaign.h:160
Aws::Personalize::Model::Campaign::SetCampaignConfig
void SetCampaignConfig(const CampaignConfig &value)
Definition: Campaign.h:206
Aws::Personalize::Model::Campaign::WithCampaignConfig
Campaign & WithCampaignConfig(CampaignConfig &&value)
Definition: Campaign.h:221
Aws::Personalize::Model::Campaign::WithSolutionVersionArn
Campaign & WithSolutionVersionArn(const char *value)
Definition: Campaign.h:165
Aws::Personalize::Model::Campaign::WithName
Campaign & WithName(const char *value)
Definition: Campaign.h:83
Aws::Personalize::Model::Campaign::SetCampaignArn
void SetCampaignArn(const char *value)
Definition: Campaign.h:109
Aws::Personalize::Model::Campaign::SetFailureReason
void SetFailureReason(const Aws::String &value)
Definition: Campaign.h:302
Aws::Personalize::Model::Campaign::SetSolutionVersionArn
void SetSolutionVersionArn(Aws::String &&value)
Definition: Campaign.h:145
Aws::Personalize::Model::Campaign::WithSolutionVersionArn
Campaign & WithSolutionVersionArn(const Aws::String &value)
Definition: Campaign.h:155
Aws::Personalize::Model::Campaign::WithLastUpdatedDateTime
Campaign & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: Campaign.h:389
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::Campaign::WithCampaignArn
Campaign & WithCampaignArn(Aws::String &&value)
Definition: Campaign.h:119
Aws::Personalize::Model::Campaign::GetCampaignConfig
const CampaignConfig & GetCampaignConfig() const
Definition: Campaign.h:196
Aws::Personalize::Model::Campaign::Campaign
Campaign(Aws::Utils::Json::JsonView jsonValue)
Aws::Personalize::Model::Campaign::GetName
const Aws::String & GetName() const
Definition: Campaign.h:48
Aws::Personalize::Model::Campaign::WithFailureReason
Campaign & WithFailureReason(Aws::String &&value)
Definition: Campaign.h:322
Aws::Personalize::Model::Campaign::SetFailureReason
void SetFailureReason(const char *value)
Definition: Campaign.h:312
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::Campaign::MinProvisionedTPSHasBeenSet
bool MinProvisionedTPSHasBeenSet() const
Definition: Campaign.h:178
Aws::Personalize::Model::Campaign::SetLatestCampaignUpdate
void SetLatestCampaignUpdate(const CampaignUpdateSummary &value)
Definition: Campaign.h:399
Aws::Personalize::Model::Campaign::operator=
Campaign & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Personalize::Model::Campaign::WithMinProvisionedTPS
Campaign & WithMinProvisionedTPS(int value)
Definition: Campaign.h:190
Personalize_EXPORTS.h
Aws::Personalize::Model::Campaign::LastUpdatedDateTimeHasBeenSet
bool LastUpdatedDateTimeHasBeenSet() const
Definition: Campaign.h:369
Aws::Personalize::Model::Campaign::SetLastUpdatedDateTime
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: Campaign.h:374
Aws::Personalize::Model::Campaign::SetName
void SetName(Aws::String &&value)
Definition: Campaign.h:63
Aws::Personalize::Model::Campaign::WithCampaignConfig
Campaign & WithCampaignConfig(const CampaignConfig &value)
Definition: Campaign.h:216
Aws::Personalize::Model::Campaign::Campaign
Campaign()
Aws::Personalize::Model::Campaign::SetName
void SetName(const Aws::String &value)
Definition: Campaign.h:58
Aws::Personalize::Model::Campaign::WithStatus
Campaign & WithStatus(const char *value)
Definition: Campaign.h:286
CampaignUpdateSummary.h