AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateDiscoveredResourceRequest.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/DiscoveredResource.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MigrationHub
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MIGRATIONHUB_API AssociateDiscoveredResourceRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AssociateDiscoveredResource"; }
32
33 AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override;
34
35 AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetProgressUpdateStream() const{ return m_progressUpdateStream; }
43 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; }
44 inline void SetProgressUpdateStream(const Aws::String& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = value; }
45 inline void SetProgressUpdateStream(Aws::String&& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = std::move(value); }
46 inline void SetProgressUpdateStream(const char* value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream.assign(value); }
51
53
57 inline const Aws::String& GetMigrationTaskName() const{ return m_migrationTaskName; }
58 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; }
59 inline void SetMigrationTaskName(const Aws::String& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = value; }
60 inline void SetMigrationTaskName(Aws::String&& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = std::move(value); }
61 inline void SetMigrationTaskName(const char* value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName.assign(value); }
64 inline AssociateDiscoveredResourceRequest& WithMigrationTaskName(const char* value) { SetMigrationTaskName(value); return *this;}
66
68
71 inline const DiscoveredResource& GetDiscoveredResource() const{ return m_discoveredResource; }
72 inline bool DiscoveredResourceHasBeenSet() const { return m_discoveredResourceHasBeenSet; }
73 inline void SetDiscoveredResource(const DiscoveredResource& value) { m_discoveredResourceHasBeenSet = true; m_discoveredResource = value; }
74 inline void SetDiscoveredResource(DiscoveredResource&& value) { m_discoveredResourceHasBeenSet = true; m_discoveredResource = std::move(value); }
78
80
84 inline bool GetDryRun() const{ return m_dryRun; }
85 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
86 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
87 inline AssociateDiscoveredResourceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
89 private:
90
91 Aws::String m_progressUpdateStream;
92 bool m_progressUpdateStreamHasBeenSet = false;
93
94 Aws::String m_migrationTaskName;
95 bool m_migrationTaskNameHasBeenSet = false;
96
97 DiscoveredResource m_discoveredResource;
98 bool m_discoveredResourceHasBeenSet = false;
99
100 bool m_dryRun;
101 bool m_dryRunHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace MigrationHub
106} // namespace Aws
AssociateDiscoveredResourceRequest & WithProgressUpdateStream(const Aws::String &value)
AssociateDiscoveredResourceRequest & WithProgressUpdateStream(const char *value)
AssociateDiscoveredResourceRequest & WithMigrationTaskName(const char *value)
AssociateDiscoveredResourceRequest & WithDiscoveredResource(DiscoveredResource &&value)
AssociateDiscoveredResourceRequest & WithDiscoveredResource(const DiscoveredResource &value)
AssociateDiscoveredResourceRequest & WithMigrationTaskName(const Aws::String &value)
AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override
AssociateDiscoveredResourceRequest & WithMigrationTaskName(Aws::String &&value)
AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateDiscoveredResourceRequest & WithProgressUpdateStream(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String