AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NotifyMigrationTaskStateRequest.h
1
6#pragma once
7#include <aws/AWSMigrationHub/MigrationHub_EXPORTS.h>
8#include <aws/AWSMigrationHub/MigrationHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/AWSMigrationHub/model/Task.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MigrationHub
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MIGRATIONHUB_API NotifyMigrationTaskStateRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "NotifyMigrationTaskState"; }
33
34 AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override;
35
36 AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetProgressUpdateStream() const{ return m_progressUpdateStream; }
44 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; }
45 inline void SetProgressUpdateStream(const Aws::String& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = value; }
46 inline void SetProgressUpdateStream(Aws::String&& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = std::move(value); }
47 inline void SetProgressUpdateStream(const char* value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream.assign(value); }
50 inline NotifyMigrationTaskStateRequest& WithProgressUpdateStream(const char* value) { SetProgressUpdateStream(value); return *this;}
52
54
58 inline const Aws::String& GetMigrationTaskName() const{ return m_migrationTaskName; }
59 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; }
60 inline void SetMigrationTaskName(const Aws::String& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = value; }
61 inline void SetMigrationTaskName(Aws::String&& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = std::move(value); }
62 inline void SetMigrationTaskName(const char* value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName.assign(value); }
65 inline NotifyMigrationTaskStateRequest& WithMigrationTaskName(const char* value) { SetMigrationTaskName(value); return *this;}
67
69
72 inline const Task& GetTask() const{ return m_task; }
73 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
74 inline void SetTask(const Task& value) { m_taskHasBeenSet = true; m_task = value; }
75 inline void SetTask(Task&& value) { m_taskHasBeenSet = true; m_task = std::move(value); }
76 inline NotifyMigrationTaskStateRequest& WithTask(const Task& value) { SetTask(value); return *this;}
77 inline NotifyMigrationTaskStateRequest& WithTask(Task&& value) { SetTask(std::move(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetUpdateDateTime() const{ return m_updateDateTime; }
85 inline bool UpdateDateTimeHasBeenSet() const { return m_updateDateTimeHasBeenSet; }
86 inline void SetUpdateDateTime(const Aws::Utils::DateTime& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = value; }
87 inline void SetUpdateDateTime(Aws::Utils::DateTime&& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = std::move(value); }
91
93
98 inline int GetNextUpdateSeconds() const{ return m_nextUpdateSeconds; }
99 inline bool NextUpdateSecondsHasBeenSet() const { return m_nextUpdateSecondsHasBeenSet; }
100 inline void SetNextUpdateSeconds(int value) { m_nextUpdateSecondsHasBeenSet = true; m_nextUpdateSeconds = value; }
103
105
109 inline bool GetDryRun() const{ return m_dryRun; }
110 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
111 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
112 inline NotifyMigrationTaskStateRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
114 private:
115
116 Aws::String m_progressUpdateStream;
117 bool m_progressUpdateStreamHasBeenSet = false;
118
119 Aws::String m_migrationTaskName;
120 bool m_migrationTaskNameHasBeenSet = false;
121
122 Task m_task;
123 bool m_taskHasBeenSet = false;
124
125 Aws::Utils::DateTime m_updateDateTime;
126 bool m_updateDateTimeHasBeenSet = false;
127
128 int m_nextUpdateSeconds;
129 bool m_nextUpdateSecondsHasBeenSet = false;
130
131 bool m_dryRun;
132 bool m_dryRunHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace MigrationHub
137} // namespace Aws
AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override
NotifyMigrationTaskStateRequest & WithUpdateDateTime(const Aws::Utils::DateTime &value)
AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
NotifyMigrationTaskStateRequest & WithProgressUpdateStream(const Aws::String &value)
NotifyMigrationTaskStateRequest & WithProgressUpdateStream(Aws::String &&value)
NotifyMigrationTaskStateRequest & WithMigrationTaskName(const Aws::String &value)
NotifyMigrationTaskStateRequest & WithProgressUpdateStream(const char *value)
NotifyMigrationTaskStateRequest & WithMigrationTaskName(const char *value)
NotifyMigrationTaskStateRequest & WithTask(const Task &value)
NotifyMigrationTaskStateRequest & WithUpdateDateTime(Aws::Utils::DateTime &&value)
NotifyMigrationTaskStateRequest & WithMigrationTaskName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String