AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImportTask.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/S3BucketSource.h>
10#include <aws/mgn/model/ImportStatus.h>
11#include <aws/mgn/model/ImportTaskSummary.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace mgn
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MGN_API ImportTask() = default;
38 AWS_MGN_API ImportTask(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
48 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
49 template<typename CreationDateTimeT = Aws::String>
50 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
51 template<typename CreationDateTimeT = Aws::String>
52 ImportTask& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
54
56
59 inline const Aws::String& GetEndDateTime() const { return m_endDateTime; }
60 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
61 template<typename EndDateTimeT = Aws::String>
62 void SetEndDateTime(EndDateTimeT&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::forward<EndDateTimeT>(value); }
63 template<typename EndDateTimeT = Aws::String>
64 ImportTask& WithEndDateTime(EndDateTimeT&& value) { SetEndDateTime(std::forward<EndDateTimeT>(value)); return *this;}
66
68
71 inline const Aws::String& GetImportID() const { return m_importID; }
72 inline bool ImportIDHasBeenSet() const { return m_importIDHasBeenSet; }
73 template<typename ImportIDT = Aws::String>
74 void SetImportID(ImportIDT&& value) { m_importIDHasBeenSet = true; m_importID = std::forward<ImportIDT>(value); }
75 template<typename ImportIDT = Aws::String>
76 ImportTask& WithImportID(ImportIDT&& value) { SetImportID(std::forward<ImportIDT>(value)); return *this;}
78
80
83 inline double GetProgressPercentage() const { return m_progressPercentage; }
84 inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; }
85 inline void SetProgressPercentage(double value) { m_progressPercentageHasBeenSet = true; m_progressPercentage = value; }
86 inline ImportTask& WithProgressPercentage(double value) { SetProgressPercentage(value); return *this;}
88
90
93 inline const S3BucketSource& GetS3BucketSource() const { return m_s3BucketSource; }
94 inline bool S3BucketSourceHasBeenSet() const { return m_s3BucketSourceHasBeenSet; }
95 template<typename S3BucketSourceT = S3BucketSource>
96 void SetS3BucketSource(S3BucketSourceT&& value) { m_s3BucketSourceHasBeenSet = true; m_s3BucketSource = std::forward<S3BucketSourceT>(value); }
97 template<typename S3BucketSourceT = S3BucketSource>
98 ImportTask& WithS3BucketSource(S3BucketSourceT&& value) { SetS3BucketSource(std::forward<S3BucketSourceT>(value)); return *this;}
100
102
105 inline ImportStatus GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(ImportStatus value) { m_statusHasBeenSet = true; m_status = value; }
108 inline ImportTask& WithStatus(ImportStatus value) { SetStatus(value); return *this;}
110
112
115 inline const ImportTaskSummary& GetSummary() const { return m_summary; }
116 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
117 template<typename SummaryT = ImportTaskSummary>
118 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
119 template<typename SummaryT = ImportTaskSummary>
120 ImportTask& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
122 private:
123
124 Aws::String m_creationDateTime;
125 bool m_creationDateTimeHasBeenSet = false;
126
127 Aws::String m_endDateTime;
128 bool m_endDateTimeHasBeenSet = false;
129
130 Aws::String m_importID;
131 bool m_importIDHasBeenSet = false;
132
133 double m_progressPercentage{0.0};
134 bool m_progressPercentageHasBeenSet = false;
135
136 S3BucketSource m_s3BucketSource;
137 bool m_s3BucketSourceHasBeenSet = false;
138
140 bool m_statusHasBeenSet = false;
141
142 ImportTaskSummary m_summary;
143 bool m_summaryHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace mgn
148} // namespace Aws
ImportStatus GetStatus() const
Definition ImportTask.h:105
const ImportTaskSummary & GetSummary() const
Definition ImportTask.h:115
const Aws::String & GetCreationDateTime() const
Definition ImportTask.h:47
AWS_MGN_API ImportTask()=default
double GetProgressPercentage() const
Definition ImportTask.h:83
const Aws::String & GetEndDateTime() const
Definition ImportTask.h:59
void SetS3BucketSource(S3BucketSourceT &&value)
Definition ImportTask.h:96
const Aws::String & GetImportID() const
Definition ImportTask.h:71
ImportTask & WithSummary(SummaryT &&value)
Definition ImportTask.h:120
bool EndDateTimeHasBeenSet() const
Definition ImportTask.h:60
ImportTask & WithS3BucketSource(S3BucketSourceT &&value)
Definition ImportTask.h:98
void SetSummary(SummaryT &&value)
Definition ImportTask.h:118
void SetImportID(ImportIDT &&value)
Definition ImportTask.h:74
AWS_MGN_API ImportTask & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ImportStatus value)
Definition ImportTask.h:107
ImportTask & WithCreationDateTime(CreationDateTimeT &&value)
Definition ImportTask.h:52
void SetEndDateTime(EndDateTimeT &&value)
Definition ImportTask.h:62
ImportTask & WithEndDateTime(EndDateTimeT &&value)
Definition ImportTask.h:64
ImportTask & WithImportID(ImportIDT &&value)
Definition ImportTask.h:76
bool ImportIDHasBeenSet() const
Definition ImportTask.h:72
bool S3BucketSourceHasBeenSet() const
Definition ImportTask.h:94
void SetCreationDateTime(CreationDateTimeT &&value)
Definition ImportTask.h:50
AWS_MGN_API ImportTask(Aws::Utils::Json::JsonView jsonValue)
void SetProgressPercentage(double value)
Definition ImportTask.h:85
bool ProgressPercentageHasBeenSet() const
Definition ImportTask.h:84
bool CreationDateTimeHasBeenSet() const
Definition ImportTask.h:48
const S3BucketSource & GetS3BucketSource() const
Definition ImportTask.h:93
ImportTask & WithProgressPercentage(double value)
Definition ImportTask.h:86
ImportTask & WithStatus(ImportStatus value)
Definition ImportTask.h:108
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue