AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ImportMigrationTaskRequest.h
1
6#pragma once
7#include <aws/AWSMigrationHub/MigrationHubRequest.h>
8#include <aws/AWSMigrationHub/MigrationHub_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace MigrationHub {
15namespace Model {
16
20 public:
21 AWS_MIGRATIONHUB_API ImportMigrationTaskRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ImportMigrationTask"; }
28
29 AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override;
30
31 AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetProgressUpdateStream() const { return m_progressUpdateStream; }
38 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; }
39 template <typename ProgressUpdateStreamT = Aws::String>
40 void SetProgressUpdateStream(ProgressUpdateStreamT&& value) {
41 m_progressUpdateStreamHasBeenSet = true;
42 m_progressUpdateStream = std::forward<ProgressUpdateStreamT>(value);
43 }
44 template <typename ProgressUpdateStreamT = Aws::String>
45 ImportMigrationTaskRequest& WithProgressUpdateStream(ProgressUpdateStreamT&& value) {
46 SetProgressUpdateStream(std::forward<ProgressUpdateStreamT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetMigrationTaskName() const { return m_migrationTaskName; }
57 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; }
58 template <typename MigrationTaskNameT = Aws::String>
59 void SetMigrationTaskName(MigrationTaskNameT&& value) {
60 m_migrationTaskNameHasBeenSet = true;
61 m_migrationTaskName = std::forward<MigrationTaskNameT>(value);
62 }
63 template <typename MigrationTaskNameT = Aws::String>
65 SetMigrationTaskName(std::forward<MigrationTaskNameT>(value));
66 return *this;
67 }
69
71
75 inline bool GetDryRun() const { return m_dryRun; }
76 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
77 inline void SetDryRun(bool value) {
78 m_dryRunHasBeenSet = true;
79 m_dryRun = value;
80 }
82 SetDryRun(value);
83 return *this;
84 }
86 private:
87 Aws::String m_progressUpdateStream;
88
89 Aws::String m_migrationTaskName;
90
91 bool m_dryRun{false};
92 bool m_progressUpdateStreamHasBeenSet = false;
93 bool m_migrationTaskNameHasBeenSet = false;
94 bool m_dryRunHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace MigrationHub
99} // namespace Aws
AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override
AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportMigrationTaskRequest & WithMigrationTaskName(MigrationTaskNameT &&value)
AWS_MIGRATIONHUB_API ImportMigrationTaskRequest()=default
ImportMigrationTaskRequest & WithProgressUpdateStream(ProgressUpdateStreamT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String