AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CampaignSummary.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Personalize
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_PERSONALIZE_API CampaignSummary();
39 AWS_PERSONALIZE_API CampaignSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PERSONALIZE_API CampaignSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline CampaignSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline CampaignSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline CampaignSummary& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetCampaignArn() const{ return m_campaignArn; }
63 inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; }
64 inline void SetCampaignArn(const Aws::String& value) { m_campaignArnHasBeenSet = true; m_campaignArn = value; }
65 inline void SetCampaignArn(Aws::String&& value) { m_campaignArnHasBeenSet = true; m_campaignArn = std::move(value); }
66 inline void SetCampaignArn(const char* value) { m_campaignArnHasBeenSet = true; m_campaignArn.assign(value); }
67 inline CampaignSummary& WithCampaignArn(const Aws::String& value) { SetCampaignArn(value); return *this;}
68 inline CampaignSummary& WithCampaignArn(Aws::String&& value) { SetCampaignArn(std::move(value)); return *this;}
69 inline CampaignSummary& WithCampaignArn(const char* value) { SetCampaignArn(value); return *this;}
71
73
79 inline const Aws::String& GetStatus() const{ return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
82 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
83 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
84 inline CampaignSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
85 inline CampaignSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
86 inline CampaignSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
94 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
95 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
96 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
98 inline CampaignSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
106 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
107 inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
108 inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
110 inline CampaignSummary& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
112
114
117 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
118 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
119 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
120 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
121 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
122 inline CampaignSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
123 inline CampaignSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
124 inline CampaignSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
126 private:
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 Aws::String m_campaignArn;
132 bool m_campaignArnHasBeenSet = false;
133
134 Aws::String m_status;
135 bool m_statusHasBeenSet = false;
136
137 Aws::Utils::DateTime m_creationDateTime;
138 bool m_creationDateTimeHasBeenSet = false;
139
140 Aws::Utils::DateTime m_lastUpdatedDateTime;
141 bool m_lastUpdatedDateTimeHasBeenSet = false;
142
143 Aws::String m_failureReason;
144 bool m_failureReasonHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace Personalize
149} // namespace Aws
AWS_PERSONALIZE_API CampaignSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCampaignArn(const Aws::String &value)
CampaignSummary & WithFailureReason(const Aws::String &value)
CampaignSummary & WithCreationDateTime(const Aws::Utils::DateTime &value)
const Aws::String & GetFailureReason() const
void SetCreationDateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
void SetFailureReason(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationDateTime() const
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
const Aws::String & GetName() const
CampaignSummary & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
CampaignSummary & WithFailureReason(const char *value)
CampaignSummary & WithStatus(Aws::String &&value)
CampaignSummary & WithName(const char *value)
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
AWS_PERSONALIZE_API CampaignSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CampaignSummary & WithCampaignArn(Aws::String &&value)
CampaignSummary & WithName(const Aws::String &value)
CampaignSummary & WithStatus(const Aws::String &value)
CampaignSummary & WithCreationDateTime(Aws::Utils::DateTime &&value)
CampaignSummary & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
CampaignSummary & WithFailureReason(Aws::String &&value)
CampaignSummary & WithName(Aws::String &&value)
void SetFailureReason(Aws::String &&value)
const Aws::String & GetCampaignArn() const
void SetCampaignArn(Aws::String &&value)
CampaignSummary & WithCampaignArn(const Aws::String &value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetStatus() const
CampaignSummary & WithCampaignArn(const char *value)
void SetStatus(const Aws::String &value)
CampaignSummary & WithStatus(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue