AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Campaign.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/model/CampaignConfig.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/personalize/model/CampaignUpdateSummary.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Personalize
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_PERSONALIZE_API Campaign();
41 AWS_PERSONALIZE_API Campaign(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PERSONALIZE_API Campaign& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline Campaign& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline Campaign& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline Campaign& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const Aws::String& GetCampaignArn() const{ return m_campaignArn; }
65 inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; }
66 inline void SetCampaignArn(const Aws::String& value) { m_campaignArnHasBeenSet = true; m_campaignArn = value; }
67 inline void SetCampaignArn(Aws::String&& value) { m_campaignArnHasBeenSet = true; m_campaignArn = std::move(value); }
68 inline void SetCampaignArn(const char* value) { m_campaignArnHasBeenSet = true; m_campaignArn.assign(value); }
69 inline Campaign& WithCampaignArn(const Aws::String& value) { SetCampaignArn(value); return *this;}
70 inline Campaign& WithCampaignArn(Aws::String&& value) { SetCampaignArn(std::move(value)); return *this;}
71 inline Campaign& WithCampaignArn(const char* value) { SetCampaignArn(value); return *this;}
73
75
78 inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
79 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
80 inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
81 inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
82 inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
83 inline Campaign& WithSolutionVersionArn(const Aws::String& value) { SetSolutionVersionArn(value); return *this;}
84 inline Campaign& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
85 inline Campaign& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
87
89
96 inline int GetMinProvisionedTPS() const{ return m_minProvisionedTPS; }
97 inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
98 inline void SetMinProvisionedTPS(int value) { m_minProvisionedTPSHasBeenSet = true; m_minProvisionedTPS = value; }
99 inline Campaign& WithMinProvisionedTPS(int value) { SetMinProvisionedTPS(value); return *this;}
101
103
106 inline const CampaignConfig& GetCampaignConfig() const{ return m_campaignConfig; }
107 inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
108 inline void SetCampaignConfig(const CampaignConfig& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = value; }
109 inline void SetCampaignConfig(CampaignConfig&& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = std::move(value); }
110 inline Campaign& WithCampaignConfig(const CampaignConfig& value) { SetCampaignConfig(value); return *this;}
111 inline Campaign& WithCampaignConfig(CampaignConfig&& value) { SetCampaignConfig(std::move(value)); return *this;}
113
115
121 inline const Aws::String& GetStatus() const{ return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
124 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
125 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
126 inline Campaign& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
127 inline Campaign& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
128 inline Campaign& WithStatus(const char* value) { SetStatus(value); return *this;}
130
132
135 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
136 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
137 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
138 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
139 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
140 inline Campaign& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
141 inline Campaign& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
142 inline Campaign& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
150 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
151 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
152 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
153 inline Campaign& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
154 inline Campaign& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
156
158
161 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
162 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
163 inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
164 inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
166 inline Campaign& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
168
170
171 inline const CampaignUpdateSummary& GetLatestCampaignUpdate() const{ return m_latestCampaignUpdate; }
172 inline bool LatestCampaignUpdateHasBeenSet() const { return m_latestCampaignUpdateHasBeenSet; }
173 inline void SetLatestCampaignUpdate(const CampaignUpdateSummary& value) { m_latestCampaignUpdateHasBeenSet = true; m_latestCampaignUpdate = value; }
174 inline void SetLatestCampaignUpdate(CampaignUpdateSummary&& value) { m_latestCampaignUpdateHasBeenSet = true; m_latestCampaignUpdate = std::move(value); }
176 inline Campaign& WithLatestCampaignUpdate(CampaignUpdateSummary&& value) { SetLatestCampaignUpdate(std::move(value)); return *this;}
178 private:
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 Aws::String m_campaignArn;
184 bool m_campaignArnHasBeenSet = false;
185
186 Aws::String m_solutionVersionArn;
187 bool m_solutionVersionArnHasBeenSet = false;
188
189 int m_minProvisionedTPS;
190 bool m_minProvisionedTPSHasBeenSet = false;
191
192 CampaignConfig m_campaignConfig;
193 bool m_campaignConfigHasBeenSet = false;
194
195 Aws::String m_status;
196 bool m_statusHasBeenSet = false;
197
198 Aws::String m_failureReason;
199 bool m_failureReasonHasBeenSet = false;
200
201 Aws::Utils::DateTime m_creationDateTime;
202 bool m_creationDateTimeHasBeenSet = false;
203
204 Aws::Utils::DateTime m_lastUpdatedDateTime;
205 bool m_lastUpdatedDateTimeHasBeenSet = false;
206
207 CampaignUpdateSummary m_latestCampaignUpdate;
208 bool m_latestCampaignUpdateHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace Personalize
213} // namespace Aws
void SetSolutionVersionArn(const Aws::String &value)
Definition Campaign.h:80
Campaign & WithFailureReason(Aws::String &&value)
Definition Campaign.h:141
void SetName(Aws::String &&value)
Definition Campaign.h:53
Campaign & WithCampaignArn(const char *value)
Definition Campaign.h:71
bool CreationDateTimeHasBeenSet() const
Definition Campaign.h:150
Campaign & WithSolutionVersionArn(const Aws::String &value)
Definition Campaign.h:83
Campaign & WithCampaignArn(const Aws::String &value)
Definition Campaign.h:69
Campaign & WithFailureReason(const char *value)
Definition Campaign.h:142
const CampaignUpdateSummary & GetLatestCampaignUpdate() const
Definition Campaign.h:171
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition Campaign.h:149
void SetFailureReason(Aws::String &&value)
Definition Campaign.h:138
void SetCampaignArn(Aws::String &&value)
Definition Campaign.h:67
Campaign & WithSolutionVersionArn(Aws::String &&value)
Definition Campaign.h:84
void SetLatestCampaignUpdate(CampaignUpdateSummary &&value)
Definition Campaign.h:174
void SetStatus(const Aws::String &value)
Definition Campaign.h:123
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition Campaign.h:163
Campaign & WithLatestCampaignUpdate(const CampaignUpdateSummary &value)
Definition Campaign.h:175
bool SolutionVersionArnHasBeenSet() const
Definition Campaign.h:79
void SetLatestCampaignUpdate(const CampaignUpdateSummary &value)
Definition Campaign.h:173
void SetCampaignArn(const Aws::String &value)
Definition Campaign.h:66
Campaign & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition Campaign.h:166
Campaign & WithName(Aws::String &&value)
Definition Campaign.h:56
const CampaignConfig & GetCampaignConfig() const
Definition Campaign.h:106
const Aws::String & GetStatus() const
Definition Campaign.h:121
void SetFailureReason(const char *value)
Definition Campaign.h:139
void SetMinProvisionedTPS(int value)
Definition Campaign.h:98
const Aws::String & GetFailureReason() const
Definition Campaign.h:135
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition Campaign.h:161
Campaign & WithStatus(const char *value)
Definition Campaign.h:128
Campaign & WithName(const Aws::String &value)
Definition Campaign.h:55
void SetStatus(Aws::String &&value)
Definition Campaign.h:124
const Aws::String & GetSolutionVersionArn() const
Definition Campaign.h:78
Campaign & WithFailureReason(const Aws::String &value)
Definition Campaign.h:140
Campaign & WithStatus(Aws::String &&value)
Definition Campaign.h:127
Campaign & WithName(const char *value)
Definition Campaign.h:57
void SetCampaignArn(const char *value)
Definition Campaign.h:68
AWS_PERSONALIZE_API Campaign()
Campaign & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition Campaign.h:165
const Aws::String & GetName() const
Definition Campaign.h:50
const Aws::String & GetCampaignArn() const
Definition Campaign.h:64
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const char *value)
Definition Campaign.h:54
Campaign & WithLatestCampaignUpdate(CampaignUpdateSummary &&value)
Definition Campaign.h:176
bool LatestCampaignUpdateHasBeenSet() const
Definition Campaign.h:172
void SetCreationDateTime(Aws::Utils::DateTime &&value)
Definition Campaign.h:152
bool MinProvisionedTPSHasBeenSet() const
Definition Campaign.h:97
Campaign & WithSolutionVersionArn(const char *value)
Definition Campaign.h:85
void SetStatus(const char *value)
Definition Campaign.h:125
Campaign & WithCampaignArn(Aws::String &&value)
Definition Campaign.h:70
void SetName(const Aws::String &value)
Definition Campaign.h:52
void SetFailureReason(const Aws::String &value)
Definition Campaign.h:137
Campaign & WithCreationDateTime(Aws::Utils::DateTime &&value)
Definition Campaign.h:154
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition Campaign.h:164
void SetCreationDateTime(const Aws::Utils::DateTime &value)
Definition Campaign.h:151
void SetSolutionVersionArn(const char *value)
Definition Campaign.h:82
bool LastUpdatedDateTimeHasBeenSet() const
Definition Campaign.h:162
Campaign & WithCreationDateTime(const Aws::Utils::DateTime &value)
Definition Campaign.h:153
void SetCampaignConfig(CampaignConfig &&value)
Definition Campaign.h:109
Campaign & WithStatus(const Aws::String &value)
Definition Campaign.h:126
AWS_PERSONALIZE_API Campaign(Aws::Utils::Json::JsonView jsonValue)
Campaign & WithCampaignConfig(CampaignConfig &&value)
Definition Campaign.h:111
AWS_PERSONALIZE_API Campaign & operator=(Aws::Utils::Json::JsonView jsonValue)
Campaign & WithCampaignConfig(const CampaignConfig &value)
Definition Campaign.h:110
void SetSolutionVersionArn(Aws::String &&value)
Definition Campaign.h:81
Campaign & WithMinProvisionedTPS(int value)
Definition Campaign.h:99
void SetCampaignConfig(const CampaignConfig &value)
Definition Campaign.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue