AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutResourceAttributesRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/AWSMigrationHub/model/ResourceAttribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MigrationHub
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MIGRATIONHUB_API PutResourceAttributesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutResourceAttributes"; }
33
34 AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override;
35
36 AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetProgressUpdateStream() const { return m_progressUpdateStream; }
44 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; }
45 template<typename ProgressUpdateStreamT = Aws::String>
46 void SetProgressUpdateStream(ProgressUpdateStreamT&& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = std::forward<ProgressUpdateStreamT>(value); }
47 template<typename ProgressUpdateStreamT = Aws::String>
48 PutResourceAttributesRequest& WithProgressUpdateStream(ProgressUpdateStreamT&& value) { SetProgressUpdateStream(std::forward<ProgressUpdateStreamT>(value)); return *this;}
50
52
56 inline const Aws::String& GetMigrationTaskName() const { return m_migrationTaskName; }
57 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; }
58 template<typename MigrationTaskNameT = Aws::String>
59 void SetMigrationTaskName(MigrationTaskNameT&& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = std::forward<MigrationTaskNameT>(value); }
60 template<typename MigrationTaskNameT = Aws::String>
61 PutResourceAttributesRequest& WithMigrationTaskName(MigrationTaskNameT&& value) { SetMigrationTaskName(std::forward<MigrationTaskNameT>(value)); return *this;}
63
65
86 inline const Aws::Vector<ResourceAttribute>& GetResourceAttributeList() const { return m_resourceAttributeList; }
87 inline bool ResourceAttributeListHasBeenSet() const { return m_resourceAttributeListHasBeenSet; }
88 template<typename ResourceAttributeListT = Aws::Vector<ResourceAttribute>>
89 void SetResourceAttributeList(ResourceAttributeListT&& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList = std::forward<ResourceAttributeListT>(value); }
90 template<typename ResourceAttributeListT = Aws::Vector<ResourceAttribute>>
91 PutResourceAttributesRequest& WithResourceAttributeList(ResourceAttributeListT&& value) { SetResourceAttributeList(std::forward<ResourceAttributeListT>(value)); return *this;}
92 template<typename ResourceAttributeListT = ResourceAttribute>
93 PutResourceAttributesRequest& AddResourceAttributeList(ResourceAttributeListT&& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList.emplace_back(std::forward<ResourceAttributeListT>(value)); return *this; }
95
97
101 inline bool GetDryRun() const { return m_dryRun; }
102 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
103 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
104 inline PutResourceAttributesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
106 private:
107
108 Aws::String m_progressUpdateStream;
109 bool m_progressUpdateStreamHasBeenSet = false;
110
111 Aws::String m_migrationTaskName;
112 bool m_migrationTaskNameHasBeenSet = false;
113
114 Aws::Vector<ResourceAttribute> m_resourceAttributeList;
115 bool m_resourceAttributeListHasBeenSet = false;
116
117 bool m_dryRun{false};
118 bool m_dryRunHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace MigrationHub
123} // 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