AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInstanceExportTaskRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/ExportEnvironment.h>
12#include <aws/ec2/model/ExportToS3TaskSpecification.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:
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_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 Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
48 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
49 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
50 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
53 inline CreateInstanceExportTaskRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
54 inline CreateInstanceExportTaskRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
56
58
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline CreateInstanceExportTaskRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline CreateInstanceExportTaskRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline CreateInstanceExportTaskRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
77 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
78 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
79 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
80 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
81 inline CreateInstanceExportTaskRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
82 inline CreateInstanceExportTaskRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
83 inline CreateInstanceExportTaskRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
85
87
90 inline const ExportEnvironment& GetTargetEnvironment() const{ return m_targetEnvironment; }
91 inline bool TargetEnvironmentHasBeenSet() const { return m_targetEnvironmentHasBeenSet; }
92 inline void SetTargetEnvironment(const ExportEnvironment& value) { m_targetEnvironmentHasBeenSet = true; m_targetEnvironment = value; }
93 inline void SetTargetEnvironment(ExportEnvironment&& value) { m_targetEnvironmentHasBeenSet = true; m_targetEnvironment = std::move(value); }
97
99
102 inline const ExportToS3TaskSpecification& GetExportToS3Task() const{ return m_exportToS3Task; }
103 inline bool ExportToS3TaskHasBeenSet() const { return m_exportToS3TaskHasBeenSet; }
104 inline void SetExportToS3Task(const ExportToS3TaskSpecification& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = value; }
105 inline void SetExportToS3Task(ExportToS3TaskSpecification&& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = std::move(value); }
109 private:
110
111 Aws::Vector<TagSpecification> m_tagSpecifications;
112 bool m_tagSpecificationsHasBeenSet = false;
113
114 Aws::String m_description;
115 bool m_descriptionHasBeenSet = false;
116
117 Aws::String m_instanceId;
118 bool m_instanceIdHasBeenSet = false;
119
120 ExportEnvironment m_targetEnvironment;
121 bool m_targetEnvironmentHasBeenSet = false;
122
123 ExportToS3TaskSpecification m_exportToS3Task;
124 bool m_exportToS3TaskHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace EC2
129} // namespace Aws
CreateInstanceExportTaskRequest & WithTargetEnvironment(ExportEnvironment &&value)
void SetExportToS3Task(const ExportToS3TaskSpecification &value)
CreateInstanceExportTaskRequest & AddTagSpecifications(const TagSpecification &value)
CreateInstanceExportTaskRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateInstanceExportTaskRequest & WithExportToS3Task(const ExportToS3TaskSpecification &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
const ExportToS3TaskSpecification & GetExportToS3Task() const
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AWS_EC2_API Aws::String SerializePayload() const override
CreateInstanceExportTaskRequest & AddTagSpecifications(TagSpecification &&value)
CreateInstanceExportTaskRequest & WithDescription(const char *value)
void SetExportToS3Task(ExportToS3TaskSpecification &&value)
CreateInstanceExportTaskRequest & WithInstanceId(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateInstanceExportTaskRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateInstanceExportTaskRequest & WithDescription(Aws::String &&value)
CreateInstanceExportTaskRequest & WithInstanceId(Aws::String &&value)
CreateInstanceExportTaskRequest & WithInstanceId(const Aws::String &value)
CreateInstanceExportTaskRequest & WithTargetEnvironment(const ExportEnvironment &value)
CreateInstanceExportTaskRequest & WithExportToS3Task(ExportToS3TaskSpecification &&value)
CreateInstanceExportTaskRequest & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector