AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreationDateTime(const Aws::String& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
50 inline void SetCreationDateTime(Aws::String&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
51 inline void SetCreationDateTime(const char* value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime.assign(value); }
52 inline ImportTask& WithCreationDateTime(const Aws::String& value) { SetCreationDateTime(value); return *this;}
53 inline ImportTask& WithCreationDateTime(Aws::String&& value) { SetCreationDateTime(std::move(value)); return *this;}
54 inline ImportTask& WithCreationDateTime(const char* value) { SetCreationDateTime(value); return *this;}
56
58
61 inline const Aws::String& GetEndDateTime() const{ return m_endDateTime; }
62 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
63 inline void SetEndDateTime(const Aws::String& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
64 inline void SetEndDateTime(Aws::String&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
65 inline void SetEndDateTime(const char* value) { m_endDateTimeHasBeenSet = true; m_endDateTime.assign(value); }
66 inline ImportTask& WithEndDateTime(const Aws::String& value) { SetEndDateTime(value); return *this;}
67 inline ImportTask& WithEndDateTime(Aws::String&& value) { SetEndDateTime(std::move(value)); return *this;}
68 inline ImportTask& WithEndDateTime(const char* value) { SetEndDateTime(value); return *this;}
70
72
75 inline const Aws::String& GetImportID() const{ return m_importID; }
76 inline bool ImportIDHasBeenSet() const { return m_importIDHasBeenSet; }
77 inline void SetImportID(const Aws::String& value) { m_importIDHasBeenSet = true; m_importID = value; }
78 inline void SetImportID(Aws::String&& value) { m_importIDHasBeenSet = true; m_importID = std::move(value); }
79 inline void SetImportID(const char* value) { m_importIDHasBeenSet = true; m_importID.assign(value); }
80 inline ImportTask& WithImportID(const Aws::String& value) { SetImportID(value); return *this;}
81 inline ImportTask& WithImportID(Aws::String&& value) { SetImportID(std::move(value)); return *this;}
82 inline ImportTask& WithImportID(const char* value) { SetImportID(value); return *this;}
84
86
89 inline double GetProgressPercentage() const{ return m_progressPercentage; }
90 inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; }
91 inline void SetProgressPercentage(double value) { m_progressPercentageHasBeenSet = true; m_progressPercentage = value; }
92 inline ImportTask& WithProgressPercentage(double value) { SetProgressPercentage(value); return *this;}
94
96
99 inline const S3BucketSource& GetS3BucketSource() const{ return m_s3BucketSource; }
100 inline bool S3BucketSourceHasBeenSet() const { return m_s3BucketSourceHasBeenSet; }
101 inline void SetS3BucketSource(const S3BucketSource& value) { m_s3BucketSourceHasBeenSet = true; m_s3BucketSource = value; }
102 inline void SetS3BucketSource(S3BucketSource&& value) { m_s3BucketSourceHasBeenSet = true; m_s3BucketSource = std::move(value); }
103 inline ImportTask& WithS3BucketSource(const S3BucketSource& value) { SetS3BucketSource(value); return *this;}
104 inline ImportTask& WithS3BucketSource(S3BucketSource&& value) { SetS3BucketSource(std::move(value)); return *this;}
106
108
111 inline const ImportStatus& GetStatus() const{ return m_status; }
112 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
113 inline void SetStatus(const ImportStatus& value) { m_statusHasBeenSet = true; m_status = value; }
114 inline void SetStatus(ImportStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
115 inline ImportTask& WithStatus(const ImportStatus& value) { SetStatus(value); return *this;}
116 inline ImportTask& WithStatus(ImportStatus&& value) { SetStatus(std::move(value)); return *this;}
118
120
123 inline const ImportTaskSummary& GetSummary() const{ return m_summary; }
124 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
125 inline void SetSummary(const ImportTaskSummary& value) { m_summaryHasBeenSet = true; m_summary = value; }
126 inline void SetSummary(ImportTaskSummary&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
127 inline ImportTask& WithSummary(const ImportTaskSummary& value) { SetSummary(value); return *this;}
128 inline ImportTask& WithSummary(ImportTaskSummary&& value) { SetSummary(std::move(value)); return *this;}
130 private:
131
132 Aws::String m_creationDateTime;
133 bool m_creationDateTimeHasBeenSet = false;
134
135 Aws::String m_endDateTime;
136 bool m_endDateTimeHasBeenSet = false;
137
138 Aws::String m_importID;
139 bool m_importIDHasBeenSet = false;
140
141 double m_progressPercentage;
142 bool m_progressPercentageHasBeenSet = false;
143
144 S3BucketSource m_s3BucketSource;
145 bool m_s3BucketSourceHasBeenSet = false;
146
147 ImportStatus m_status;
148 bool m_statusHasBeenSet = false;
149
150 ImportTaskSummary m_summary;
151 bool m_summaryHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace mgn
156} // namespace Aws
ImportTask & WithImportID(const char *value)
Definition ImportTask.h:82
const ImportTaskSummary & GetSummary() const
Definition ImportTask.h:123
ImportTask & WithStatus(const ImportStatus &value)
Definition ImportTask.h:115
const Aws::String & GetCreationDateTime() const
Definition ImportTask.h:47
ImportTask & WithStatus(ImportStatus &&value)
Definition ImportTask.h:116
void SetImportID(const Aws::String &value)
Definition ImportTask.h:77
void SetSummary(const ImportTaskSummary &value)
Definition ImportTask.h:125
double GetProgressPercentage() const
Definition ImportTask.h:89
const Aws::String & GetEndDateTime() const
Definition ImportTask.h:61
void SetEndDateTime(const Aws::String &value)
Definition ImportTask.h:63
void SetEndDateTime(const char *value)
Definition ImportTask.h:65
void SetImportID(Aws::String &&value)
Definition ImportTask.h:78
void SetS3BucketSource(const S3BucketSource &value)
Definition ImportTask.h:101
void SetSummary(ImportTaskSummary &&value)
Definition ImportTask.h:126
ImportTask & WithImportID(Aws::String &&value)
Definition ImportTask.h:81
ImportTask & WithSummary(ImportTaskSummary &&value)
Definition ImportTask.h:128
ImportTask & WithImportID(const Aws::String &value)
Definition ImportTask.h:80
const Aws::String & GetImportID() const
Definition ImportTask.h:75
ImportTask & WithS3BucketSource(S3BucketSource &&value)
Definition ImportTask.h:104
ImportTask & WithEndDateTime(const char *value)
Definition ImportTask.h:68
void SetStatus(const ImportStatus &value)
Definition ImportTask.h:113
bool EndDateTimeHasBeenSet() const
Definition ImportTask.h:62
void SetCreationDateTime(const Aws::String &value)
Definition ImportTask.h:49
AWS_MGN_API ImportTask & operator=(Aws::Utils::Json::JsonView jsonValue)
ImportTask & WithS3BucketSource(const S3BucketSource &value)
Definition ImportTask.h:103
const ImportStatus & GetStatus() const
Definition ImportTask.h:111
ImportTask & WithCreationDateTime(const char *value)
Definition ImportTask.h:54
ImportTask & WithCreationDateTime(Aws::String &&value)
Definition ImportTask.h:53
ImportTask & WithSummary(const ImportTaskSummary &value)
Definition ImportTask.h:127
ImportTask & WithCreationDateTime(const Aws::String &value)
Definition ImportTask.h:52
bool ImportIDHasBeenSet() const
Definition ImportTask.h:76
void SetImportID(const char *value)
Definition ImportTask.h:79
bool S3BucketSourceHasBeenSet() const
Definition ImportTask.h:100
void SetS3BucketSource(S3BucketSource &&value)
Definition ImportTask.h:102
AWS_MGN_API ImportTask(Aws::Utils::Json::JsonView jsonValue)
void SetProgressPercentage(double value)
Definition ImportTask.h:91
void SetCreationDateTime(const char *value)
Definition ImportTask.h:51
void SetStatus(ImportStatus &&value)
Definition ImportTask.h:114
bool ProgressPercentageHasBeenSet() const
Definition ImportTask.h:90
bool CreationDateTimeHasBeenSet() const
Definition ImportTask.h:48
const S3BucketSource & GetS3BucketSource() const
Definition ImportTask.h:99
ImportTask & WithEndDateTime(const Aws::String &value)
Definition ImportTask.h:66
ImportTask & WithProgressPercentage(double value)
Definition ImportTask.h:92
void SetEndDateTime(Aws::String &&value)
Definition ImportTask.h:64
ImportTask & WithEndDateTime(Aws::String &&value)
Definition ImportTask.h:67
void SetCreationDateTime(Aws::String &&value)
Definition ImportTask.h:50
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