AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchConfigurationTemplate.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/model/LaunchDisposition.h>
10#include <aws/drs/model/Licensing.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/drs/model/TargetInstanceTypeRightSizingMethod.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace drs
26{
27namespace Model
28{
29
36 {
37 public:
42
43
45
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline LaunchConfigurationTemplate& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline LaunchConfigurationTemplate& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline LaunchConfigurationTemplate& WithArn(const char* value) { SetArn(value); return *this;}
57
59
62 inline bool GetCopyPrivateIp() const{ return m_copyPrivateIp; }
63 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
64 inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; }
65 inline LaunchConfigurationTemplate& WithCopyPrivateIp(bool value) { SetCopyPrivateIp(value); return *this;}
67
69
72 inline bool GetCopyTags() const{ return m_copyTags; }
73 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
74 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
75 inline LaunchConfigurationTemplate& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
77
79
82 inline const Aws::String& GetExportBucketArn() const{ return m_exportBucketArn; }
83 inline bool ExportBucketArnHasBeenSet() const { return m_exportBucketArnHasBeenSet; }
84 inline void SetExportBucketArn(const Aws::String& value) { m_exportBucketArnHasBeenSet = true; m_exportBucketArn = value; }
85 inline void SetExportBucketArn(Aws::String&& value) { m_exportBucketArnHasBeenSet = true; m_exportBucketArn = std::move(value); }
86 inline void SetExportBucketArn(const char* value) { m_exportBucketArnHasBeenSet = true; m_exportBucketArn.assign(value); }
88 inline LaunchConfigurationTemplate& WithExportBucketArn(Aws::String&& value) { SetExportBucketArn(std::move(value)); return *this;}
89 inline LaunchConfigurationTemplate& WithExportBucketArn(const char* value) { SetExportBucketArn(value); return *this;}
91
93
96 inline const Aws::String& GetLaunchConfigurationTemplateID() const{ return m_launchConfigurationTemplateID; }
97 inline bool LaunchConfigurationTemplateIDHasBeenSet() const { return m_launchConfigurationTemplateIDHasBeenSet; }
98 inline void SetLaunchConfigurationTemplateID(const Aws::String& value) { m_launchConfigurationTemplateIDHasBeenSet = true; m_launchConfigurationTemplateID = value; }
99 inline void SetLaunchConfigurationTemplateID(Aws::String&& value) { m_launchConfigurationTemplateIDHasBeenSet = true; m_launchConfigurationTemplateID = std::move(value); }
100 inline void SetLaunchConfigurationTemplateID(const char* value) { m_launchConfigurationTemplateIDHasBeenSet = true; m_launchConfigurationTemplateID.assign(value); }
105
107
110 inline const LaunchDisposition& GetLaunchDisposition() const{ return m_launchDisposition; }
111 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
112 inline void SetLaunchDisposition(const LaunchDisposition& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; }
113 inline void SetLaunchDisposition(LaunchDisposition&& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = std::move(value); }
117
119
124 inline bool GetLaunchIntoSourceInstance() const{ return m_launchIntoSourceInstance; }
125 inline bool LaunchIntoSourceInstanceHasBeenSet() const { return m_launchIntoSourceInstanceHasBeenSet; }
126 inline void SetLaunchIntoSourceInstance(bool value) { m_launchIntoSourceInstanceHasBeenSet = true; m_launchIntoSourceInstance = value; }
129
131
134 inline const Licensing& GetLicensing() const{ return m_licensing; }
135 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
136 inline void SetLicensing(const Licensing& value) { m_licensingHasBeenSet = true; m_licensing = value; }
137 inline void SetLicensing(Licensing&& value) { m_licensingHasBeenSet = true; m_licensing = std::move(value); }
138 inline LaunchConfigurationTemplate& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;}
139 inline LaunchConfigurationTemplate& WithLicensing(Licensing&& value) { SetLicensing(std::move(value)); return *this;}
141
143
146 inline bool GetPostLaunchEnabled() const{ return m_postLaunchEnabled; }
147 inline bool PostLaunchEnabledHasBeenSet() const { return m_postLaunchEnabledHasBeenSet; }
148 inline void SetPostLaunchEnabled(bool value) { m_postLaunchEnabledHasBeenSet = true; m_postLaunchEnabled = value; }
149 inline LaunchConfigurationTemplate& WithPostLaunchEnabled(bool value) { SetPostLaunchEnabled(value); return *this;}
151
153
156 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
159 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
161 inline LaunchConfigurationTemplate& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
162 inline LaunchConfigurationTemplate& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
163 inline LaunchConfigurationTemplate& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
164 inline LaunchConfigurationTemplate& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
165 inline LaunchConfigurationTemplate& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
166 inline LaunchConfigurationTemplate& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
167 inline LaunchConfigurationTemplate& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
168 inline LaunchConfigurationTemplate& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
170
172
175 inline const TargetInstanceTypeRightSizingMethod& GetTargetInstanceTypeRightSizingMethod() const{ return m_targetInstanceTypeRightSizingMethod; }
176 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
177 inline void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; }
178 inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = std::move(value); }
182 private:
183
184 Aws::String m_arn;
185 bool m_arnHasBeenSet = false;
186
187 bool m_copyPrivateIp;
188 bool m_copyPrivateIpHasBeenSet = false;
189
190 bool m_copyTags;
191 bool m_copyTagsHasBeenSet = false;
192
193 Aws::String m_exportBucketArn;
194 bool m_exportBucketArnHasBeenSet = false;
195
196 Aws::String m_launchConfigurationTemplateID;
197 bool m_launchConfigurationTemplateIDHasBeenSet = false;
198
199 LaunchDisposition m_launchDisposition;
200 bool m_launchDispositionHasBeenSet = false;
201
202 bool m_launchIntoSourceInstance;
203 bool m_launchIntoSourceInstanceHasBeenSet = false;
204
205 Licensing m_licensing;
206 bool m_licensingHasBeenSet = false;
207
208 bool m_postLaunchEnabled;
209 bool m_postLaunchEnabledHasBeenSet = false;
210
212 bool m_tagsHasBeenSet = false;
213
214 TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod;
215 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace drs
220} // namespace Aws
AWS_DRS_API LaunchConfigurationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
LaunchConfigurationTemplate & AddTags(const char *key, const char *value)
LaunchConfigurationTemplate & WithCopyTags(bool value)
LaunchConfigurationTemplate & WithPostLaunchEnabled(bool value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
LaunchConfigurationTemplate & WithLicensing(Licensing &&value)
LaunchConfigurationTemplate & WithArn(const Aws::String &value)
void SetLaunchConfigurationTemplateID(const Aws::String &value)
LaunchConfigurationTemplate & WithCopyPrivateIp(bool value)
LaunchConfigurationTemplate & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
LaunchConfigurationTemplate & AddTags(Aws::String &&key, const char *value)
const TargetInstanceTypeRightSizingMethod & GetTargetInstanceTypeRightSizingMethod() const
LaunchConfigurationTemplate & WithTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
LaunchConfigurationTemplate & WithExportBucketArn(Aws::String &&value)
void SetLaunchDisposition(const LaunchDisposition &value)
LaunchConfigurationTemplate & WithLaunchConfigurationTemplateID(const char *value)
LaunchConfigurationTemplate & WithArn(const char *value)
LaunchConfigurationTemplate & AddTags(const Aws::String &key, const Aws::String &value)
LaunchConfigurationTemplate & WithExportBucketArn(const char *value)
LaunchConfigurationTemplate & WithArn(Aws::String &&value)
AWS_DRS_API LaunchConfigurationTemplate(Aws::Utils::Json::JsonView jsonValue)
LaunchConfigurationTemplate & WithLaunchConfigurationTemplateID(const Aws::String &value)
LaunchConfigurationTemplate & WithLaunchIntoSourceInstance(bool value)
LaunchConfigurationTemplate & WithLaunchDisposition(const LaunchDisposition &value)
LaunchConfigurationTemplate & AddTags(const Aws::String &key, Aws::String &&value)
LaunchConfigurationTemplate & WithLicensing(const Licensing &value)
LaunchConfigurationTemplate & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
LaunchConfigurationTemplate & WithExportBucketArn(const Aws::String &value)
LaunchConfigurationTemplate & AddTags(const char *key, Aws::String &&value)
LaunchConfigurationTemplate & WithLaunchConfigurationTemplateID(Aws::String &&value)
LaunchConfigurationTemplate & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
LaunchConfigurationTemplate & AddTags(Aws::String &&key, Aws::String &&value)
LaunchConfigurationTemplate & WithLaunchDisposition(LaunchDisposition &&value)
LaunchConfigurationTemplate & AddTags(Aws::String &&key, const Aws::String &value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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
Aws::Utils::Json::JsonValue JsonValue