AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
ReportJob.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/ReportDestination.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Backup {
22namespace Model {
23
31class ReportJob {
32 public:
33 AWS_BACKUP_API ReportJob() = default;
34 AWS_BACKUP_API ReportJob(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetReportJobId() const { return m_reportJobId; }
45 inline bool ReportJobIdHasBeenSet() const { return m_reportJobIdHasBeenSet; }
46 template <typename ReportJobIdT = Aws::String>
47 void SetReportJobId(ReportJobIdT&& value) {
48 m_reportJobIdHasBeenSet = true;
49 m_reportJobId = std::forward<ReportJobIdT>(value);
50 }
51 template <typename ReportJobIdT = Aws::String>
52 ReportJob& WithReportJobId(ReportJobIdT&& value) {
53 SetReportJobId(std::forward<ReportJobIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetReportPlanArn() const { return m_reportPlanArn; }
64 inline bool ReportPlanArnHasBeenSet() const { return m_reportPlanArnHasBeenSet; }
65 template <typename ReportPlanArnT = Aws::String>
66 void SetReportPlanArn(ReportPlanArnT&& value) {
67 m_reportPlanArnHasBeenSet = true;
68 m_reportPlanArn = std::forward<ReportPlanArnT>(value);
69 }
70 template <typename ReportPlanArnT = Aws::String>
71 ReportJob& WithReportPlanArn(ReportPlanArnT&& value) {
72 SetReportPlanArn(std::forward<ReportPlanArnT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::String& GetReportTemplate() const { return m_reportTemplate; }
85 inline bool ReportTemplateHasBeenSet() const { return m_reportTemplateHasBeenSet; }
86 template <typename ReportTemplateT = Aws::String>
87 void SetReportTemplate(ReportTemplateT&& value) {
88 m_reportTemplateHasBeenSet = true;
89 m_reportTemplate = std::forward<ReportTemplateT>(value);
90 }
91 template <typename ReportTemplateT = Aws::String>
92 ReportJob& WithReportTemplate(ReportTemplateT&& value) {
93 SetReportTemplate(std::forward<ReportTemplateT>(value));
94 return *this;
95 }
97
99
105 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
106 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
107 template <typename CreationTimeT = Aws::Utils::DateTime>
108 void SetCreationTime(CreationTimeT&& value) {
109 m_creationTimeHasBeenSet = true;
110 m_creationTime = std::forward<CreationTimeT>(value);
111 }
112 template <typename CreationTimeT = Aws::Utils::DateTime>
113 ReportJob& WithCreationTime(CreationTimeT&& value) {
114 SetCreationTime(std::forward<CreationTimeT>(value));
115 return *this;
116 }
118
120
126 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
127 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
128 template <typename CompletionTimeT = Aws::Utils::DateTime>
129 void SetCompletionTime(CompletionTimeT&& value) {
130 m_completionTimeHasBeenSet = true;
131 m_completionTime = std::forward<CompletionTimeT>(value);
132 }
133 template <typename CompletionTimeT = Aws::Utils::DateTime>
134 ReportJob& WithCompletionTime(CompletionTimeT&& value) {
135 SetCompletionTime(std::forward<CompletionTimeT>(value));
136 return *this;
137 }
139
141
148 inline const Aws::String& GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 template <typename StatusT = Aws::String>
151 void SetStatus(StatusT&& value) {
152 m_statusHasBeenSet = true;
153 m_status = std::forward<StatusT>(value);
154 }
155 template <typename StatusT = Aws::String>
156 ReportJob& WithStatus(StatusT&& value) {
157 SetStatus(std::forward<StatusT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
167 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
168 template <typename StatusMessageT = Aws::String>
169 void SetStatusMessage(StatusMessageT&& value) {
170 m_statusMessageHasBeenSet = true;
171 m_statusMessage = std::forward<StatusMessageT>(value);
172 }
173 template <typename StatusMessageT = Aws::String>
174 ReportJob& WithStatusMessage(StatusMessageT&& value) {
175 SetStatusMessage(std::forward<StatusMessageT>(value));
176 return *this;
177 }
179
181
185 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
186 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
187 template <typename ReportDestinationT = ReportDestination>
188 void SetReportDestination(ReportDestinationT&& value) {
189 m_reportDestinationHasBeenSet = true;
190 m_reportDestination = std::forward<ReportDestinationT>(value);
191 }
192 template <typename ReportDestinationT = ReportDestination>
193 ReportJob& WithReportDestination(ReportDestinationT&& value) {
194 SetReportDestination(std::forward<ReportDestinationT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_reportJobId;
200
201 Aws::String m_reportPlanArn;
202
203 Aws::String m_reportTemplate;
204
205 Aws::Utils::DateTime m_creationTime{};
206
207 Aws::Utils::DateTime m_completionTime{};
208
209 Aws::String m_status;
210
211 Aws::String m_statusMessage;
212
213 ReportDestination m_reportDestination;
214 bool m_reportJobIdHasBeenSet = false;
215 bool m_reportPlanArnHasBeenSet = false;
216 bool m_reportTemplateHasBeenSet = false;
217 bool m_creationTimeHasBeenSet = false;
218 bool m_completionTimeHasBeenSet = false;
219 bool m_statusHasBeenSet = false;
220 bool m_statusMessageHasBeenSet = false;
221 bool m_reportDestinationHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace Backup
226} // namespace Aws
void SetCreationTime(CreationTimeT &&value)
Definition ReportJob.h:108
bool ReportPlanArnHasBeenSet() const
Definition ReportJob.h:64
bool ReportDestinationHasBeenSet() const
Definition ReportJob.h:186
AWS_BACKUP_API ReportJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatusMessage(StatusMessageT &&value)
Definition ReportJob.h:169
AWS_BACKUP_API ReportJob()=default
ReportJob & WithCreationTime(CreationTimeT &&value)
Definition ReportJob.h:113
ReportJob & WithStatus(StatusT &&value)
Definition ReportJob.h:156
bool ReportTemplateHasBeenSet() const
Definition ReportJob.h:85
ReportJob & WithCompletionTime(CompletionTimeT &&value)
Definition ReportJob.h:134
ReportJob & WithStatusMessage(StatusMessageT &&value)
Definition ReportJob.h:174
bool ReportJobIdHasBeenSet() const
Definition ReportJob.h:45
const Aws::String & GetReportJobId() const
Definition ReportJob.h:44
bool CreationTimeHasBeenSet() const
Definition ReportJob.h:106
void SetReportDestination(ReportDestinationT &&value)
Definition ReportJob.h:188
void SetReportTemplate(ReportTemplateT &&value)
Definition ReportJob.h:87
const Aws::String & GetReportPlanArn() const
Definition ReportJob.h:63
void SetReportJobId(ReportJobIdT &&value)
Definition ReportJob.h:47
bool StatusMessageHasBeenSet() const
Definition ReportJob.h:167
ReportJob & WithReportPlanArn(ReportPlanArnT &&value)
Definition ReportJob.h:71
const Aws::Utils::DateTime & GetCreationTime() const
Definition ReportJob.h:105
const Aws::String & GetReportTemplate() const
Definition ReportJob.h:84
const Aws::String & GetStatusMessage() const
Definition ReportJob.h:166
void SetCompletionTime(CompletionTimeT &&value)
Definition ReportJob.h:129
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
ReportJob & WithReportJobId(ReportJobIdT &&value)
Definition ReportJob.h:52
const Aws::String & GetStatus() const
Definition ReportJob.h:148
AWS_BACKUP_API ReportJob(Aws::Utils::Json::JsonView jsonValue)
const ReportDestination & GetReportDestination() const
Definition ReportJob.h:185
ReportJob & WithReportDestination(ReportDestinationT &&value)
Definition ReportJob.h:193
ReportJob & WithReportTemplate(ReportTemplateT &&value)
Definition ReportJob.h:92
void SetStatus(StatusT &&value)
Definition ReportJob.h:151
bool CompletionTimeHasBeenSet() const
Definition ReportJob.h:127
void SetReportPlanArn(ReportPlanArnT &&value)
Definition ReportJob.h:66
const Aws::Utils::DateTime & GetCompletionTime() const
Definition ReportJob.h:126
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue