AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DisassociateSourceResourceRequest.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 DisassociateSourceResourceRequest() = 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 "DisassociateSourceResource"; }
28
29 AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override;
30
31 AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
41 inline const Aws::String& GetProgressUpdateStream() const { return m_progressUpdateStream; }
42 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; }
43 template <typename ProgressUpdateStreamT = Aws::String>
44 void SetProgressUpdateStream(ProgressUpdateStreamT&& value) {
45 m_progressUpdateStreamHasBeenSet = true;
46 m_progressUpdateStream = std::forward<ProgressUpdateStreamT>(value);
47 }
48 template <typename ProgressUpdateStreamT = Aws::String>
50 SetProgressUpdateStream(std::forward<ProgressUpdateStreamT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetMigrationTaskName() const { return m_migrationTaskName; }
61 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; }
62 template <typename MigrationTaskNameT = Aws::String>
63 void SetMigrationTaskName(MigrationTaskNameT&& value) {
64 m_migrationTaskNameHasBeenSet = true;
65 m_migrationTaskName = std::forward<MigrationTaskNameT>(value);
66 }
67 template <typename MigrationTaskNameT = Aws::String>
69 SetMigrationTaskName(std::forward<MigrationTaskNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSourceResourceName() const { return m_sourceResourceName; }
79 inline bool SourceResourceNameHasBeenSet() const { return m_sourceResourceNameHasBeenSet; }
80 template <typename SourceResourceNameT = Aws::String>
81 void SetSourceResourceName(SourceResourceNameT&& value) {
82 m_sourceResourceNameHasBeenSet = true;
83 m_sourceResourceName = std::forward<SourceResourceNameT>(value);
84 }
85 template <typename SourceResourceNameT = Aws::String>
87 SetSourceResourceName(std::forward<SourceResourceNameT>(value));
88 return *this;
89 }
91
93
99 inline bool GetDryRun() const { return m_dryRun; }
100 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 inline void SetDryRun(bool value) {
102 m_dryRunHasBeenSet = true;
103 m_dryRun = value;
104 }
106 SetDryRun(value);
107 return *this;
108 }
110 private:
111 Aws::String m_progressUpdateStream;
112
113 Aws::String m_migrationTaskName;
114
115 Aws::String m_sourceResourceName;
116
117 bool m_dryRun{false};
118 bool m_progressUpdateStreamHasBeenSet = false;
119 bool m_migrationTaskNameHasBeenSet = false;
120 bool m_sourceResourceNameHasBeenSet = false;
121 bool m_dryRunHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace MigrationHub
126} // namespace Aws
AWS_MIGRATIONHUB_API DisassociateSourceResourceRequest()=default
DisassociateSourceResourceRequest & WithSourceResourceName(SourceResourceNameT &&value)
AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override
AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DisassociateSourceResourceRequest & WithMigrationTaskName(MigrationTaskNameT &&value)
DisassociateSourceResourceRequest & WithProgressUpdateStream(ProgressUpdateStreamT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String