AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateReplaceRootVolumeTaskRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateReplaceRootVolumeTask"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
49 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
50 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
51 inline CreateReplaceRootVolumeTaskRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
52 inline CreateReplaceRootVolumeTaskRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
53 inline CreateReplaceRootVolumeTaskRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
55
57
64 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
65 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
66 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
67 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
68 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
69 inline CreateReplaceRootVolumeTaskRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
70 inline CreateReplaceRootVolumeTaskRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
71 inline CreateReplaceRootVolumeTaskRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
73
75
82 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
83 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
84 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
85 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
86 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
88 inline CreateReplaceRootVolumeTaskRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
89 inline CreateReplaceRootVolumeTaskRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
91
93
99 inline bool GetDryRun() const{ return m_dryRun; }
100 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
102 inline CreateReplaceRootVolumeTaskRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
104
106
109 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
110 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
111 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
112 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
115 inline CreateReplaceRootVolumeTaskRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
116 inline CreateReplaceRootVolumeTaskRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
118
120
127 inline const Aws::String& GetImageId() const{ return m_imageId; }
128 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
129 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
130 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
131 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
132 inline CreateReplaceRootVolumeTaskRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
133 inline CreateReplaceRootVolumeTaskRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
134 inline CreateReplaceRootVolumeTaskRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
136
138
145 inline bool GetDeleteReplacedRootVolume() const{ return m_deleteReplacedRootVolume; }
146 inline bool DeleteReplacedRootVolumeHasBeenSet() const { return m_deleteReplacedRootVolumeHasBeenSet; }
147 inline void SetDeleteReplacedRootVolume(bool value) { m_deleteReplacedRootVolumeHasBeenSet = true; m_deleteReplacedRootVolume = value; }
150 private:
151
152 Aws::String m_instanceId;
153 bool m_instanceIdHasBeenSet = false;
154
155 Aws::String m_snapshotId;
156 bool m_snapshotIdHasBeenSet = false;
157
158 Aws::String m_clientToken;
159 bool m_clientTokenHasBeenSet = false;
160
161 bool m_dryRun;
162 bool m_dryRunHasBeenSet = false;
163
164 Aws::Vector<TagSpecification> m_tagSpecifications;
165 bool m_tagSpecificationsHasBeenSet = false;
166
167 Aws::String m_imageId;
168 bool m_imageIdHasBeenSet = false;
169
170 bool m_deleteReplacedRootVolume;
171 bool m_deleteReplacedRootVolumeHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace EC2
176} // namespace Aws
CreateReplaceRootVolumeTaskRequest & WithClientToken(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateReplaceRootVolumeTaskRequest & AddTagSpecifications(const TagSpecification &value)
CreateReplaceRootVolumeTaskRequest & WithSnapshotId(const char *value)
CreateReplaceRootVolumeTaskRequest & WithDryRun(bool value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateReplaceRootVolumeTaskRequest & WithInstanceId(const char *value)
CreateReplaceRootVolumeTaskRequest & WithDeleteReplacedRootVolume(bool value)
CreateReplaceRootVolumeTaskRequest & WithImageId(const Aws::String &value)
CreateReplaceRootVolumeTaskRequest & WithSnapshotId(const Aws::String &value)
CreateReplaceRootVolumeTaskRequest & WithInstanceId(const Aws::String &value)
CreateReplaceRootVolumeTaskRequest & WithImageId(const char *value)
CreateReplaceRootVolumeTaskRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateReplaceRootVolumeTaskRequest & WithImageId(Aws::String &&value)
CreateReplaceRootVolumeTaskRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateReplaceRootVolumeTaskRequest & WithInstanceId(Aws::String &&value)
CreateReplaceRootVolumeTaskRequest & WithClientToken(const char *value)
CreateReplaceRootVolumeTaskRequest & AddTagSpecifications(TagSpecification &&value)
CreateReplaceRootVolumeTaskRequest & WithSnapshotId(Aws::String &&value)
CreateReplaceRootVolumeTaskRequest & WithClientToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector