AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportSnapshotRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/ClientData.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/SnapshotDiskContainer.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/TagSpecification.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EC2_API ImportSnapshotRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ImportSnapshot"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const ClientData& GetClientData() const{ return m_clientData; }
48 inline bool ClientDataHasBeenSet() const { return m_clientDataHasBeenSet; }
49 inline void SetClientData(const ClientData& value) { m_clientDataHasBeenSet = true; m_clientData = value; }
50 inline void SetClientData(ClientData&& value) { m_clientDataHasBeenSet = true; m_clientData = std::move(value); }
51 inline ImportSnapshotRequest& WithClientData(const ClientData& value) { SetClientData(value); return *this;}
52 inline ImportSnapshotRequest& WithClientData(ClientData&& value) { SetClientData(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
62 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
63 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
64 inline ImportSnapshotRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
65 inline ImportSnapshotRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
66 inline ImportSnapshotRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline ImportSnapshotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline ImportSnapshotRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline ImportSnapshotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
87 inline const SnapshotDiskContainer& GetDiskContainer() const{ return m_diskContainer; }
88 inline bool DiskContainerHasBeenSet() const { return m_diskContainerHasBeenSet; }
89 inline void SetDiskContainer(const SnapshotDiskContainer& value) { m_diskContainerHasBeenSet = true; m_diskContainer = value; }
90 inline void SetDiskContainer(SnapshotDiskContainer&& value) { m_diskContainerHasBeenSet = true; m_diskContainer = std::move(value); }
92 inline ImportSnapshotRequest& WithDiskContainer(SnapshotDiskContainer&& value) { SetDiskContainer(std::move(value)); return *this;}
94
96
102 inline bool GetDryRun() const{ return m_dryRun; }
103 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
104 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
105 inline ImportSnapshotRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
107
109
116 inline bool GetEncrypted() const{ return m_encrypted; }
117 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
118 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
119 inline ImportSnapshotRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
121
123
145 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
146 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
147 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
148 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
149 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
150 inline ImportSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
151 inline ImportSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
152 inline ImportSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
154
156
159 inline const Aws::String& GetRoleName() const{ return m_roleName; }
160 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
161 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
162 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
163 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
164 inline ImportSnapshotRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
165 inline ImportSnapshotRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
166 inline ImportSnapshotRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
168
170
173 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
174 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
175 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
176 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
179 inline ImportSnapshotRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
180 inline ImportSnapshotRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
182 private:
183
184 ClientData m_clientData;
185 bool m_clientDataHasBeenSet = false;
186
187 Aws::String m_clientToken;
188 bool m_clientTokenHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
193 SnapshotDiskContainer m_diskContainer;
194 bool m_diskContainerHasBeenSet = false;
195
196 bool m_dryRun;
197 bool m_dryRunHasBeenSet = false;
198
199 bool m_encrypted;
200 bool m_encryptedHasBeenSet = false;
201
202 Aws::String m_kmsKeyId;
203 bool m_kmsKeyIdHasBeenSet = false;
204
205 Aws::String m_roleName;
206 bool m_roleNameHasBeenSet = false;
207
208 Aws::Vector<TagSpecification> m_tagSpecifications;
209 bool m_tagSpecificationsHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace EC2
214} // namespace Aws
ImportSnapshotRequest & WithRoleName(Aws::String &&value)
void SetDiskContainer(SnapshotDiskContainer &&value)
ImportSnapshotRequest & WithDiskContainer(const SnapshotDiskContainer &value)
ImportSnapshotRequest & WithRoleName(const char *value)
ImportSnapshotRequest & WithClientData(ClientData &&value)
ImportSnapshotRequest & WithKmsKeyId(const Aws::String &value)
ImportSnapshotRequest & WithClientToken(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
ImportSnapshotRequest & WithKmsKeyId(const char *value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
const SnapshotDiskContainer & GetDiskContainer() const
void SetDiskContainer(const SnapshotDiskContainer &value)
ImportSnapshotRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
ImportSnapshotRequest & WithDiskContainer(SnapshotDiskContainer &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetKmsKeyId(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
ImportSnapshotRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
ImportSnapshotRequest & WithDescription(Aws::String &&value)
ImportSnapshotRequest & AddTagSpecifications(TagSpecification &&value)
ImportSnapshotRequest & WithEncrypted(bool value)
ImportSnapshotRequest & WithDescription(const char *value)
ImportSnapshotRequest & WithDryRun(bool value)
void SetDescription(const Aws::String &value)
ImportSnapshotRequest & WithClientData(const ClientData &value)
ImportSnapshotRequest & WithClientToken(Aws::String &&value)
void SetClientData(const ClientData &value)
ImportSnapshotRequest & WithClientToken(const char *value)
void SetRoleName(const Aws::String &value)
ImportSnapshotRequest & WithDescription(const Aws::String &value)
ImportSnapshotRequest & WithRoleName(const Aws::String &value)
void SetClientToken(const Aws::String &value)
ImportSnapshotRequest & WithKmsKeyId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ImportSnapshotRequest & AddTagSpecifications(const TagSpecification &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector