AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CampaignUpdateSummary.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Personalize
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_PERSONALIZE_API CampaignUpdateSummary();
40 AWS_PERSONALIZE_API CampaignUpdateSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
50 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
51 inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
52 inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
53 inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
55 inline CampaignUpdateSummary& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
56 inline CampaignUpdateSummary& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
58
60
64 inline int GetMinProvisionedTPS() const{ return m_minProvisionedTPS; }
65 inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
66 inline void SetMinProvisionedTPS(int value) { m_minProvisionedTPSHasBeenSet = true; m_minProvisionedTPS = value; }
67 inline CampaignUpdateSummary& WithMinProvisionedTPS(int value) { SetMinProvisionedTPS(value); return *this;}
69
71
72 inline const CampaignConfig& GetCampaignConfig() const{ return m_campaignConfig; }
73 inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
74 inline void SetCampaignConfig(const CampaignConfig& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = value; }
75 inline void SetCampaignConfig(CampaignConfig&& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = std::move(value); }
76 inline CampaignUpdateSummary& WithCampaignConfig(const CampaignConfig& value) { SetCampaignConfig(value); return *this;}
77 inline CampaignUpdateSummary& WithCampaignConfig(CampaignConfig&& value) { SetCampaignConfig(std::move(value)); return *this;}
79
81
87 inline const Aws::String& GetStatus() const{ return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
90 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
91 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
92 inline CampaignUpdateSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
93 inline CampaignUpdateSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
94 inline CampaignUpdateSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
96
98
101 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
102 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
103 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
104 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
105 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
106 inline CampaignUpdateSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
107 inline CampaignUpdateSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
108 inline CampaignUpdateSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
116 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
117 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
118 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
120 inline CampaignUpdateSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
122
124
128 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
129 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
130 inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
131 inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
135 private:
136
137 Aws::String m_solutionVersionArn;
138 bool m_solutionVersionArnHasBeenSet = false;
139
140 int m_minProvisionedTPS;
141 bool m_minProvisionedTPSHasBeenSet = false;
142
143 CampaignConfig m_campaignConfig;
144 bool m_campaignConfigHasBeenSet = false;
145
146 Aws::String m_status;
147 bool m_statusHasBeenSet = false;
148
149 Aws::String m_failureReason;
150 bool m_failureReasonHasBeenSet = false;
151
152 Aws::Utils::DateTime m_creationDateTime;
153 bool m_creationDateTimeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_lastUpdatedDateTime;
156 bool m_lastUpdatedDateTimeHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace Personalize
161} // namespace Aws
CampaignUpdateSummary & WithSolutionVersionArn(Aws::String &&value)
CampaignUpdateSummary & WithStatus(const Aws::String &value)
CampaignUpdateSummary & WithFailureReason(const char *value)
CampaignUpdateSummary & WithStatus(const char *value)
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
CampaignUpdateSummary & WithSolutionVersionArn(const char *value)
CampaignUpdateSummary & WithFailureReason(Aws::String &&value)
void SetCampaignConfig(const CampaignConfig &value)
CampaignUpdateSummary & WithCampaignConfig(CampaignConfig &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
CampaignUpdateSummary & WithMinProvisionedTPS(int value)
CampaignUpdateSummary & WithStatus(Aws::String &&value)
CampaignUpdateSummary & WithCreationDateTime(Aws::Utils::DateTime &&value)
CampaignUpdateSummary & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
CampaignUpdateSummary & WithCampaignConfig(const CampaignConfig &value)
CampaignUpdateSummary & WithCreationDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationDateTime() const
void SetCreationDateTime(const Aws::Utils::DateTime &value)
CampaignUpdateSummary & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
CampaignUpdateSummary & WithSolutionVersionArn(const Aws::String &value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
AWS_PERSONALIZE_API CampaignUpdateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CampaignUpdateSummary & WithFailureReason(const Aws::String &value)
AWS_PERSONALIZE_API CampaignUpdateSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue