AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
28 AWS_DRS_API UpdateLaunchConfigurationRequest() = default;
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 LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
66 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
67 inline void SetLaunchDisposition(LaunchDisposition value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; }
70
72
75 inline const LaunchIntoInstanceProperties& GetLaunchIntoInstanceProperties() const { return m_launchIntoInstanceProperties; }
76 inline bool LaunchIntoInstancePropertiesHasBeenSet() const { return m_launchIntoInstancePropertiesHasBeenSet; }
77 template<typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
78 void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) { m_launchIntoInstancePropertiesHasBeenSet = true; m_launchIntoInstanceProperties = std::forward<LaunchIntoInstancePropertiesT>(value); }
79 template<typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
80 UpdateLaunchConfigurationRequest& WithLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) { SetLaunchIntoInstanceProperties(std::forward<LaunchIntoInstancePropertiesT>(value)); return *this;}
82
84
87 inline const Licensing& GetLicensing() const { return m_licensing; }
88 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
89 template<typename LicensingT = Licensing>
90 void SetLicensing(LicensingT&& value) { m_licensingHasBeenSet = true; m_licensing = std::forward<LicensingT>(value); }
91 template<typename LicensingT = Licensing>
92 UpdateLaunchConfigurationRequest& WithLicensing(LicensingT&& value) { SetLicensing(std::forward<LicensingT>(value)); return *this;}
94
96
99 inline const Aws::String& GetName() const { return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 template<typename NameT = Aws::String>
102 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
103 template<typename NameT = Aws::String>
104 UpdateLaunchConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
106
108
111 inline bool GetPostLaunchEnabled() const { return m_postLaunchEnabled; }
112 inline bool PostLaunchEnabledHasBeenSet() const { return m_postLaunchEnabledHasBeenSet; }
113 inline void SetPostLaunchEnabled(bool value) { m_postLaunchEnabledHasBeenSet = true; m_postLaunchEnabled = value; }
116
118
122 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
123 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
124 template<typename SourceServerIDT = Aws::String>
125 void SetSourceServerID(SourceServerIDT&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::forward<SourceServerIDT>(value); }
126 template<typename SourceServerIDT = Aws::String>
127 UpdateLaunchConfigurationRequest& WithSourceServerID(SourceServerIDT&& value) { SetSourceServerID(std::forward<SourceServerIDT>(value)); return *this;}
129
131
135 inline TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const { return m_targetInstanceTypeRightSizingMethod; }
136 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
137 inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; }
140 private:
141
142 bool m_copyPrivateIp{false};
143 bool m_copyPrivateIpHasBeenSet = false;
144
145 bool m_copyTags{false};
146 bool m_copyTagsHasBeenSet = false;
147
149 bool m_launchDispositionHasBeenSet = false;
150
151 LaunchIntoInstanceProperties m_launchIntoInstanceProperties;
152 bool m_launchIntoInstancePropertiesHasBeenSet = false;
153
154 Licensing m_licensing;
155 bool m_licensingHasBeenSet = false;
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159
160 bool m_postLaunchEnabled{false};
161 bool m_postLaunchEnabledHasBeenSet = false;
162
163 Aws::String m_sourceServerID;
164 bool m_sourceServerIDHasBeenSet = false;
165
167 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace drs
172} // namespace Aws
UpdateLaunchConfigurationRequest & WithCopyPrivateIp(bool value)
UpdateLaunchConfigurationRequest & WithPostLaunchEnabled(bool value)
AWS_DRS_API Aws::String SerializePayload() const override
const LaunchIntoInstanceProperties & GetLaunchIntoInstanceProperties() const
UpdateLaunchConfigurationRequest & WithLaunchDisposition(LaunchDisposition value)
void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT &&value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationRequest & WithLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT &&value)
TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const
UpdateLaunchConfigurationRequest & WithSourceServerID(SourceServerIDT &&value)
UpdateLaunchConfigurationRequest & WithLicensing(LicensingT &&value)
UpdateLaunchConfigurationRequest & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationRequest & WithCopyTags(bool value)
UpdateLaunchConfigurationRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String