AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MigrationTask.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/Task.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/AWSMigrationHub/model/ResourceAttribute.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MigrationHub
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_MIGRATIONHUB_API MigrationTask();
40 AWS_MIGRATIONHUB_API MigrationTask(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MIGRATIONHUB_API MigrationTask& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetProgressUpdateStream() const{ return m_progressUpdateStream; }
50 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; }
51 inline void SetProgressUpdateStream(const Aws::String& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = value; }
52 inline void SetProgressUpdateStream(Aws::String&& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = std::move(value); }
53 inline void SetProgressUpdateStream(const char* value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream.assign(value); }
54 inline MigrationTask& WithProgressUpdateStream(const Aws::String& value) { SetProgressUpdateStream(value); return *this;}
55 inline MigrationTask& WithProgressUpdateStream(Aws::String&& value) { SetProgressUpdateStream(std::move(value)); return *this;}
56 inline MigrationTask& WithProgressUpdateStream(const char* value) { SetProgressUpdateStream(value); return *this;}
58
60
64 inline const Aws::String& GetMigrationTaskName() const{ return m_migrationTaskName; }
65 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; }
66 inline void SetMigrationTaskName(const Aws::String& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = value; }
67 inline void SetMigrationTaskName(Aws::String&& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = std::move(value); }
68 inline void SetMigrationTaskName(const char* value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName.assign(value); }
69 inline MigrationTask& WithMigrationTaskName(const Aws::String& value) { SetMigrationTaskName(value); return *this;}
70 inline MigrationTask& WithMigrationTaskName(Aws::String&& value) { SetMigrationTaskName(std::move(value)); return *this;}
71 inline MigrationTask& WithMigrationTaskName(const char* value) { SetMigrationTaskName(value); return *this;}
73
75
78 inline const Task& GetTask() const{ return m_task; }
79 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
80 inline void SetTask(const Task& value) { m_taskHasBeenSet = true; m_task = value; }
81 inline void SetTask(Task&& value) { m_taskHasBeenSet = true; m_task = std::move(value); }
82 inline MigrationTask& WithTask(const Task& value) { SetTask(value); return *this;}
83 inline MigrationTask& WithTask(Task&& value) { SetTask(std::move(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetUpdateDateTime() const{ return m_updateDateTime; }
91 inline bool UpdateDateTimeHasBeenSet() const { return m_updateDateTimeHasBeenSet; }
92 inline void SetUpdateDateTime(const Aws::Utils::DateTime& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = value; }
93 inline void SetUpdateDateTime(Aws::Utils::DateTime&& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = std::move(value); }
94 inline MigrationTask& WithUpdateDateTime(const Aws::Utils::DateTime& value) { SetUpdateDateTime(value); return *this;}
95 inline MigrationTask& WithUpdateDateTime(Aws::Utils::DateTime&& value) { SetUpdateDateTime(std::move(value)); return *this;}
97
99
104 inline const Aws::Vector<ResourceAttribute>& GetResourceAttributeList() const{ return m_resourceAttributeList; }
105 inline bool ResourceAttributeListHasBeenSet() const { return m_resourceAttributeListHasBeenSet; }
106 inline void SetResourceAttributeList(const Aws::Vector<ResourceAttribute>& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList = value; }
107 inline void SetResourceAttributeList(Aws::Vector<ResourceAttribute>&& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList = std::move(value); }
110 inline MigrationTask& AddResourceAttributeList(const ResourceAttribute& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList.push_back(value); return *this; }
111 inline MigrationTask& AddResourceAttributeList(ResourceAttribute&& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList.push_back(std::move(value)); return *this; }
113 private:
114
115 Aws::String m_progressUpdateStream;
116 bool m_progressUpdateStreamHasBeenSet = false;
117
118 Aws::String m_migrationTaskName;
119 bool m_migrationTaskNameHasBeenSet = false;
120
121 Task m_task;
122 bool m_taskHasBeenSet = false;
123
124 Aws::Utils::DateTime m_updateDateTime;
125 bool m_updateDateTimeHasBeenSet = false;
126
127 Aws::Vector<ResourceAttribute> m_resourceAttributeList;
128 bool m_resourceAttributeListHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace MigrationHub
133} // namespace Aws
void SetMigrationTaskName(Aws::String &&value)
MigrationTask & WithTask(const Task &value)
void SetProgressUpdateStream(const Aws::String &value)
MigrationTask & WithTask(Task &&value)
const Aws::Utils::DateTime & GetUpdateDateTime() const
const Aws::String & GetMigrationTaskName() const
MigrationTask & WithMigrationTaskName(const Aws::String &value)
void SetProgressUpdateStream(Aws::String &&value)
MigrationTask & WithResourceAttributeList(const Aws::Vector< ResourceAttribute > &value)
AWS_MIGRATIONHUB_API MigrationTask(Aws::Utils::Json::JsonView jsonValue)
void SetUpdateDateTime(Aws::Utils::DateTime &&value)
void SetProgressUpdateStream(const char *value)
void SetResourceAttributeList(Aws::Vector< ResourceAttribute > &&value)
void SetMigrationTaskName(const Aws::String &value)
MigrationTask & WithProgressUpdateStream(Aws::String &&value)
MigrationTask & WithUpdateDateTime(Aws::Utils::DateTime &&value)
AWS_MIGRATIONHUB_API MigrationTask & operator=(Aws::Utils::Json::JsonView jsonValue)
MigrationTask & AddResourceAttributeList(ResourceAttribute &&value)
MigrationTask & WithResourceAttributeList(Aws::Vector< ResourceAttribute > &&value)
MigrationTask & WithProgressUpdateStream(const Aws::String &value)
void SetUpdateDateTime(const Aws::Utils::DateTime &value)
MigrationTask & WithProgressUpdateStream(const char *value)
void SetResourceAttributeList(const Aws::Vector< ResourceAttribute > &value)
const Aws::Vector< ResourceAttribute > & GetResourceAttributeList() const
AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
MigrationTask & WithUpdateDateTime(const Aws::Utils::DateTime &value)
AWS_MIGRATIONHUB_API MigrationTask()
MigrationTask & AddResourceAttributeList(const ResourceAttribute &value)
MigrationTask & WithMigrationTaskName(Aws::String &&value)
void SetMigrationTaskName(const char *value)
MigrationTask & WithMigrationTaskName(const char *value)
const Aws::String & GetProgressUpdateStream() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue