AWS SDK for C++  1.9.72
AWS SDK for C++
CreateInstanceExportTaskRequest.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>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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 "CreateInstanceExportTask"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
47  inline const Aws::String& GetDescription() const{ return m_description; }
48 
53  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 
59  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 
65  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 
71  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
72 
77  inline CreateInstanceExportTaskRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 
83  inline CreateInstanceExportTaskRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 
89  inline CreateInstanceExportTaskRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
90 
91 
95  inline const ExportToS3TaskSpecification& GetExportToS3Task() const{ return m_exportToS3Task; }
96 
100  inline bool ExportToS3TaskHasBeenSet() const { return m_exportToS3TaskHasBeenSet; }
101 
105  inline void SetExportToS3Task(const ExportToS3TaskSpecification& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = value; }
106 
110  inline void SetExportToS3Task(ExportToS3TaskSpecification&& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = std::move(value); }
111 
115  inline CreateInstanceExportTaskRequest& WithExportToS3Task(const ExportToS3TaskSpecification& value) { SetExportToS3Task(value); return *this;}
116 
120  inline CreateInstanceExportTaskRequest& WithExportToS3Task(ExportToS3TaskSpecification&& value) { SetExportToS3Task(std::move(value)); return *this;}
121 
122 
126  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
127 
131  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
132 
136  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
137 
141  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
142 
146  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
147 
151  inline CreateInstanceExportTaskRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
152 
156  inline CreateInstanceExportTaskRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
157 
161  inline CreateInstanceExportTaskRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
162 
163 
167  inline const ExportEnvironment& GetTargetEnvironment() const{ return m_targetEnvironment; }
168 
172  inline bool TargetEnvironmentHasBeenSet() const { return m_targetEnvironmentHasBeenSet; }
173 
177  inline void SetTargetEnvironment(const ExportEnvironment& value) { m_targetEnvironmentHasBeenSet = true; m_targetEnvironment = value; }
178 
182  inline void SetTargetEnvironment(ExportEnvironment&& value) { m_targetEnvironmentHasBeenSet = true; m_targetEnvironment = std::move(value); }
183 
187  inline CreateInstanceExportTaskRequest& WithTargetEnvironment(const ExportEnvironment& value) { SetTargetEnvironment(value); return *this;}
188 
192  inline CreateInstanceExportTaskRequest& WithTargetEnvironment(ExportEnvironment&& value) { SetTargetEnvironment(std::move(value)); return *this;}
193 
194 
198  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
199 
203  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
204 
208  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
209 
213  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
214 
218  inline CreateInstanceExportTaskRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
219 
223  inline CreateInstanceExportTaskRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
224 
228  inline CreateInstanceExportTaskRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
229 
233  inline CreateInstanceExportTaskRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
234 
235  private:
236 
237  Aws::String m_description;
238  bool m_descriptionHasBeenSet;
239 
240  ExportToS3TaskSpecification m_exportToS3Task;
241  bool m_exportToS3TaskHasBeenSet;
242 
243  Aws::String m_instanceId;
244  bool m_instanceIdHasBeenSet;
245 
246  ExportEnvironment m_targetEnvironment;
247  bool m_targetEnvironmentHasBeenSet;
248 
249  Aws::Vector<TagSpecification> m_tagSpecifications;
250  bool m_tagSpecificationsHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace EC2
255 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: CreateInstanceExportTaskRequest.h:146
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithTagSpecifications
CreateInstanceExportTaskRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateInstanceExportTaskRequest.h:223
Aws::EC2::Model::CreateInstanceExportTaskRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: CreateInstanceExportTaskRequest.h:131
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithInstanceId
CreateInstanceExportTaskRequest & WithInstanceId(const char *value)
Definition: CreateInstanceExportTaskRequest.h:161
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetExportToS3Task
void SetExportToS3Task(const ExportToS3TaskSpecification &value)
Definition: CreateInstanceExportTaskRequest.h:105
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithDescription
CreateInstanceExportTaskRequest & WithDescription(const Aws::String &value)
Definition: CreateInstanceExportTaskRequest.h:77
ExportToS3TaskSpecification.h
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithTargetEnvironment
CreateInstanceExportTaskRequest & WithTargetEnvironment(const ExportEnvironment &value)
Definition: CreateInstanceExportTaskRequest.h:187
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithExportToS3Task
CreateInstanceExportTaskRequest & WithExportToS3Task(ExportToS3TaskSpecification &&value)
Definition: CreateInstanceExportTaskRequest.h:120
Aws::EC2::Model::CreateInstanceExportTaskRequest
Definition: CreateInstanceExportTaskRequest.h:26
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateInstanceExportTaskRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateInstanceExportTaskRequest.h:53
Aws::EC2::Model::CreateInstanceExportTaskRequest::GetExportToS3Task
const ExportToS3TaskSpecification & GetExportToS3Task() const
Definition: CreateInstanceExportTaskRequest.h:95
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithInstanceId
CreateInstanceExportTaskRequest & WithInstanceId(const Aws::String &value)
Definition: CreateInstanceExportTaskRequest.h:151
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithTagSpecifications
CreateInstanceExportTaskRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateInstanceExportTaskRequest.h:218
Aws::EC2::Model::CreateInstanceExportTaskRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateInstanceExportTaskRequest.h:203
AWSVector.h
Aws::EC2::Model::CreateInstanceExportTaskRequest::AddTagSpecifications
CreateInstanceExportTaskRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateInstanceExportTaskRequest.h:228
ExportEnvironment.h
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithTargetEnvironment
CreateInstanceExportTaskRequest & WithTargetEnvironment(ExportEnvironment &&value)
Definition: CreateInstanceExportTaskRequest.h:192
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateInstanceExportTaskRequest.h:59
Aws::EC2::Model::CreateInstanceExportTaskRequest::CreateInstanceExportTaskRequest
CreateInstanceExportTaskRequest()
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateInstanceExportTaskRequest.h:208
Aws::EC2::Model::CreateInstanceExportTaskRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateInstanceExportTaskRequest::TargetEnvironmentHasBeenSet
bool TargetEnvironmentHasBeenSet() const
Definition: CreateInstanceExportTaskRequest.h:172
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetTargetEnvironment
void SetTargetEnvironment(const ExportEnvironment &value)
Definition: CreateInstanceExportTaskRequest.h:177
EC2Request.h
Aws::EC2::Model::CreateInstanceExportTaskRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateInstanceExportTaskRequest.h:47
AWSString.h
Aws::EC2::Model::CreateInstanceExportTaskRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateInstanceExportTaskRequest.h:198
Aws::EC2::Model::CreateInstanceExportTaskRequest::AddTagSpecifications
CreateInstanceExportTaskRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateInstanceExportTaskRequest.h:233
Aws::EC2::Model::ExportEnvironment
ExportEnvironment
Definition: ExportEnvironment.h:17
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithInstanceId
CreateInstanceExportTaskRequest & WithInstanceId(Aws::String &&value)
Definition: CreateInstanceExportTaskRequest.h:156
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateInstanceExportTaskRequest.h:65
Aws::EC2::Model::CreateInstanceExportTaskRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: CreateInstanceExportTaskRequest.h:126
Aws::EC2::Model::CreateInstanceExportTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateInstanceExportTaskRequest.h:34
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetTargetEnvironment
void SetTargetEnvironment(ExportEnvironment &&value)
Definition: CreateInstanceExportTaskRequest.h:182
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateInstanceExportTaskRequest.h:71
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: CreateInstanceExportTaskRequest.h:141
Aws::EC2::Model::ExportToS3TaskSpecification
Definition: ExportToS3TaskSpecification.h:34
Aws::EC2::Model::CreateInstanceExportTaskRequest::ExportToS3TaskHasBeenSet
bool ExportToS3TaskHasBeenSet() const
Definition: CreateInstanceExportTaskRequest.h:100
Aws::EC2::Model::CreateInstanceExportTaskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: CreateInstanceExportTaskRequest.h:136
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateInstanceExportTaskRequest.h:213
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithDescription
CreateInstanceExportTaskRequest & WithDescription(const char *value)
Definition: CreateInstanceExportTaskRequest.h:89
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithExportToS3Task
CreateInstanceExportTaskRequest & WithExportToS3Task(const ExportToS3TaskSpecification &value)
Definition: CreateInstanceExportTaskRequest.h:115
Aws::EC2::Model::CreateInstanceExportTaskRequest::GetTargetEnvironment
const ExportEnvironment & GetTargetEnvironment() const
Definition: CreateInstanceExportTaskRequest.h:167
Aws::EC2::Model::CreateInstanceExportTaskRequest::SetExportToS3Task
void SetExportToS3Task(ExportToS3TaskSpecification &&value)
Definition: CreateInstanceExportTaskRequest.h:110
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateInstanceExportTaskRequest::WithDescription
CreateInstanceExportTaskRequest & WithDescription(Aws::String &&value)
Definition: CreateInstanceExportTaskRequest.h:83