AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
28 AWS_EC2_API CreateInstanceExportTaskRequest() = default;
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 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
50 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
51 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
52 CreateInstanceExportTaskRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
53 template<typename TagSpecificationsT = TagSpecification>
54 CreateInstanceExportTaskRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
56
58
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template<typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 CreateInstanceExportTaskRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
74 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
75 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
76 template<typename InstanceIdT = Aws::String>
77 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
78 template<typename InstanceIdT = Aws::String>
79 CreateInstanceExportTaskRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
81
83
86 inline ExportEnvironment GetTargetEnvironment() const { return m_targetEnvironment; }
87 inline bool TargetEnvironmentHasBeenSet() const { return m_targetEnvironmentHasBeenSet; }
88 inline void SetTargetEnvironment(ExportEnvironment value) { m_targetEnvironmentHasBeenSet = true; m_targetEnvironment = value; }
91
93
96 inline const ExportToS3TaskSpecification& GetExportToS3Task() const { return m_exportToS3Task; }
97 inline bool ExportToS3TaskHasBeenSet() const { return m_exportToS3TaskHasBeenSet; }
98 template<typename ExportToS3TaskT = ExportToS3TaskSpecification>
99 void SetExportToS3Task(ExportToS3TaskT&& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = std::forward<ExportToS3TaskT>(value); }
100 template<typename ExportToS3TaskT = ExportToS3TaskSpecification>
101 CreateInstanceExportTaskRequest& WithExportToS3Task(ExportToS3TaskT&& value) { SetExportToS3Task(std::forward<ExportToS3TaskT>(value)); return *this;}
103 private:
104
105 Aws::Vector<TagSpecification> m_tagSpecifications;
106 bool m_tagSpecificationsHasBeenSet = false;
107
108 Aws::String m_description;
109 bool m_descriptionHasBeenSet = false;
110
111 Aws::String m_instanceId;
112 bool m_instanceIdHasBeenSet = false;
113
115 bool m_targetEnvironmentHasBeenSet = false;
116
117 ExportToS3TaskSpecification m_exportToS3Task;
118 bool m_exportToS3TaskHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace EC2
123} // namespace Aws
CreateInstanceExportTaskRequest & WithInstanceId(InstanceIdT &&value)
const ExportToS3TaskSpecification & GetExportToS3Task() const
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateInstanceExportTaskRequest & WithDescription(DescriptionT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateInstanceExportTaskRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateInstanceExportTaskRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateInstanceExportTaskRequest & WithExportToS3Task(ExportToS3TaskT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateInstanceExportTaskRequest & WithTargetEnvironment(ExportEnvironment value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector