AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MigrationTaskSummary.h
1
6#pragma once
7#include <aws/AWSMigrationHub/MigrationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/AWSMigrationHub/model/Status.h>
10#include <aws/core/utils/DateTime.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 MigrationHub
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_MIGRATIONHUB_API MigrationTaskSummary();
40 AWS_MIGRATIONHUB_API MigrationTaskSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetProgressUpdateStream() const{ return m_progressUpdateStream; }
51 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; }
52 inline void SetProgressUpdateStream(const Aws::String& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = value; }
53 inline void SetProgressUpdateStream(Aws::String&& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = std::move(value); }
54 inline void SetProgressUpdateStream(const char* value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream.assign(value); }
56 inline MigrationTaskSummary& WithProgressUpdateStream(Aws::String&& value) { SetProgressUpdateStream(std::move(value)); return *this;}
57 inline MigrationTaskSummary& WithProgressUpdateStream(const char* value) { SetProgressUpdateStream(value); return *this;}
59
61
65 inline const Aws::String& GetMigrationTaskName() const{ return m_migrationTaskName; }
66 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; }
67 inline void SetMigrationTaskName(const Aws::String& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = value; }
68 inline void SetMigrationTaskName(Aws::String&& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = std::move(value); }
69 inline void SetMigrationTaskName(const char* value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName.assign(value); }
70 inline MigrationTaskSummary& WithMigrationTaskName(const Aws::String& value) { SetMigrationTaskName(value); return *this;}
71 inline MigrationTaskSummary& WithMigrationTaskName(Aws::String&& value) { SetMigrationTaskName(std::move(value)); return *this;}
72 inline MigrationTaskSummary& WithMigrationTaskName(const char* value) { SetMigrationTaskName(value); return *this;}
74
76
79 inline const Status& GetStatus() const{ return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
82 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
83 inline MigrationTaskSummary& WithStatus(const Status& value) { SetStatus(value); return *this;}
84 inline MigrationTaskSummary& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
86
88
91 inline int GetProgressPercent() const{ return m_progressPercent; }
92 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
93 inline void SetProgressPercent(int value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
94 inline MigrationTaskSummary& WithProgressPercent(int value) { SetProgressPercent(value); return *this;}
96
98
101 inline const Aws::String& GetStatusDetail() const{ return m_statusDetail; }
102 inline bool StatusDetailHasBeenSet() const { return m_statusDetailHasBeenSet; }
103 inline void SetStatusDetail(const Aws::String& value) { m_statusDetailHasBeenSet = true; m_statusDetail = value; }
104 inline void SetStatusDetail(Aws::String&& value) { m_statusDetailHasBeenSet = true; m_statusDetail = std::move(value); }
105 inline void SetStatusDetail(const char* value) { m_statusDetailHasBeenSet = true; m_statusDetail.assign(value); }
106 inline MigrationTaskSummary& WithStatusDetail(const Aws::String& value) { SetStatusDetail(value); return *this;}
107 inline MigrationTaskSummary& WithStatusDetail(Aws::String&& value) { SetStatusDetail(std::move(value)); return *this;}
108 inline MigrationTaskSummary& WithStatusDetail(const char* value) { SetStatusDetail(value); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetUpdateDateTime() const{ return m_updateDateTime; }
116 inline bool UpdateDateTimeHasBeenSet() const { return m_updateDateTimeHasBeenSet; }
117 inline void SetUpdateDateTime(const Aws::Utils::DateTime& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = value; }
118 inline void SetUpdateDateTime(Aws::Utils::DateTime&& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = std::move(value); }
120 inline MigrationTaskSummary& WithUpdateDateTime(Aws::Utils::DateTime&& value) { SetUpdateDateTime(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_progressUpdateStream;
125 bool m_progressUpdateStreamHasBeenSet = false;
126
127 Aws::String m_migrationTaskName;
128 bool m_migrationTaskNameHasBeenSet = false;
129
130 Status m_status;
131 bool m_statusHasBeenSet = false;
132
133 int m_progressPercent;
134 bool m_progressPercentHasBeenSet = false;
135
136 Aws::String m_statusDetail;
137 bool m_statusDetailHasBeenSet = false;
138
139 Aws::Utils::DateTime m_updateDateTime;
140 bool m_updateDateTimeHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace MigrationHub
145} // namespace Aws
MigrationTaskSummary & WithProgressPercent(int value)
MigrationTaskSummary & WithProgressUpdateStream(const char *value)
const Aws::Utils::DateTime & GetUpdateDateTime() const
MigrationTaskSummary & WithMigrationTaskName(const char *value)
void SetUpdateDateTime(const Aws::Utils::DateTime &value)
void SetUpdateDateTime(Aws::Utils::DateTime &&value)
AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
MigrationTaskSummary & WithUpdateDateTime(Aws::Utils::DateTime &&value)
MigrationTaskSummary & WithMigrationTaskName(const Aws::String &value)
MigrationTaskSummary & WithMigrationTaskName(Aws::String &&value)
MigrationTaskSummary & WithStatusDetail(const Aws::String &value)
MigrationTaskSummary & WithProgressUpdateStream(const Aws::String &value)
AWS_MIGRATIONHUB_API MigrationTaskSummary(Aws::Utils::Json::JsonView jsonValue)
MigrationTaskSummary & WithStatusDetail(const char *value)
AWS_MIGRATIONHUB_API MigrationTaskSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
MigrationTaskSummary & WithProgressUpdateStream(Aws::String &&value)
void SetMigrationTaskName(const Aws::String &value)
MigrationTaskSummary & WithStatus(Status &&value)
MigrationTaskSummary & WithStatusDetail(Aws::String &&value)
MigrationTaskSummary & WithStatus(const Status &value)
MigrationTaskSummary & WithUpdateDateTime(const Aws::Utils::DateTime &value)
void SetProgressUpdateStream(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue