AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProgressUpdateStream(const Aws::String& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = value; }
46 inline void SetProgressUpdateStream(Aws::String&& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = std::move(value); }
47 inline void SetProgressUpdateStream(const char* value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream.assign(value); }
50 inline PutResourceAttributesRequest& WithProgressUpdateStream(const char* value) { SetProgressUpdateStream(value); return *this;}
52
54
58 inline const Aws::String& GetMigrationTaskName() const{ return m_migrationTaskName; }
59 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; }
60 inline void SetMigrationTaskName(const Aws::String& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = value; }
61 inline void SetMigrationTaskName(Aws::String&& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = std::move(value); }
62 inline void SetMigrationTaskName(const char* value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName.assign(value); }
64 inline PutResourceAttributesRequest& WithMigrationTaskName(Aws::String&& value) { SetMigrationTaskName(std::move(value)); return *this;}
65 inline PutResourceAttributesRequest& WithMigrationTaskName(const char* value) { SetMigrationTaskName(value); return *this;}
67
69
90 inline const Aws::Vector<ResourceAttribute>& GetResourceAttributeList() const{ return m_resourceAttributeList; }
91 inline bool ResourceAttributeListHasBeenSet() const { return m_resourceAttributeListHasBeenSet; }
92 inline void SetResourceAttributeList(const Aws::Vector<ResourceAttribute>& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList = value; }
93 inline void SetResourceAttributeList(Aws::Vector<ResourceAttribute>&& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList = std::move(value); }
96 inline PutResourceAttributesRequest& AddResourceAttributeList(const ResourceAttribute& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList.push_back(value); return *this; }
97 inline PutResourceAttributesRequest& AddResourceAttributeList(ResourceAttribute&& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList.push_back(std::move(value)); return *this; }
99
101
105 inline bool GetDryRun() const{ return m_dryRun; }
106 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
107 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
108 inline PutResourceAttributesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
110 private:
111
112 Aws::String m_progressUpdateStream;
113 bool m_progressUpdateStreamHasBeenSet = false;
114
115 Aws::String m_migrationTaskName;
116 bool m_migrationTaskNameHasBeenSet = false;
117
118 Aws::Vector<ResourceAttribute> m_resourceAttributeList;
119 bool m_resourceAttributeListHasBeenSet = false;
120
121 bool m_dryRun;
122 bool m_dryRunHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace MigrationHub
127} // namespace Aws
PutResourceAttributesRequest & AddResourceAttributeList(const ResourceAttribute &value)
PutResourceAttributesRequest & WithProgressUpdateStream(const char *value)
const Aws::Vector< ResourceAttribute > & GetResourceAttributeList() const
void SetResourceAttributeList(Aws::Vector< ResourceAttribute > &&value)
PutResourceAttributesRequest & WithProgressUpdateStream(Aws::String &&value)
AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override
void SetResourceAttributeList(const Aws::Vector< ResourceAttribute > &value)
PutResourceAttributesRequest & WithMigrationTaskName(const Aws::String &value)
PutResourceAttributesRequest & WithMigrationTaskName(const char *value)
PutResourceAttributesRequest & AddResourceAttributeList(ResourceAttribute &&value)
PutResourceAttributesRequest & WithResourceAttributeList(Aws::Vector< ResourceAttribute > &&value)
PutResourceAttributesRequest & WithMigrationTaskName(Aws::String &&value)
PutResourceAttributesRequest & WithResourceAttributeList(const Aws::Vector< ResourceAttribute > &value)
PutResourceAttributesRequest & WithProgressUpdateStream(const Aws::String &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