AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
PutResourceAttributesRequest.h
1
6#pragma once
7#include <aws/AWSMigrationHub/MigrationHubRequest.h>
8#include <aws/AWSMigrationHub/MigrationHub_EXPORTS.h>
9#include <aws/AWSMigrationHub/model/ResourceAttribute.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MigrationHub {
17namespace Model {
18
22 public:
23 AWS_MIGRATIONHUB_API PutResourceAttributesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutResourceAttributes"; }
30
31 AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override;
32
33 AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetProgressUpdateStream() const { return m_progressUpdateStream; }
40 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; }
41 template <typename ProgressUpdateStreamT = Aws::String>
42 void SetProgressUpdateStream(ProgressUpdateStreamT&& value) {
43 m_progressUpdateStreamHasBeenSet = true;
44 m_progressUpdateStream = std::forward<ProgressUpdateStreamT>(value);
45 }
46 template <typename ProgressUpdateStreamT = Aws::String>
48 SetProgressUpdateStream(std::forward<ProgressUpdateStreamT>(value));
49 return *this;
50 }
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) {
62 m_migrationTaskNameHasBeenSet = true;
63 m_migrationTaskName = std::forward<MigrationTaskNameT>(value);
64 }
65 template <typename MigrationTaskNameT = Aws::String>
67 SetMigrationTaskName(std::forward<MigrationTaskNameT>(value));
68 return *this;
69 }
71
73
94 inline const Aws::Vector<ResourceAttribute>& GetResourceAttributeList() const { return m_resourceAttributeList; }
95 inline bool ResourceAttributeListHasBeenSet() const { return m_resourceAttributeListHasBeenSet; }
96 template <typename ResourceAttributeListT = Aws::Vector<ResourceAttribute>>
97 void SetResourceAttributeList(ResourceAttributeListT&& value) {
98 m_resourceAttributeListHasBeenSet = true;
99 m_resourceAttributeList = std::forward<ResourceAttributeListT>(value);
100 }
101 template <typename ResourceAttributeListT = Aws::Vector<ResourceAttribute>>
103 SetResourceAttributeList(std::forward<ResourceAttributeListT>(value));
104 return *this;
105 }
106 template <typename ResourceAttributeListT = ResourceAttribute>
108 m_resourceAttributeListHasBeenSet = true;
109 m_resourceAttributeList.emplace_back(std::forward<ResourceAttributeListT>(value));
110 return *this;
111 }
113
115
119 inline bool GetDryRun() const { return m_dryRun; }
120 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
121 inline void SetDryRun(bool value) {
122 m_dryRunHasBeenSet = true;
123 m_dryRun = value;
124 }
126 SetDryRun(value);
127 return *this;
128 }
130 private:
131 Aws::String m_progressUpdateStream;
132
133 Aws::String m_migrationTaskName;
134
135 Aws::Vector<ResourceAttribute> m_resourceAttributeList;
136
137 bool m_dryRun{false};
138 bool m_progressUpdateStreamHasBeenSet = false;
139 bool m_migrationTaskNameHasBeenSet = false;
140 bool m_resourceAttributeListHasBeenSet = false;
141 bool m_dryRunHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace MigrationHub
146} // namespace Aws
PutResourceAttributesRequest & WithMigrationTaskName(MigrationTaskNameT &&value)
const Aws::Vector< ResourceAttribute > & GetResourceAttributeList() const
AWS_MIGRATIONHUB_API PutResourceAttributesRequest()=default
AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override
PutResourceAttributesRequest & WithResourceAttributeList(ResourceAttributeListT &&value)
PutResourceAttributesRequest & AddResourceAttributeList(ResourceAttributeListT &&value)
PutResourceAttributesRequest & WithProgressUpdateStream(ProgressUpdateStreamT &&value)
AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector