AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Task.h
1
6#pragma once
7#include <aws/AWSMigrationHub/MigrationHub_EXPORTS.h>
8#include <aws/AWSMigrationHub/model/Status.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MigrationHub
23{
24namespace Model
25{
26
32 class Task
33 {
34 public:
35 AWS_MIGRATIONHUB_API Task();
36 AWS_MIGRATIONHUB_API Task(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MIGRATIONHUB_API Task& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Status& GetStatus() const{ return m_status; }
46 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
47 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
48 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
49 inline Task& WithStatus(const Status& value) { SetStatus(value); return *this;}
50 inline Task& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
52
54
59 inline const Aws::String& GetStatusDetail() const{ return m_statusDetail; }
60 inline bool StatusDetailHasBeenSet() const { return m_statusDetailHasBeenSet; }
61 inline void SetStatusDetail(const Aws::String& value) { m_statusDetailHasBeenSet = true; m_statusDetail = value; }
62 inline void SetStatusDetail(Aws::String&& value) { m_statusDetailHasBeenSet = true; m_statusDetail = std::move(value); }
63 inline void SetStatusDetail(const char* value) { m_statusDetailHasBeenSet = true; m_statusDetail.assign(value); }
64 inline Task& WithStatusDetail(const Aws::String& value) { SetStatusDetail(value); return *this;}
65 inline Task& WithStatusDetail(Aws::String&& value) { SetStatusDetail(std::move(value)); return *this;}
66 inline Task& WithStatusDetail(const char* value) { SetStatusDetail(value); return *this;}
68
70
73 inline int GetProgressPercent() const{ return m_progressPercent; }
74 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
75 inline void SetProgressPercent(int value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
76 inline Task& WithProgressPercent(int value) { SetProgressPercent(value); return *this;}
78 private:
79
80 Status m_status;
81 bool m_statusHasBeenSet = false;
82
83 Aws::String m_statusDetail;
84 bool m_statusDetailHasBeenSet = false;
85
86 int m_progressPercent;
87 bool m_progressPercentHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace MigrationHub
92} // namespace Aws
AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProgressPercent(int value)
Definition Task.h:75
const Status & GetStatus() const
Definition Task.h:45
void SetStatus(const Status &value)
Definition Task.h:47
AWS_MIGRATIONHUB_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatusDetail(Aws::String &&value)
Definition Task.h:62
const Aws::String & GetStatusDetail() const
Definition Task.h:59
bool ProgressPercentHasBeenSet() const
Definition Task.h:74
AWS_MIGRATIONHUB_API Task()
bool StatusDetailHasBeenSet() const
Definition Task.h:60
Task & WithStatus(Status &&value)
Definition Task.h:50
bool StatusHasBeenSet() const
Definition Task.h:46
Task & WithProgressPercent(int value)
Definition Task.h:76
Task & WithStatusDetail(const Aws::String &value)
Definition Task.h:64
Task & WithStatus(const Status &value)
Definition Task.h:49
int GetProgressPercent() const
Definition Task.h:73
Task & WithStatusDetail(Aws::String &&value)
Definition Task.h:65
void SetStatusDetail(const Aws::String &value)
Definition Task.h:61
Task & WithStatusDetail(const char *value)
Definition Task.h:66
void SetStatus(Status &&value)
Definition Task.h:48
AWS_MIGRATIONHUB_API Task(Aws::Utils::Json::JsonView jsonValue)
void SetStatusDetail(const char *value)
Definition Task.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue