AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateLaunchConfigurationRequest.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/MgnRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mgn/model/BootMode.h>
11#include <aws/mgn/model/LaunchDisposition.h>
12#include <aws/mgn/model/Licensing.h>
13#include <aws/mgn/model/PostLaunchActions.h>
14#include <aws/mgn/model/TargetInstanceTypeRightSizingMethod.h>
15#include <utility>
16
17namespace Aws
18{
19namespace mgn
20{
21namespace Model
22{
23
27 {
28 public:
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 "UpdateLaunchConfiguration"; }
36
37 AWS_MGN_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetAccountID() const{ return m_accountID; }
45 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
46 inline void SetAccountID(const Aws::String& value) { m_accountIDHasBeenSet = true; m_accountID = value; }
47 inline void SetAccountID(Aws::String&& value) { m_accountIDHasBeenSet = true; m_accountID = std::move(value); }
48 inline void SetAccountID(const char* value) { m_accountIDHasBeenSet = true; m_accountID.assign(value); }
49 inline UpdateLaunchConfigurationRequest& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;}
50 inline UpdateLaunchConfigurationRequest& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;}
51 inline UpdateLaunchConfigurationRequest& WithAccountID(const char* value) { SetAccountID(value); return *this;}
53
55
58 inline const BootMode& GetBootMode() const{ return m_bootMode; }
59 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
60 inline void SetBootMode(const BootMode& value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
61 inline void SetBootMode(BootMode&& value) { m_bootModeHasBeenSet = true; m_bootMode = std::move(value); }
62 inline UpdateLaunchConfigurationRequest& WithBootMode(const BootMode& value) { SetBootMode(value); return *this;}
63 inline UpdateLaunchConfigurationRequest& WithBootMode(BootMode&& value) { SetBootMode(std::move(value)); return *this;}
65
67
70 inline bool GetCopyPrivateIp() const{ return m_copyPrivateIp; }
71 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
72 inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; }
73 inline UpdateLaunchConfigurationRequest& WithCopyPrivateIp(bool value) { SetCopyPrivateIp(value); return *this;}
75
77
80 inline bool GetCopyTags() const{ return m_copyTags; }
81 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
82 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
83 inline UpdateLaunchConfigurationRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
85
87
90 inline bool GetEnableMapAutoTagging() const{ return m_enableMapAutoTagging; }
91 inline bool EnableMapAutoTaggingHasBeenSet() const { return m_enableMapAutoTaggingHasBeenSet; }
92 inline void SetEnableMapAutoTagging(bool value) { m_enableMapAutoTaggingHasBeenSet = true; m_enableMapAutoTagging = value; }
95
97
100 inline const LaunchDisposition& GetLaunchDisposition() const{ return m_launchDisposition; }
101 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
102 inline void SetLaunchDisposition(const LaunchDisposition& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; }
103 inline void SetLaunchDisposition(LaunchDisposition&& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = std::move(value); }
107
109
112 inline const Licensing& GetLicensing() const{ return m_licensing; }
113 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
114 inline void SetLicensing(const Licensing& value) { m_licensingHasBeenSet = true; m_licensing = value; }
115 inline void SetLicensing(Licensing&& value) { m_licensingHasBeenSet = true; m_licensing = std::move(value); }
116 inline UpdateLaunchConfigurationRequest& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;}
117 inline UpdateLaunchConfigurationRequest& WithLicensing(Licensing&& value) { SetLicensing(std::move(value)); return *this;}
119
121
124 inline const Aws::String& GetMapAutoTaggingMpeID() const{ return m_mapAutoTaggingMpeID; }
125 inline bool MapAutoTaggingMpeIDHasBeenSet() const { return m_mapAutoTaggingMpeIDHasBeenSet; }
126 inline void SetMapAutoTaggingMpeID(const Aws::String& value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID = value; }
127 inline void SetMapAutoTaggingMpeID(Aws::String&& value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID = std::move(value); }
128 inline void SetMapAutoTaggingMpeID(const char* value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID.assign(value); }
131 inline UpdateLaunchConfigurationRequest& WithMapAutoTaggingMpeID(const char* value) { SetMapAutoTaggingMpeID(value); return *this;}
133
135
138 inline const Aws::String& GetName() const{ return m_name; }
139 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
140 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
141 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
142 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
143 inline UpdateLaunchConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
144 inline UpdateLaunchConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
145 inline UpdateLaunchConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
147
149
150 inline const PostLaunchActions& GetPostLaunchActions() const{ return m_postLaunchActions; }
151 inline bool PostLaunchActionsHasBeenSet() const { return m_postLaunchActionsHasBeenSet; }
152 inline void SetPostLaunchActions(const PostLaunchActions& value) { m_postLaunchActionsHasBeenSet = true; m_postLaunchActions = value; }
153 inline void SetPostLaunchActions(PostLaunchActions&& value) { m_postLaunchActionsHasBeenSet = true; m_postLaunchActions = std::move(value); }
157
159
162 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
163 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
164 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
165 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
166 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
168 inline UpdateLaunchConfigurationRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
169 inline UpdateLaunchConfigurationRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
171
173
176 inline const TargetInstanceTypeRightSizingMethod& GetTargetInstanceTypeRightSizingMethod() const{ return m_targetInstanceTypeRightSizingMethod; }
177 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
178 inline void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; }
179 inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = std::move(value); }
183 private:
184
185 Aws::String m_accountID;
186 bool m_accountIDHasBeenSet = false;
187
188 BootMode m_bootMode;
189 bool m_bootModeHasBeenSet = false;
190
191 bool m_copyPrivateIp;
192 bool m_copyPrivateIpHasBeenSet = false;
193
194 bool m_copyTags;
195 bool m_copyTagsHasBeenSet = false;
196
197 bool m_enableMapAutoTagging;
198 bool m_enableMapAutoTaggingHasBeenSet = false;
199
200 LaunchDisposition m_launchDisposition;
201 bool m_launchDispositionHasBeenSet = false;
202
203 Licensing m_licensing;
204 bool m_licensingHasBeenSet = false;
205
206 Aws::String m_mapAutoTaggingMpeID;
207 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
208
209 Aws::String m_name;
210 bool m_nameHasBeenSet = false;
211
212 PostLaunchActions m_postLaunchActions;
213 bool m_postLaunchActionsHasBeenSet = false;
214
215 Aws::String m_sourceServerID;
216 bool m_sourceServerIDHasBeenSet = false;
217
218 TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod;
219 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace mgn
224} // namespace Aws
UpdateLaunchConfigurationRequest & WithEnableMapAutoTagging(bool value)
UpdateLaunchConfigurationRequest & WithAccountID(const char *value)
UpdateLaunchConfigurationRequest & WithPostLaunchActions(PostLaunchActions &&value)
UpdateLaunchConfigurationRequest & WithMapAutoTaggingMpeID(Aws::String &&value)
UpdateLaunchConfigurationRequest & WithLaunchDisposition(LaunchDisposition &&value)
void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
UpdateLaunchConfigurationRequest & WithAccountID(Aws::String &&value)
UpdateLaunchConfigurationRequest & WithCopyTags(bool value)
UpdateLaunchConfigurationRequest & WithName(Aws::String &&value)
UpdateLaunchConfigurationRequest & WithName(const char *value)
UpdateLaunchConfigurationRequest & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
const TargetInstanceTypeRightSizingMethod & GetTargetInstanceTypeRightSizingMethod() const
UpdateLaunchConfigurationRequest & WithTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
UpdateLaunchConfigurationRequest & WithCopyPrivateIp(bool value)
UpdateLaunchConfigurationRequest & WithMapAutoTaggingMpeID(const char *value)
UpdateLaunchConfigurationRequest & WithName(const Aws::String &value)
UpdateLaunchConfigurationRequest & WithSourceServerID(const char *value)
UpdateLaunchConfigurationRequest & WithBootMode(const BootMode &value)
UpdateLaunchConfigurationRequest & WithPostLaunchActions(const PostLaunchActions &value)
UpdateLaunchConfigurationRequest & WithAccountID(const Aws::String &value)
UpdateLaunchConfigurationRequest & WithBootMode(BootMode &&value)
UpdateLaunchConfigurationRequest & WithSourceServerID(Aws::String &&value)
UpdateLaunchConfigurationRequest & WithLaunchDisposition(const LaunchDisposition &value)
AWS_MGN_API Aws::String SerializePayload() const override
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
UpdateLaunchConfigurationRequest & WithLicensing(const Licensing &value)
UpdateLaunchConfigurationRequest & WithSourceServerID(const Aws::String &value)
UpdateLaunchConfigurationRequest & WithMapAutoTaggingMpeID(const Aws::String &value)
UpdateLaunchConfigurationRequest & WithLicensing(Licensing &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String