AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExportTask.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/model/ExportStatus.h>
10#include <aws/mgn/model/ExportTaskSummary.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 mgn
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MGN_API ExportTask() = default;
37 AWS_MGN_API ExportTask(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
47 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
48 template<typename CreationDateTimeT = Aws::String>
49 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
50 template<typename CreationDateTimeT = Aws::String>
51 ExportTask& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
53
55
58 inline const Aws::String& GetEndDateTime() const { return m_endDateTime; }
59 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
60 template<typename EndDateTimeT = Aws::String>
61 void SetEndDateTime(EndDateTimeT&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::forward<EndDateTimeT>(value); }
62 template<typename EndDateTimeT = Aws::String>
63 ExportTask& WithEndDateTime(EndDateTimeT&& value) { SetEndDateTime(std::forward<EndDateTimeT>(value)); return *this;}
65
67
70 inline const Aws::String& GetExportID() const { return m_exportID; }
71 inline bool ExportIDHasBeenSet() const { return m_exportIDHasBeenSet; }
72 template<typename ExportIDT = Aws::String>
73 void SetExportID(ExportIDT&& value) { m_exportIDHasBeenSet = true; m_exportID = std::forward<ExportIDT>(value); }
74 template<typename ExportIDT = Aws::String>
75 ExportTask& WithExportID(ExportIDT&& value) { SetExportID(std::forward<ExportIDT>(value)); return *this;}
77
79
82 inline double GetProgressPercentage() const { return m_progressPercentage; }
83 inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; }
84 inline void SetProgressPercentage(double value) { m_progressPercentageHasBeenSet = true; m_progressPercentage = value; }
85 inline ExportTask& WithProgressPercentage(double value) { SetProgressPercentage(value); return *this;}
87
89
92 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
93 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
94 template<typename S3BucketT = Aws::String>
95 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
96 template<typename S3BucketT = Aws::String>
97 ExportTask& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
99
101
104 inline const Aws::String& GetS3BucketOwner() const { return m_s3BucketOwner; }
105 inline bool S3BucketOwnerHasBeenSet() const { return m_s3BucketOwnerHasBeenSet; }
106 template<typename S3BucketOwnerT = Aws::String>
107 void SetS3BucketOwner(S3BucketOwnerT&& value) { m_s3BucketOwnerHasBeenSet = true; m_s3BucketOwner = std::forward<S3BucketOwnerT>(value); }
108 template<typename S3BucketOwnerT = Aws::String>
109 ExportTask& WithS3BucketOwner(S3BucketOwnerT&& value) { SetS3BucketOwner(std::forward<S3BucketOwnerT>(value)); return *this;}
111
113
116 inline const Aws::String& GetS3Key() const { return m_s3Key; }
117 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
118 template<typename S3KeyT = Aws::String>
119 void SetS3Key(S3KeyT&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::forward<S3KeyT>(value); }
120 template<typename S3KeyT = Aws::String>
121 ExportTask& WithS3Key(S3KeyT&& value) { SetS3Key(std::forward<S3KeyT>(value)); return *this;}
123
125
128 inline ExportStatus GetStatus() const { return m_status; }
129 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
130 inline void SetStatus(ExportStatus value) { m_statusHasBeenSet = true; m_status = value; }
131 inline ExportTask& WithStatus(ExportStatus value) { SetStatus(value); return *this;}
133
135
138 inline const ExportTaskSummary& GetSummary() const { return m_summary; }
139 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
140 template<typename SummaryT = ExportTaskSummary>
141 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
142 template<typename SummaryT = ExportTaskSummary>
143 ExportTask& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
145 private:
146
147 Aws::String m_creationDateTime;
148 bool m_creationDateTimeHasBeenSet = false;
149
150 Aws::String m_endDateTime;
151 bool m_endDateTimeHasBeenSet = false;
152
153 Aws::String m_exportID;
154 bool m_exportIDHasBeenSet = false;
155
156 double m_progressPercentage{0.0};
157 bool m_progressPercentageHasBeenSet = false;
158
159 Aws::String m_s3Bucket;
160 bool m_s3BucketHasBeenSet = false;
161
162 Aws::String m_s3BucketOwner;
163 bool m_s3BucketOwnerHasBeenSet = false;
164
165 Aws::String m_s3Key;
166 bool m_s3KeyHasBeenSet = false;
167
169 bool m_statusHasBeenSet = false;
170
171 ExportTaskSummary m_summary;
172 bool m_summaryHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace mgn
177} // namespace Aws
void SetProgressPercentage(double value)
Definition ExportTask.h:84
ExportTask & WithS3BucketOwner(S3BucketOwnerT &&value)
Definition ExportTask.h:109
const Aws::String & GetS3Key() const
Definition ExportTask.h:116
void SetEndDateTime(EndDateTimeT &&value)
Definition ExportTask.h:61
bool S3BucketOwnerHasBeenSet() const
Definition ExportTask.h:105
ExportTask & WithCreationDateTime(CreationDateTimeT &&value)
Definition ExportTask.h:51
const ExportTaskSummary & GetSummary() const
Definition ExportTask.h:138
void SetStatus(ExportStatus value)
Definition ExportTask.h:130
const Aws::String & GetS3BucketOwner() const
Definition ExportTask.h:104
bool EndDateTimeHasBeenSet() const
Definition ExportTask.h:59
void SetCreationDateTime(CreationDateTimeT &&value)
Definition ExportTask.h:49
ExportTask & WithStatus(ExportStatus value)
Definition ExportTask.h:131
const Aws::String & GetExportID() const
Definition ExportTask.h:70
bool S3BucketHasBeenSet() const
Definition ExportTask.h:93
void SetS3Key(S3KeyT &&value)
Definition ExportTask.h:119
ExportTask & WithEndDateTime(EndDateTimeT &&value)
Definition ExportTask.h:63
ExportTask & WithS3Key(S3KeyT &&value)
Definition ExportTask.h:121
bool CreationDateTimeHasBeenSet() const
Definition ExportTask.h:47
const Aws::String & GetCreationDateTime() const
Definition ExportTask.h:46
AWS_MGN_API ExportTask(Aws::Utils::Json::JsonView jsonValue)
void SetS3BucketOwner(S3BucketOwnerT &&value)
Definition ExportTask.h:107
double GetProgressPercentage() const
Definition ExportTask.h:82
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
bool ExportIDHasBeenSet() const
Definition ExportTask.h:71
ExportTask & WithExportID(ExportIDT &&value)
Definition ExportTask.h:75
void SetS3Bucket(S3BucketT &&value)
Definition ExportTask.h:95
ExportTask & WithSummary(SummaryT &&value)
Definition ExportTask.h:143
ExportTask & WithS3Bucket(S3BucketT &&value)
Definition ExportTask.h:97
const Aws::String & GetEndDateTime() const
Definition ExportTask.h:58
ExportStatus GetStatus() const
Definition ExportTask.h:128
AWS_MGN_API ExportTask()=default
AWS_MGN_API ExportTask & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSummary(SummaryT &&value)
Definition ExportTask.h:141
const Aws::String & GetS3Bucket() const
Definition ExportTask.h:92
bool ProgressPercentageHasBeenSet() const
Definition ExportTask.h:83
void SetExportID(ExportIDT &&value)
Definition ExportTask.h:73
ExportTask & WithProgressPercentage(double value)
Definition ExportTask.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue