AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateLaunchTemplate"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline bool GetDryRun() const{ return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 inline CreateLaunchTemplateRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
62 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
65 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
66 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
67 inline CreateLaunchTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
68 inline CreateLaunchTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
69 inline CreateLaunchTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
71
73
76 inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
77 inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
78 inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
79 inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
80 inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
82 inline CreateLaunchTemplateRequest& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
83 inline CreateLaunchTemplateRequest& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
85
87
90 inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
91 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
92 inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
93 inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
94 inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
96 inline CreateLaunchTemplateRequest& WithVersionDescription(Aws::String&& value) { SetVersionDescription(std::move(value)); return *this;}
97 inline CreateLaunchTemplateRequest& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
99
101
104 inline const RequestLaunchTemplateData& GetLaunchTemplateData() const{ return m_launchTemplateData; }
105 inline bool LaunchTemplateDataHasBeenSet() const { return m_launchTemplateDataHasBeenSet; }
106 inline void SetLaunchTemplateData(const RequestLaunchTemplateData& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = value; }
107 inline void SetLaunchTemplateData(RequestLaunchTemplateData&& value) { m_launchTemplateDataHasBeenSet = true; m_launchTemplateData = std::move(value); }
111
113
121 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
122 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
123 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
124 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
127 inline CreateLaunchTemplateRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
128 inline CreateLaunchTemplateRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
130 private:
131
132 bool m_dryRun;
133 bool m_dryRunHasBeenSet = false;
134
135 Aws::String m_clientToken;
136 bool m_clientTokenHasBeenSet = false;
137
138 Aws::String m_launchTemplateName;
139 bool m_launchTemplateNameHasBeenSet = false;
140
141 Aws::String m_versionDescription;
142 bool m_versionDescriptionHasBeenSet = false;
143
144 RequestLaunchTemplateData m_launchTemplateData;
145 bool m_launchTemplateDataHasBeenSet = false;
146
147 Aws::Vector<TagSpecification> m_tagSpecifications;
148 bool m_tagSpecificationsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace EC2
153} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
CreateLaunchTemplateRequest & WithLaunchTemplateName(const Aws::String &value)
CreateLaunchTemplateRequest & WithVersionDescription(const char *value)
CreateLaunchTemplateRequest & WithLaunchTemplateName(Aws::String &&value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateLaunchTemplateRequest & WithLaunchTemplateData(const RequestLaunchTemplateData &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateLaunchTemplateRequest & WithClientToken(const Aws::String &value)
CreateLaunchTemplateRequest & WithVersionDescription(const Aws::String &value)
CreateLaunchTemplateRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateLaunchTemplateRequest & WithClientToken(const char *value)
void SetLaunchTemplateData(RequestLaunchTemplateData &&value)
CreateLaunchTemplateRequest & WithDryRun(bool value)
CreateLaunchTemplateRequest & WithClientToken(Aws::String &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateLaunchTemplateRequest & WithLaunchTemplateName(const char *value)
CreateLaunchTemplateRequest & WithVersionDescription(Aws::String &&value)
CreateLaunchTemplateRequest & AddTagSpecifications(const TagSpecification &value)
CreateLaunchTemplateRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
const RequestLaunchTemplateData & GetLaunchTemplateData() const
virtual const char * GetServiceRequestName() const override
void SetLaunchTemplateData(const RequestLaunchTemplateData &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateLaunchTemplateRequest & WithLaunchTemplateData(RequestLaunchTemplateData &&value)
CreateLaunchTemplateRequest & AddTagSpecifications(TagSpecification &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector