AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DisassociateSourceResourceRequest.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 <utility>
11
12namespace Aws
13{
14namespace MigrationHub
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_MIGRATIONHUB_API DisassociateSourceResourceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DisassociateSourceResource"; }
31
32 AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override;
33
34 AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
45 inline const Aws::String& GetProgressUpdateStream() const { return m_progressUpdateStream; }
46 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; }
47 template<typename ProgressUpdateStreamT = Aws::String>
48 void SetProgressUpdateStream(ProgressUpdateStreamT&& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = std::forward<ProgressUpdateStreamT>(value); }
49 template<typename ProgressUpdateStreamT = Aws::String>
50 DisassociateSourceResourceRequest& WithProgressUpdateStream(ProgressUpdateStreamT&& value) { SetProgressUpdateStream(std::forward<ProgressUpdateStreamT>(value)); return *this;}
52
54
58 inline const Aws::String& GetMigrationTaskName() const { return m_migrationTaskName; }
59 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; }
60 template<typename MigrationTaskNameT = Aws::String>
61 void SetMigrationTaskName(MigrationTaskNameT&& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = std::forward<MigrationTaskNameT>(value); }
62 template<typename MigrationTaskNameT = Aws::String>
63 DisassociateSourceResourceRequest& WithMigrationTaskName(MigrationTaskNameT&& value) { SetMigrationTaskName(std::forward<MigrationTaskNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetSourceResourceName() const { return m_sourceResourceName; }
71 inline bool SourceResourceNameHasBeenSet() const { return m_sourceResourceNameHasBeenSet; }
72 template<typename SourceResourceNameT = Aws::String>
73 void SetSourceResourceName(SourceResourceNameT&& value) { m_sourceResourceNameHasBeenSet = true; m_sourceResourceName = std::forward<SourceResourceNameT>(value); }
74 template<typename SourceResourceNameT = Aws::String>
75 DisassociateSourceResourceRequest& WithSourceResourceName(SourceResourceNameT&& value) { SetSourceResourceName(std::forward<SourceResourceNameT>(value)); return *this;}
77
79
85 inline bool GetDryRun() const { return m_dryRun; }
86 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
87 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
88 inline DisassociateSourceResourceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
90 private:
91
92 Aws::String m_progressUpdateStream;
93 bool m_progressUpdateStreamHasBeenSet = false;
94
95 Aws::String m_migrationTaskName;
96 bool m_migrationTaskNameHasBeenSet = false;
97
98 Aws::String m_sourceResourceName;
99 bool m_sourceResourceNameHasBeenSet = false;
100
101 bool m_dryRun{false};
102 bool m_dryRunHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace MigrationHub
107} // 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