AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
ReportPlan.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/ReportDeliveryChannel.h>
9#include <aws/backup/model/ReportSetting.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Backup {
23namespace Model {
24
32 public:
33 AWS_BACKUP_API ReportPlan() = default;
34 AWS_BACKUP_API ReportPlan(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetReportPlanArn() const { return m_reportPlanArn; }
44 inline bool ReportPlanArnHasBeenSet() const { return m_reportPlanArnHasBeenSet; }
45 template <typename ReportPlanArnT = Aws::String>
46 void SetReportPlanArn(ReportPlanArnT&& value) {
47 m_reportPlanArnHasBeenSet = true;
48 m_reportPlanArn = std::forward<ReportPlanArnT>(value);
49 }
50 template <typename ReportPlanArnT = Aws::String>
51 ReportPlan& WithReportPlanArn(ReportPlanArnT&& value) {
52 SetReportPlanArn(std::forward<ReportPlanArnT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetReportPlanName() const { return m_reportPlanName; }
64 inline bool ReportPlanNameHasBeenSet() const { return m_reportPlanNameHasBeenSet; }
65 template <typename ReportPlanNameT = Aws::String>
66 void SetReportPlanName(ReportPlanNameT&& value) {
67 m_reportPlanNameHasBeenSet = true;
68 m_reportPlanName = std::forward<ReportPlanNameT>(value);
69 }
70 template <typename ReportPlanNameT = Aws::String>
71 ReportPlan& WithReportPlanName(ReportPlanNameT&& value) {
72 SetReportPlanName(std::forward<ReportPlanNameT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetReportPlanDescription() const { return m_reportPlanDescription; }
83 inline bool ReportPlanDescriptionHasBeenSet() const { return m_reportPlanDescriptionHasBeenSet; }
84 template <typename ReportPlanDescriptionT = Aws::String>
85 void SetReportPlanDescription(ReportPlanDescriptionT&& value) {
86 m_reportPlanDescriptionHasBeenSet = true;
87 m_reportPlanDescription = std::forward<ReportPlanDescriptionT>(value);
88 }
89 template <typename ReportPlanDescriptionT = Aws::String>
90 ReportPlan& WithReportPlanDescription(ReportPlanDescriptionT&& value) {
91 SetReportPlanDescription(std::forward<ReportPlanDescriptionT>(value));
92 return *this;
93 }
95
97
106 inline const ReportSetting& GetReportSetting() const { return m_reportSetting; }
107 inline bool ReportSettingHasBeenSet() const { return m_reportSettingHasBeenSet; }
108 template <typename ReportSettingT = ReportSetting>
109 void SetReportSetting(ReportSettingT&& value) {
110 m_reportSettingHasBeenSet = true;
111 m_reportSetting = std::forward<ReportSettingT>(value);
112 }
113 template <typename ReportSettingT = ReportSetting>
114 ReportPlan& WithReportSetting(ReportSettingT&& value) {
115 SetReportSetting(std::forward<ReportSettingT>(value));
116 return *this;
117 }
119
121
126 inline const ReportDeliveryChannel& GetReportDeliveryChannel() const { return m_reportDeliveryChannel; }
127 inline bool ReportDeliveryChannelHasBeenSet() const { return m_reportDeliveryChannelHasBeenSet; }
128 template <typename ReportDeliveryChannelT = ReportDeliveryChannel>
129 void SetReportDeliveryChannel(ReportDeliveryChannelT&& value) {
130 m_reportDeliveryChannelHasBeenSet = true;
131 m_reportDeliveryChannel = std::forward<ReportDeliveryChannelT>(value);
132 }
133 template <typename ReportDeliveryChannelT = ReportDeliveryChannel>
134 ReportPlan& WithReportDeliveryChannel(ReportDeliveryChannelT&& value) {
135 SetReportDeliveryChannel(std::forward<ReportDeliveryChannelT>(value));
136 return *this;
137 }
139
141
146 inline const Aws::String& GetDeploymentStatus() const { return m_deploymentStatus; }
147 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
148 template <typename DeploymentStatusT = Aws::String>
149 void SetDeploymentStatus(DeploymentStatusT&& value) {
150 m_deploymentStatusHasBeenSet = true;
151 m_deploymentStatus = std::forward<DeploymentStatusT>(value);
152 }
153 template <typename DeploymentStatusT = Aws::String>
154 ReportPlan& WithDeploymentStatus(DeploymentStatusT&& value) {
155 SetDeploymentStatus(std::forward<DeploymentStatusT>(value));
156 return *this;
157 }
159
161
167 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
168 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
169 template <typename CreationTimeT = Aws::Utils::DateTime>
170 void SetCreationTime(CreationTimeT&& value) {
171 m_creationTimeHasBeenSet = true;
172 m_creationTime = std::forward<CreationTimeT>(value);
173 }
174 template <typename CreationTimeT = Aws::Utils::DateTime>
175 ReportPlan& WithCreationTime(CreationTimeT&& value) {
176 SetCreationTime(std::forward<CreationTimeT>(value));
177 return *this;
178 }
180
182
189 inline const Aws::Utils::DateTime& GetLastAttemptedExecutionTime() const { return m_lastAttemptedExecutionTime; }
190 inline bool LastAttemptedExecutionTimeHasBeenSet() const { return m_lastAttemptedExecutionTimeHasBeenSet; }
191 template <typename LastAttemptedExecutionTimeT = Aws::Utils::DateTime>
192 void SetLastAttemptedExecutionTime(LastAttemptedExecutionTimeT&& value) {
193 m_lastAttemptedExecutionTimeHasBeenSet = true;
194 m_lastAttemptedExecutionTime = std::forward<LastAttemptedExecutionTimeT>(value);
195 }
196 template <typename LastAttemptedExecutionTimeT = Aws::Utils::DateTime>
197 ReportPlan& WithLastAttemptedExecutionTime(LastAttemptedExecutionTimeT&& value) {
198 SetLastAttemptedExecutionTime(std::forward<LastAttemptedExecutionTimeT>(value));
199 return *this;
200 }
202
204
211 inline const Aws::Utils::DateTime& GetLastSuccessfulExecutionTime() const { return m_lastSuccessfulExecutionTime; }
212 inline bool LastSuccessfulExecutionTimeHasBeenSet() const { return m_lastSuccessfulExecutionTimeHasBeenSet; }
213 template <typename LastSuccessfulExecutionTimeT = Aws::Utils::DateTime>
214 void SetLastSuccessfulExecutionTime(LastSuccessfulExecutionTimeT&& value) {
215 m_lastSuccessfulExecutionTimeHasBeenSet = true;
216 m_lastSuccessfulExecutionTime = std::forward<LastSuccessfulExecutionTimeT>(value);
217 }
218 template <typename LastSuccessfulExecutionTimeT = Aws::Utils::DateTime>
219 ReportPlan& WithLastSuccessfulExecutionTime(LastSuccessfulExecutionTimeT&& value) {
220 SetLastSuccessfulExecutionTime(std::forward<LastSuccessfulExecutionTimeT>(value));
221 return *this;
222 }
224 private:
225 Aws::String m_reportPlanArn;
226
227 Aws::String m_reportPlanName;
228
229 Aws::String m_reportPlanDescription;
230
231 ReportSetting m_reportSetting;
232
233 ReportDeliveryChannel m_reportDeliveryChannel;
234
235 Aws::String m_deploymentStatus;
236
237 Aws::Utils::DateTime m_creationTime{};
238
239 Aws::Utils::DateTime m_lastAttemptedExecutionTime{};
240
241 Aws::Utils::DateTime m_lastSuccessfulExecutionTime{};
242 bool m_reportPlanArnHasBeenSet = false;
243 bool m_reportPlanNameHasBeenSet = false;
244 bool m_reportPlanDescriptionHasBeenSet = false;
245 bool m_reportSettingHasBeenSet = false;
246 bool m_reportDeliveryChannelHasBeenSet = false;
247 bool m_deploymentStatusHasBeenSet = false;
248 bool m_creationTimeHasBeenSet = false;
249 bool m_lastAttemptedExecutionTimeHasBeenSet = false;
250 bool m_lastSuccessfulExecutionTimeHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace Backup
255} // namespace Aws
const Aws::String & GetReportPlanName() const
Definition ReportPlan.h:63
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUP_API ReportPlan & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API ReportPlan()=default
bool DeploymentStatusHasBeenSet() const
Definition ReportPlan.h:147
ReportPlan & WithReportDeliveryChannel(ReportDeliveryChannelT &&value)
Definition ReportPlan.h:134
ReportPlan & WithReportPlanArn(ReportPlanArnT &&value)
Definition ReportPlan.h:51
void SetCreationTime(CreationTimeT &&value)
Definition ReportPlan.h:170
ReportPlan & WithDeploymentStatus(DeploymentStatusT &&value)
Definition ReportPlan.h:154
const Aws::String & GetDeploymentStatus() const
Definition ReportPlan.h:146
bool ReportPlanNameHasBeenSet() const
Definition ReportPlan.h:64
void SetReportSetting(ReportSettingT &&value)
Definition ReportPlan.h:109
bool ReportPlanDescriptionHasBeenSet() const
Definition ReportPlan.h:83
ReportPlan & WithReportPlanName(ReportPlanNameT &&value)
Definition ReportPlan.h:71
ReportPlan & WithReportSetting(ReportSettingT &&value)
Definition ReportPlan.h:114
bool LastAttemptedExecutionTimeHasBeenSet() const
Definition ReportPlan.h:190
bool ReportDeliveryChannelHasBeenSet() const
Definition ReportPlan.h:127
void SetLastSuccessfulExecutionTime(LastSuccessfulExecutionTimeT &&value)
Definition ReportPlan.h:214
void SetReportDeliveryChannel(ReportDeliveryChannelT &&value)
Definition ReportPlan.h:129
ReportPlan & WithReportPlanDescription(ReportPlanDescriptionT &&value)
Definition ReportPlan.h:90
void SetReportPlanDescription(ReportPlanDescriptionT &&value)
Definition ReportPlan.h:85
const Aws::Utils::DateTime & GetCreationTime() const
Definition ReportPlan.h:167
void SetDeploymentStatus(DeploymentStatusT &&value)
Definition ReportPlan.h:149
const ReportSetting & GetReportSetting() const
Definition ReportPlan.h:106
void SetReportPlanName(ReportPlanNameT &&value)
Definition ReportPlan.h:66
const Aws::String & GetReportPlanArn() const
Definition ReportPlan.h:43
AWS_BACKUP_API ReportPlan(Aws::Utils::Json::JsonView jsonValue)
ReportPlan & WithCreationTime(CreationTimeT &&value)
Definition ReportPlan.h:175
const Aws::Utils::DateTime & GetLastAttemptedExecutionTime() const
Definition ReportPlan.h:189
const Aws::Utils::DateTime & GetLastSuccessfulExecutionTime() const
Definition ReportPlan.h:211
void SetLastAttemptedExecutionTime(LastAttemptedExecutionTimeT &&value)
Definition ReportPlan.h:192
void SetReportPlanArn(ReportPlanArnT &&value)
Definition ReportPlan.h:46
bool ReportPlanArnHasBeenSet() const
Definition ReportPlan.h:44
ReportPlan & WithLastAttemptedExecutionTime(LastAttemptedExecutionTimeT &&value)
Definition ReportPlan.h:197
bool LastSuccessfulExecutionTimeHasBeenSet() const
Definition ReportPlan.h:212
ReportPlan & WithLastSuccessfulExecutionTime(LastSuccessfulExecutionTimeT &&value)
Definition ReportPlan.h:219
const ReportDeliveryChannel & GetReportDeliveryChannel() const
Definition ReportPlan.h:126
const Aws::String & GetReportPlanDescription() const
Definition ReportPlan.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue