AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLaunchTemplateRequest.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/AWSString.h>
10#include <aws/ec2/model/RequestLaunchTemplateData.h>
11#include <aws/ec2/model/OperatorRequest.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/TagSpecification.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace EC2
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_EC2_API CreateLaunchTemplateRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateLaunchTemplate"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
51 inline bool GetDryRun() const { return m_dryRun; }
52 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
53 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
54 inline CreateLaunchTemplateRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
56
58
65 inline const Aws::String& GetClientToken() const { return m_clientToken; }
66 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
67 template<typename ClientTokenT = Aws::String>
68 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
69 template<typename ClientTokenT = Aws::String>
70 CreateLaunchTemplateRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
72
74
77 inline const Aws::String& GetLaunchTemplateName() const { return m_launchTemplateName; }
78 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
79 template<typename LaunchTemplateNameT = Aws::String>
80 void SetLaunchTemplateName(LaunchTemplateNameT&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::forward<LaunchTemplateNameT>(value); }
81 template<typename LaunchTemplateNameT = Aws::String>
82 CreateLaunchTemplateRequest& WithLaunchTemplateName(LaunchTemplateNameT&& value) { SetLaunchTemplateName(std::forward<LaunchTemplateNameT>(value)); return *this;}
84
86
89 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
90 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
91 template<typename VersionDescriptionT = Aws::String>
92 void SetVersionDescription(VersionDescriptionT&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::forward<VersionDescriptionT>(value); }
93 template<typename VersionDescriptionT = Aws::String>
94 CreateLaunchTemplateRequest& WithVersionDescription(VersionDescriptionT&& value) { SetVersionDescription(std::forward<VersionDescriptionT>(value)); return *this;}
96
98
101 inline const RequestLaunchTemplateData& GetLaunchTemplateData() const { return m_launchTemplateData; }
102 inline bool LaunchTemplateDataHasBeenSet() const { return m_launchTemplateDataHasBeenSet; }
103 template<typename LaunchTemplateDataT = RequestLaunchTemplateData>
104 void SetLaunchTemplateData(LaunchTemplateDataT&& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = std::forward<LaunchTemplateDataT>(value); }
105 template<typename LaunchTemplateDataT = RequestLaunchTemplateData>
106 CreateLaunchTemplateRequest& WithLaunchTemplateData(LaunchTemplateDataT&& value) { SetLaunchTemplateData(std::forward<LaunchTemplateDataT>(value)); return *this;}
108
110
113 inline const OperatorRequest& GetOperator() const { return m_operator; }
114 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
115 template<typename OperatorT = OperatorRequest>
116 void SetOperator(OperatorT&& value) { m_operatorHasBeenSet = true; m_operator = std::forward<OperatorT>(value); }
117 template<typename OperatorT = OperatorRequest>
118 CreateLaunchTemplateRequest& WithOperator(OperatorT&& value) { SetOperator(std::forward<OperatorT>(value)); return *this;}
120
122
130 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
131 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
132 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
133 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
134 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
135 CreateLaunchTemplateRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
136 template<typename TagSpecificationsT = TagSpecification>
137 CreateLaunchTemplateRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
139 private:
140
141 bool m_dryRun{false};
142 bool m_dryRunHasBeenSet = false;
143
145 bool m_clientTokenHasBeenSet = true;
146
147 Aws::String m_launchTemplateName;
148 bool m_launchTemplateNameHasBeenSet = false;
149
150 Aws::String m_versionDescription;
151 bool m_versionDescriptionHasBeenSet = false;
152
153 RequestLaunchTemplateData m_launchTemplateData;
154 bool m_launchTemplateDataHasBeenSet = false;
155
156 OperatorRequest m_operator;
157 bool m_operatorHasBeenSet = false;
158
159 Aws::Vector<TagSpecification> m_tagSpecifications;
160 bool m_tagSpecificationsHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace EC2
165} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
void SetVersionDescription(VersionDescriptionT &&value)
CreateLaunchTemplateRequest & WithClientToken(ClientTokenT &&value)
CreateLaunchTemplateRequest & WithLaunchTemplateName(LaunchTemplateNameT &&value)
CreateLaunchTemplateRequest & WithVersionDescription(VersionDescriptionT &&value)
CreateLaunchTemplateRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API CreateLaunchTemplateRequest()=default
CreateLaunchTemplateRequest & WithDryRun(bool value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetLaunchTemplateName(LaunchTemplateNameT &&value)
CreateLaunchTemplateRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateLaunchTemplateRequest & WithLaunchTemplateData(LaunchTemplateDataT &&value)
const RequestLaunchTemplateData & GetLaunchTemplateData() const
virtual const char * GetServiceRequestName() const override
CreateLaunchTemplateRequest & WithOperator(OperatorT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector