AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReportJob.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/backup/model/ReportDestination.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 Backup
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_BACKUP_API ReportJob() = default;
39 AWS_BACKUP_API ReportJob(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetReportJobId() const { return m_reportJobId; }
51 inline bool ReportJobIdHasBeenSet() const { return m_reportJobIdHasBeenSet; }
52 template<typename ReportJobIdT = Aws::String>
53 void SetReportJobId(ReportJobIdT&& value) { m_reportJobIdHasBeenSet = true; m_reportJobId = std::forward<ReportJobIdT>(value); }
54 template<typename ReportJobIdT = Aws::String>
55 ReportJob& WithReportJobId(ReportJobIdT&& value) { SetReportJobId(std::forward<ReportJobIdT>(value)); return *this;}
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) { m_reportPlanArnHasBeenSet = true; m_reportPlanArn = std::forward<ReportPlanArnT>(value); }
67 template<typename ReportPlanArnT = Aws::String>
68 ReportJob& WithReportPlanArn(ReportPlanArnT&& value) { SetReportPlanArn(std::forward<ReportPlanArnT>(value)); return *this;}
70
72
78 inline const Aws::String& GetReportTemplate() const { return m_reportTemplate; }
79 inline bool ReportTemplateHasBeenSet() const { return m_reportTemplateHasBeenSet; }
80 template<typename ReportTemplateT = Aws::String>
81 void SetReportTemplate(ReportTemplateT&& value) { m_reportTemplateHasBeenSet = true; m_reportTemplate = std::forward<ReportTemplateT>(value); }
82 template<typename ReportTemplateT = Aws::String>
83 ReportJob& WithReportTemplate(ReportTemplateT&& value) { SetReportTemplate(std::forward<ReportTemplateT>(value)); return *this;}
85
87
93 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
94 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
95 template<typename CreationTimeT = Aws::Utils::DateTime>
96 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
97 template<typename CreationTimeT = Aws::Utils::DateTime>
98 ReportJob& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
100
102
108 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
109 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
110 template<typename CompletionTimeT = Aws::Utils::DateTime>
111 void SetCompletionTime(CompletionTimeT&& value) { m_completionTimeHasBeenSet = true; m_completionTime = std::forward<CompletionTimeT>(value); }
112 template<typename CompletionTimeT = Aws::Utils::DateTime>
113 ReportJob& WithCompletionTime(CompletionTimeT&& value) { SetCompletionTime(std::forward<CompletionTimeT>(value)); return *this;}
115
117
124 inline const Aws::String& GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 template<typename StatusT = Aws::String>
127 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
128 template<typename StatusT = Aws::String>
129 ReportJob& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
131
133
136 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
137 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
138 template<typename StatusMessageT = Aws::String>
139 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
140 template<typename StatusMessageT = Aws::String>
141 ReportJob& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
143
145
149 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
150 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
151 template<typename ReportDestinationT = ReportDestination>
152 void SetReportDestination(ReportDestinationT&& value) { m_reportDestinationHasBeenSet = true; m_reportDestination = std::forward<ReportDestinationT>(value); }
153 template<typename ReportDestinationT = ReportDestination>
154 ReportJob& WithReportDestination(ReportDestinationT&& value) { SetReportDestination(std::forward<ReportDestinationT>(value)); return *this;}
156 private:
157
158 Aws::String m_reportJobId;
159 bool m_reportJobIdHasBeenSet = false;
160
161 Aws::String m_reportPlanArn;
162 bool m_reportPlanArnHasBeenSet = false;
163
164 Aws::String m_reportTemplate;
165 bool m_reportTemplateHasBeenSet = false;
166
167 Aws::Utils::DateTime m_creationTime{};
168 bool m_creationTimeHasBeenSet = false;
169
170 Aws::Utils::DateTime m_completionTime{};
171 bool m_completionTimeHasBeenSet = false;
172
173 Aws::String m_status;
174 bool m_statusHasBeenSet = false;
175
176 Aws::String m_statusMessage;
177 bool m_statusMessageHasBeenSet = false;
178
179 ReportDestination m_reportDestination;
180 bool m_reportDestinationHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace Backup
185} // namespace Aws
void SetCreationTime(CreationTimeT &&value)
Definition ReportJob.h:96
bool ReportPlanArnHasBeenSet() const
Definition ReportJob.h:64
bool ReportDestinationHasBeenSet() const
Definition ReportJob.h:150
AWS_BACKUP_API ReportJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatusMessage(StatusMessageT &&value)
Definition ReportJob.h:139
AWS_BACKUP_API ReportJob()=default
ReportJob & WithCreationTime(CreationTimeT &&value)
Definition ReportJob.h:98
ReportJob & WithStatus(StatusT &&value)
Definition ReportJob.h:129
bool ReportTemplateHasBeenSet() const
Definition ReportJob.h:79
ReportJob & WithCompletionTime(CompletionTimeT &&value)
Definition ReportJob.h:113
ReportJob & WithStatusMessage(StatusMessageT &&value)
Definition ReportJob.h:141
bool ReportJobIdHasBeenSet() const
Definition ReportJob.h:51
const Aws::String & GetReportJobId() const
Definition ReportJob.h:50
bool CreationTimeHasBeenSet() const
Definition ReportJob.h:94
void SetReportDestination(ReportDestinationT &&value)
Definition ReportJob.h:152
void SetReportTemplate(ReportTemplateT &&value)
Definition ReportJob.h:81
const Aws::String & GetReportPlanArn() const
Definition ReportJob.h:63
void SetReportJobId(ReportJobIdT &&value)
Definition ReportJob.h:53
bool StatusMessageHasBeenSet() const
Definition ReportJob.h:137
ReportJob & WithReportPlanArn(ReportPlanArnT &&value)
Definition ReportJob.h:68
const Aws::Utils::DateTime & GetCreationTime() const
Definition ReportJob.h:93
const Aws::String & GetReportTemplate() const
Definition ReportJob.h:78
const Aws::String & GetStatusMessage() const
Definition ReportJob.h:136
void SetCompletionTime(CompletionTimeT &&value)
Definition ReportJob.h:111
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
ReportJob & WithReportJobId(ReportJobIdT &&value)
Definition ReportJob.h:55
const Aws::String & GetStatus() const
Definition ReportJob.h:124
AWS_BACKUP_API ReportJob(Aws::Utils::Json::JsonView jsonValue)
const ReportDestination & GetReportDestination() const
Definition ReportJob.h:149
ReportJob & WithReportDestination(ReportDestinationT &&value)
Definition ReportJob.h:154
ReportJob & WithReportTemplate(ReportTemplateT &&value)
Definition ReportJob.h:83
void SetStatus(StatusT &&value)
Definition ReportJob.h:127
bool CompletionTimeHasBeenSet() const
Definition ReportJob.h:109
void SetReportPlanArn(ReportPlanArnT &&value)
Definition ReportJob.h:66
const Aws::Utils::DateTime & GetCompletionTime() const
Definition ReportJob.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue