AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLaunchConfigurationTemplateRequest.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/drs/model/LaunchDisposition.h>
11#include <aws/drs/model/Licensing.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/drs/model/TargetInstanceTypeRightSizingMethod.h>
14#include <utility>
15
16namespace Aws
17{
18namespace drs
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 "CreateLaunchConfigurationTemplate"; }
35
36 AWS_DRS_API Aws::String SerializePayload() const override;
37
38
40
43 inline bool GetCopyPrivateIp() const{ return m_copyPrivateIp; }
44 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
45 inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; }
48
50
53 inline bool GetCopyTags() const{ return m_copyTags; }
54 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
55 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
56 inline CreateLaunchConfigurationTemplateRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
58
60
63 inline const Aws::String& GetExportBucketArn() const{ return m_exportBucketArn; }
64 inline bool ExportBucketArnHasBeenSet() const { return m_exportBucketArnHasBeenSet; }
65 inline void SetExportBucketArn(const Aws::String& value) { m_exportBucketArnHasBeenSet = true; m_exportBucketArn = value; }
66 inline void SetExportBucketArn(Aws::String&& value) { m_exportBucketArnHasBeenSet = true; m_exportBucketArn = std::move(value); }
67 inline void SetExportBucketArn(const char* value) { m_exportBucketArnHasBeenSet = true; m_exportBucketArn.assign(value); }
70 inline CreateLaunchConfigurationTemplateRequest& WithExportBucketArn(const char* value) { SetExportBucketArn(value); return *this;}
72
74
77 inline const LaunchDisposition& GetLaunchDisposition() const{ return m_launchDisposition; }
78 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
79 inline void SetLaunchDisposition(const LaunchDisposition& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; }
80 inline void SetLaunchDisposition(LaunchDisposition&& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = std::move(value); }
84
86
91 inline bool GetLaunchIntoSourceInstance() const{ return m_launchIntoSourceInstance; }
92 inline bool LaunchIntoSourceInstanceHasBeenSet() const { return m_launchIntoSourceInstanceHasBeenSet; }
93 inline void SetLaunchIntoSourceInstance(bool value) { m_launchIntoSourceInstanceHasBeenSet = true; m_launchIntoSourceInstance = value; }
96
98
101 inline const Licensing& GetLicensing() const{ return m_licensing; }
102 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
103 inline void SetLicensing(const Licensing& value) { m_licensingHasBeenSet = true; m_licensing = value; }
104 inline void SetLicensing(Licensing&& value) { m_licensingHasBeenSet = true; m_licensing = std::move(value); }
106 inline CreateLaunchConfigurationTemplateRequest& WithLicensing(Licensing&& value) { SetLicensing(std::move(value)); return *this;}
108
110
113 inline bool GetPostLaunchEnabled() const{ return m_postLaunchEnabled; }
114 inline bool PostLaunchEnabledHasBeenSet() const { return m_postLaunchEnabledHasBeenSet; }
115 inline void SetPostLaunchEnabled(bool value) { m_postLaunchEnabledHasBeenSet = true; m_postLaunchEnabled = value; }
118
120
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
127 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
130 inline CreateLaunchConfigurationTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
131 inline CreateLaunchConfigurationTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline CreateLaunchConfigurationTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
133 inline CreateLaunchConfigurationTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
134 inline CreateLaunchConfigurationTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 inline CreateLaunchConfigurationTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline CreateLaunchConfigurationTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
138
140
143 inline const TargetInstanceTypeRightSizingMethod& GetTargetInstanceTypeRightSizingMethod() const{ return m_targetInstanceTypeRightSizingMethod; }
144 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
145 inline void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; }
146 inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = std::move(value); }
150 private:
151
152 bool m_copyPrivateIp;
153 bool m_copyPrivateIpHasBeenSet = false;
154
155 bool m_copyTags;
156 bool m_copyTagsHasBeenSet = false;
157
158 Aws::String m_exportBucketArn;
159 bool m_exportBucketArnHasBeenSet = false;
160
161 LaunchDisposition m_launchDisposition;
162 bool m_launchDispositionHasBeenSet = false;
163
164 bool m_launchIntoSourceInstance;
165 bool m_launchIntoSourceInstanceHasBeenSet = false;
166
167 Licensing m_licensing;
168 bool m_licensingHasBeenSet = false;
169
170 bool m_postLaunchEnabled;
171 bool m_postLaunchEnabledHasBeenSet = false;
172
174 bool m_tagsHasBeenSet = false;
175
176 TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod;
177 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace drs
182} // namespace Aws
AWS_DRS_API Aws::String SerializePayload() const override
CreateLaunchConfigurationTemplateRequest & WithLaunchDisposition(const LaunchDisposition &value)
CreateLaunchConfigurationTemplateRequest & WithExportBucketArn(const Aws::String &value)
CreateLaunchConfigurationTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLaunchConfigurationTemplateRequest & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
CreateLaunchConfigurationTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLaunchConfigurationTemplateRequest & WithExportBucketArn(const char *value)
CreateLaunchConfigurationTemplateRequest & WithCopyTags(bool value)
CreateLaunchConfigurationTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateLaunchConfigurationTemplateRequest & WithLicensing(Licensing &&value)
CreateLaunchConfigurationTemplateRequest & WithLaunchIntoSourceInstance(bool value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
CreateLaunchConfigurationTemplateRequest & AddTags(const char *key, Aws::String &&value)
CreateLaunchConfigurationTemplateRequest & WithLaunchDisposition(LaunchDisposition &&value)
CreateLaunchConfigurationTemplateRequest & WithCopyPrivateIp(bool value)
CreateLaunchConfigurationTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateLaunchConfigurationTemplateRequest & AddTags(Aws::String &&key, const char *value)
CreateLaunchConfigurationTemplateRequest & WithLicensing(const Licensing &value)
CreateLaunchConfigurationTemplateRequest & AddTags(const char *key, const char *value)
CreateLaunchConfigurationTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateLaunchConfigurationTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
const TargetInstanceTypeRightSizingMethod & GetTargetInstanceTypeRightSizingMethod() const
CreateLaunchConfigurationTemplateRequest & WithTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
CreateLaunchConfigurationTemplateRequest & WithExportBucketArn(Aws::String &&value)
CreateLaunchConfigurationTemplateRequest & WithPostLaunchEnabled(bool value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String