AWS SDK for C++  1.9.40
AWS SDK for C++
CreateReplaceRootVolumeTaskRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace 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::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
46 
50  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
51 
55  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
56 
60  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
61 
65  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
66 
70  inline CreateReplaceRootVolumeTaskRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
71 
75  inline CreateReplaceRootVolumeTaskRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
76 
80  inline CreateReplaceRootVolumeTaskRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
81 
82 
88  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
89 
95  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
96 
102  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
103 
109  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
110 
116  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
117 
123  inline CreateReplaceRootVolumeTaskRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
124 
130  inline CreateReplaceRootVolumeTaskRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
131 
137  inline CreateReplaceRootVolumeTaskRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
138 
139 
147  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
148 
156  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
157 
165  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
166 
174  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
175 
183  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
184 
192  inline CreateReplaceRootVolumeTaskRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
193 
201  inline CreateReplaceRootVolumeTaskRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
202 
210  inline CreateReplaceRootVolumeTaskRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
211 
212 
219  inline bool GetDryRun() const{ return m_dryRun; }
220 
227  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
228 
235  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
236 
243  inline CreateReplaceRootVolumeTaskRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
244 
245 
249  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
250 
254  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
255 
259  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
260 
264  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
265 
269  inline CreateReplaceRootVolumeTaskRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
270 
274  inline CreateReplaceRootVolumeTaskRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
275 
279  inline CreateReplaceRootVolumeTaskRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
280 
284  inline CreateReplaceRootVolumeTaskRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
285 
286  private:
287 
288  Aws::String m_instanceId;
289  bool m_instanceIdHasBeenSet;
290 
291  Aws::String m_snapshotId;
292  bool m_snapshotIdHasBeenSet;
293 
294  Aws::String m_clientToken;
295  bool m_clientTokenHasBeenSet;
296 
297  bool m_dryRun;
298  bool m_dryRunHasBeenSet;
299 
300  Aws::Vector<TagSpecification> m_tagSpecifications;
301  bool m_tagSpecificationsHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace EC2
306 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateReplaceRootVolumeTaskRequest.h:264
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithInstanceId
CreateReplaceRootVolumeTaskRequest & WithInstanceId(Aws::String &&value)
Definition: CreateReplaceRootVolumeTaskRequest.h:75
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::GetDryRun
bool GetDryRun() const
Definition: CreateReplaceRootVolumeTaskRequest.h:219
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithSnapshotId
CreateReplaceRootVolumeTaskRequest & WithSnapshotId(Aws::String &&value)
Definition: CreateReplaceRootVolumeTaskRequest.h:130
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateReplaceRootVolumeTaskRequest.h:227
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateReplaceRootVolumeTaskRequest.h:249
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: CreateReplaceRootVolumeTaskRequest.h:102
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithTagSpecifications
CreateReplaceRootVolumeTaskRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateReplaceRootVolumeTaskRequest.h:274
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithTagSpecifications
CreateReplaceRootVolumeTaskRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateReplaceRootVolumeTaskRequest.h:269
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: CreateReplaceRootVolumeTaskRequest.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: CreateReplaceRootVolumeTaskRequest.h:50
AWSVector.h
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: CreateReplaceRootVolumeTaskRequest.h:109
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithSnapshotId
CreateReplaceRootVolumeTaskRequest & WithSnapshotId(const char *value)
Definition: CreateReplaceRootVolumeTaskRequest.h:137
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateReplaceRootVolumeTaskRequest.h:165
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithClientToken
CreateReplaceRootVolumeTaskRequest & WithClientToken(Aws::String &&value)
Definition: CreateReplaceRootVolumeTaskRequest.h:201
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateReplaceRootVolumeTaskRequest.h:183
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::AddTagSpecifications
CreateReplaceRootVolumeTaskRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateReplaceRootVolumeTaskRequest.h:279
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithInstanceId
CreateReplaceRootVolumeTaskRequest & WithInstanceId(const Aws::String &value)
Definition: CreateReplaceRootVolumeTaskRequest.h:70
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateReplaceRootVolumeTaskRequest.h:174
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: CreateReplaceRootVolumeTaskRequest.h:45
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest
Definition: CreateReplaceRootVolumeTaskRequest.h:25
EC2Request.h
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithSnapshotId
CreateReplaceRootVolumeTaskRequest & WithSnapshotId(const Aws::String &value)
Definition: CreateReplaceRootVolumeTaskRequest.h:123
AWSString.h
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateReplaceRootVolumeTaskRequest.h:259
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: CreateReplaceRootVolumeTaskRequest.h:95
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: CreateReplaceRootVolumeTaskRequest.h:116
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithClientToken
CreateReplaceRootVolumeTaskRequest & WithClientToken(const Aws::String &value)
Definition: CreateReplaceRootVolumeTaskRequest.h:192
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: CreateReplaceRootVolumeTaskRequest.h:88
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateReplaceRootVolumeTaskRequest.h:33
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::AddTagSpecifications
CreateReplaceRootVolumeTaskRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateReplaceRootVolumeTaskRequest.h:284
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateReplaceRootVolumeTaskRequest.h:254
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateReplaceRootVolumeTaskRequest.h:235
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithInstanceId
CreateReplaceRootVolumeTaskRequest & WithInstanceId(const char *value)
Definition: CreateReplaceRootVolumeTaskRequest.h:80
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateReplaceRootVolumeTaskRequest.h:156
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::CreateReplaceRootVolumeTaskRequest
CreateReplaceRootVolumeTaskRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: CreateReplaceRootVolumeTaskRequest.h:60
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: CreateReplaceRootVolumeTaskRequest.h:65
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithClientToken
CreateReplaceRootVolumeTaskRequest & WithClientToken(const char *value)
Definition: CreateReplaceRootVolumeTaskRequest.h:210
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::WithDryRun
CreateReplaceRootVolumeTaskRequest & WithDryRun(bool value)
Definition: CreateReplaceRootVolumeTaskRequest.h:243
UUID.h
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateReplaceRootVolumeTaskRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateReplaceRootVolumeTaskRequest.h:147