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/drs/Drs_EXPORTS.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/drs/model/LaunchDisposition.h>
10#include <aws/drs/model/LaunchIntoInstanceProperties.h>
11#include <aws/drs/model/Licensing.h>
12#include <aws/core/utils/memory/stl/AWSString.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 "UpdateLaunchConfiguration"; }
35
36 AWS_DRS_API Aws::String SerializePayload() const override;
37
38
40
44 inline bool GetCopyPrivateIp() const{ return m_copyPrivateIp; }
45 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
46 inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; }
47 inline UpdateLaunchConfigurationRequest& WithCopyPrivateIp(bool value) { SetCopyPrivateIp(value); return *this;}
49
51
55 inline bool GetCopyTags() const{ return m_copyTags; }
56 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
57 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
58 inline UpdateLaunchConfigurationRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
60
62
65 inline const LaunchDisposition& GetLaunchDisposition() const{ return m_launchDisposition; }
66 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
67 inline void SetLaunchDisposition(const LaunchDisposition& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; }
68 inline void SetLaunchDisposition(LaunchDisposition&& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = std::move(value); }
72
74
77 inline const LaunchIntoInstanceProperties& GetLaunchIntoInstanceProperties() const{ return m_launchIntoInstanceProperties; }
78 inline bool LaunchIntoInstancePropertiesHasBeenSet() const { return m_launchIntoInstancePropertiesHasBeenSet; }
79 inline void SetLaunchIntoInstanceProperties(const LaunchIntoInstanceProperties& value) { m_launchIntoInstancePropertiesHasBeenSet = true; m_launchIntoInstanceProperties = value; }
80 inline void SetLaunchIntoInstanceProperties(LaunchIntoInstanceProperties&& value) { m_launchIntoInstancePropertiesHasBeenSet = true; m_launchIntoInstanceProperties = std::move(value); }
84
86
89 inline const Licensing& GetLicensing() const{ return m_licensing; }
90 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
91 inline void SetLicensing(const Licensing& value) { m_licensingHasBeenSet = true; m_licensing = value; }
92 inline void SetLicensing(Licensing&& value) { m_licensingHasBeenSet = true; m_licensing = std::move(value); }
93 inline UpdateLaunchConfigurationRequest& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;}
94 inline UpdateLaunchConfigurationRequest& WithLicensing(Licensing&& value) { SetLicensing(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetName() const{ return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 inline UpdateLaunchConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 inline UpdateLaunchConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
108 inline UpdateLaunchConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
110
112
115 inline bool GetPostLaunchEnabled() const{ return m_postLaunchEnabled; }
116 inline bool PostLaunchEnabledHasBeenSet() const { return m_postLaunchEnabledHasBeenSet; }
117 inline void SetPostLaunchEnabled(bool value) { m_postLaunchEnabledHasBeenSet = true; m_postLaunchEnabled = value; }
120
122
126 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
127 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
128 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
129 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
130 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
132 inline UpdateLaunchConfigurationRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
133 inline UpdateLaunchConfigurationRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
135
137
141 inline const TargetInstanceTypeRightSizingMethod& GetTargetInstanceTypeRightSizingMethod() const{ return m_targetInstanceTypeRightSizingMethod; }
142 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
143 inline void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; }
144 inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = std::move(value); }
148 private:
149
150 bool m_copyPrivateIp;
151 bool m_copyPrivateIpHasBeenSet = false;
152
153 bool m_copyTags;
154 bool m_copyTagsHasBeenSet = false;
155
156 LaunchDisposition m_launchDisposition;
157 bool m_launchDispositionHasBeenSet = false;
158
159 LaunchIntoInstanceProperties m_launchIntoInstanceProperties;
160 bool m_launchIntoInstancePropertiesHasBeenSet = false;
161
162 Licensing m_licensing;
163 bool m_licensingHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 bool m_postLaunchEnabled;
169 bool m_postLaunchEnabledHasBeenSet = false;
170
171 Aws::String m_sourceServerID;
172 bool m_sourceServerIDHasBeenSet = false;
173
174 TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod;
175 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace drs
180} // namespace Aws
UpdateLaunchConfigurationRequest & WithLicensing(Licensing &&value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
UpdateLaunchConfigurationRequest & WithCopyPrivateIp(bool value)
void SetLaunchIntoInstanceProperties(LaunchIntoInstanceProperties &&value)
UpdateLaunchConfigurationRequest & WithPostLaunchEnabled(bool value)
UpdateLaunchConfigurationRequest & WithLaunchIntoInstanceProperties(const LaunchIntoInstanceProperties &value)
void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
AWS_DRS_API Aws::String SerializePayload() const override
const LaunchIntoInstanceProperties & GetLaunchIntoInstanceProperties() const
UpdateLaunchConfigurationRequest & WithSourceServerID(const char *value)
UpdateLaunchConfigurationRequest & WithName(const char *value)
UpdateLaunchConfigurationRequest & WithLaunchIntoInstanceProperties(LaunchIntoInstanceProperties &&value)
void SetLaunchIntoInstanceProperties(const LaunchIntoInstanceProperties &value)
UpdateLaunchConfigurationRequest & WithName(const Aws::String &value)
UpdateLaunchConfigurationRequest & WithLicensing(const Licensing &value)
const TargetInstanceTypeRightSizingMethod & GetTargetInstanceTypeRightSizingMethod() const
UpdateLaunchConfigurationRequest & WithName(Aws::String &&value)
UpdateLaunchConfigurationRequest & WithTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
UpdateLaunchConfigurationRequest & WithLaunchDisposition(const LaunchDisposition &value)
UpdateLaunchConfigurationRequest & WithSourceServerID(Aws::String &&value)
UpdateLaunchConfigurationRequest & WithSourceServerID(const Aws::String &value)
UpdateLaunchConfigurationRequest & WithCopyTags(bool value)
UpdateLaunchConfigurationRequest & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
UpdateLaunchConfigurationRequest & WithLaunchDisposition(LaunchDisposition &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String