AWS SDK for C++

AWS SDK for C++ Version 1.11.694

Loading...
Searching...
No Matches
AssociateSourceResourceRequest.h
1
6#pragma once
7#include <aws/AWSMigrationHub/MigrationHubRequest.h>
8#include <aws/AWSMigrationHub/MigrationHub_EXPORTS.h>
9#include <aws/AWSMigrationHub/model/SourceResource.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MigrationHub {
16namespace Model {
17
21 public:
22 AWS_MIGRATIONHUB_API AssociateSourceResourceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateSourceResource"; }
29
30 AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override;
31
32 AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
42 inline const Aws::String& GetProgressUpdateStream() const { return m_progressUpdateStream; }
43 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; }
44 template <typename ProgressUpdateStreamT = Aws::String>
45 void SetProgressUpdateStream(ProgressUpdateStreamT&& value) {
46 m_progressUpdateStreamHasBeenSet = true;
47 m_progressUpdateStream = std::forward<ProgressUpdateStreamT>(value);
48 }
49 template <typename ProgressUpdateStreamT = Aws::String>
51 SetProgressUpdateStream(std::forward<ProgressUpdateStreamT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetMigrationTaskName() const { return m_migrationTaskName; }
62 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; }
63 template <typename MigrationTaskNameT = Aws::String>
64 void SetMigrationTaskName(MigrationTaskNameT&& value) {
65 m_migrationTaskNameHasBeenSet = true;
66 m_migrationTaskName = std::forward<MigrationTaskNameT>(value);
67 }
68 template <typename MigrationTaskNameT = Aws::String>
70 SetMigrationTaskName(std::forward<MigrationTaskNameT>(value));
71 return *this;
72 }
74
76
79 inline const SourceResource& GetSourceResource() const { return m_sourceResource; }
80 inline bool SourceResourceHasBeenSet() const { return m_sourceResourceHasBeenSet; }
81 template <typename SourceResourceT = SourceResource>
82 void SetSourceResource(SourceResourceT&& value) {
83 m_sourceResourceHasBeenSet = true;
84 m_sourceResource = std::forward<SourceResourceT>(value);
85 }
86 template <typename SourceResourceT = SourceResource>
88 SetSourceResource(std::forward<SourceResourceT>(value));
89 return *this;
90 }
92
94
100 inline bool GetDryRun() const { return m_dryRun; }
101 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
102 inline void SetDryRun(bool value) {
103 m_dryRunHasBeenSet = true;
104 m_dryRun = value;
105 }
107 SetDryRun(value);
108 return *this;
109 }
111 private:
112 Aws::String m_progressUpdateStream;
113 bool m_progressUpdateStreamHasBeenSet = false;
114
115 Aws::String m_migrationTaskName;
116 bool m_migrationTaskNameHasBeenSet = false;
117
118 SourceResource m_sourceResource;
119 bool m_sourceResourceHasBeenSet = false;
120
121 bool m_dryRun{false};
122 bool m_dryRunHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace MigrationHub
127} // namespace Aws
AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override
AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateSourceResourceRequest & WithProgressUpdateStream(ProgressUpdateStreamT &&value)
AssociateSourceResourceRequest & WithSourceResource(SourceResourceT &&value)
AssociateSourceResourceRequest & WithMigrationTaskName(MigrationTaskNameT &&value)
AWS_MIGRATIONHUB_API AssociateSourceResourceRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String