AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename SolutionVersionArnT = Aws::String>
52 void SetSolutionVersionArn(SolutionVersionArnT&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::forward<SolutionVersionArnT>(value); }
53 template<typename SolutionVersionArnT = Aws::String>
54 CampaignUpdateSummary& WithSolutionVersionArn(SolutionVersionArnT&& value) { SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value)); return *this;}
56
58
62 inline int GetMinProvisionedTPS() const { return m_minProvisionedTPS; }
63 inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; }
64 inline void SetMinProvisionedTPS(int value) { m_minProvisionedTPSHasBeenSet = true; m_minProvisionedTPS = value; }
65 inline CampaignUpdateSummary& WithMinProvisionedTPS(int value) { SetMinProvisionedTPS(value); return *this;}
67
69
70 inline const CampaignConfig& GetCampaignConfig() const { return m_campaignConfig; }
71 inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; }
72 template<typename CampaignConfigT = CampaignConfig>
73 void SetCampaignConfig(CampaignConfigT&& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = std::forward<CampaignConfigT>(value); }
74 template<typename CampaignConfigT = CampaignConfig>
75 CampaignUpdateSummary& WithCampaignConfig(CampaignConfigT&& value) { SetCampaignConfig(std::forward<CampaignConfigT>(value)); return *this;}
77
79
85 inline const Aws::String& GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 template<typename StatusT = Aws::String>
88 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
89 template<typename StatusT = Aws::String>
90 CampaignUpdateSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
92
94
97 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
98 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
99 template<typename FailureReasonT = Aws::String>
100 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
101 template<typename FailureReasonT = Aws::String>
102 CampaignUpdateSummary& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
110 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
111 template<typename CreationDateTimeT = Aws::Utils::DateTime>
112 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
113 template<typename CreationDateTimeT = Aws::Utils::DateTime>
114 CampaignUpdateSummary& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
116
118
122 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
123 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
124 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
125 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
126 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
127 CampaignUpdateSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
129 private:
130
131 Aws::String m_solutionVersionArn;
132 bool m_solutionVersionArnHasBeenSet = false;
133
134 int m_minProvisionedTPS{0};
135 bool m_minProvisionedTPSHasBeenSet = false;
136
137 CampaignConfig m_campaignConfig;
138 bool m_campaignConfigHasBeenSet = false;
139
140 Aws::String m_status;
141 bool m_statusHasBeenSet = false;
142
143 Aws::String m_failureReason;
144 bool m_failureReasonHasBeenSet = false;
145
146 Aws::Utils::DateTime m_creationDateTime{};
147 bool m_creationDateTimeHasBeenSet = false;
148
149 Aws::Utils::DateTime m_lastUpdatedDateTime{};
150 bool m_lastUpdatedDateTimeHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace Personalize
155} // namespace Aws
CampaignUpdateSummary & WithSolutionVersionArn(SolutionVersionArnT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
CampaignUpdateSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
CampaignUpdateSummary & WithCampaignConfig(CampaignConfigT &&value)
void SetSolutionVersionArn(SolutionVersionArnT &&value)
CampaignUpdateSummary & WithStatus(StatusT &&value)
AWS_PERSONALIZE_API CampaignUpdateSummary()=default
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
CampaignUpdateSummary & WithMinProvisionedTPS(int value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationDateTime() const
CampaignUpdateSummary & WithFailureReason(FailureReasonT &&value)
CampaignUpdateSummary & WithCreationDateTime(CreationDateTimeT &&value)
AWS_PERSONALIZE_API CampaignUpdateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
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