AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetLaunchConfigurationResult.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/LaunchIntoInstanceProperties.h>
11#include <aws/drs/model/Licensing.h>
12#include <aws/drs/model/TargetInstanceTypeRightSizingMethod.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace drs
28{
29namespace Model
30{
32 {
33 public:
34 AWS_DRS_API GetLaunchConfigurationResult() = default;
37
38
40
44 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
45 inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; }
46 inline GetLaunchConfigurationResult& WithCopyPrivateIp(bool value) { SetCopyPrivateIp(value); return *this;}
48
50
54 inline bool GetCopyTags() const { return m_copyTags; }
55 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
56 inline GetLaunchConfigurationResult& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
58
60
63 inline const Aws::String& GetEc2LaunchTemplateID() const { return m_ec2LaunchTemplateID; }
64 template<typename Ec2LaunchTemplateIDT = Aws::String>
65 void SetEc2LaunchTemplateID(Ec2LaunchTemplateIDT&& value) { m_ec2LaunchTemplateIDHasBeenSet = true; m_ec2LaunchTemplateID = std::forward<Ec2LaunchTemplateIDT>(value); }
66 template<typename Ec2LaunchTemplateIDT = Aws::String>
67 GetLaunchConfigurationResult& WithEc2LaunchTemplateID(Ec2LaunchTemplateIDT&& value) { SetEc2LaunchTemplateID(std::forward<Ec2LaunchTemplateIDT>(value)); return *this;}
69
71
74 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
75 inline void SetLaunchDisposition(LaunchDisposition value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; }
78
80
83 inline const LaunchIntoInstanceProperties& GetLaunchIntoInstanceProperties() const { return m_launchIntoInstanceProperties; }
84 template<typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
85 void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) { m_launchIntoInstancePropertiesHasBeenSet = true; m_launchIntoInstanceProperties = std::forward<LaunchIntoInstancePropertiesT>(value); }
86 template<typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
87 GetLaunchConfigurationResult& WithLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) { SetLaunchIntoInstanceProperties(std::forward<LaunchIntoInstancePropertiesT>(value)); return *this;}
89
91
94 inline const Licensing& GetLicensing() const { return m_licensing; }
95 template<typename LicensingT = Licensing>
96 void SetLicensing(LicensingT&& value) { m_licensingHasBeenSet = true; m_licensing = std::forward<LicensingT>(value); }
97 template<typename LicensingT = Licensing>
98 GetLaunchConfigurationResult& WithLicensing(LicensingT&& value) { SetLicensing(std::forward<LicensingT>(value)); return *this;}
100
102
105 inline const Aws::String& GetName() const { return m_name; }
106 template<typename NameT = Aws::String>
107 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
108 template<typename NameT = Aws::String>
109 GetLaunchConfigurationResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
111
113
116 inline bool GetPostLaunchEnabled() const { return m_postLaunchEnabled; }
117 inline void SetPostLaunchEnabled(bool value) { m_postLaunchEnabledHasBeenSet = true; m_postLaunchEnabled = value; }
120
122
125 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
126 template<typename SourceServerIDT = Aws::String>
127 void SetSourceServerID(SourceServerIDT&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::forward<SourceServerIDT>(value); }
128 template<typename SourceServerIDT = Aws::String>
129 GetLaunchConfigurationResult& WithSourceServerID(SourceServerIDT&& value) { SetSourceServerID(std::forward<SourceServerIDT>(value)); return *this;}
131
133
137 inline TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const { return m_targetInstanceTypeRightSizingMethod; }
138 inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; }
141
143
144 inline const Aws::String& GetRequestId() const { return m_requestId; }
145 template<typename RequestIdT = Aws::String>
146 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
147 template<typename RequestIdT = Aws::String>
148 GetLaunchConfigurationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
150 private:
151
152 bool m_copyPrivateIp{false};
153 bool m_copyPrivateIpHasBeenSet = false;
154
155 bool m_copyTags{false};
156 bool m_copyTagsHasBeenSet = false;
157
158 Aws::String m_ec2LaunchTemplateID;
159 bool m_ec2LaunchTemplateIDHasBeenSet = false;
160
162 bool m_launchDispositionHasBeenSet = false;
163
164 LaunchIntoInstanceProperties m_launchIntoInstanceProperties;
165 bool m_launchIntoInstancePropertiesHasBeenSet = false;
166
167 Licensing m_licensing;
168 bool m_licensingHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 bool m_postLaunchEnabled{false};
174 bool m_postLaunchEnabledHasBeenSet = false;
175
176 Aws::String m_sourceServerID;
177 bool m_sourceServerIDHasBeenSet = false;
178
180 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
181
182 Aws::String m_requestId;
183 bool m_requestIdHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace drs
188} // namespace Aws
GetLaunchConfigurationResult & WithCopyPrivateIp(bool value)
GetLaunchConfigurationResult & WithSourceServerID(SourceServerIDT &&value)
TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const
AWS_DRS_API GetLaunchConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLaunchConfigurationResult & WithLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT &&value)
GetLaunchConfigurationResult & WithEc2LaunchTemplateID(Ec2LaunchTemplateIDT &&value)
GetLaunchConfigurationResult & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
GetLaunchConfigurationResult & WithName(NameT &&value)
GetLaunchConfigurationResult & WithRequestId(RequestIdT &&value)
GetLaunchConfigurationResult & WithLaunchDisposition(LaunchDisposition value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
GetLaunchConfigurationResult & WithPostLaunchEnabled(bool value)
AWS_DRS_API GetLaunchConfigurationResult()=default
const LaunchIntoInstanceProperties & GetLaunchIntoInstanceProperties() const
GetLaunchConfigurationResult & WithCopyTags(bool value)
AWS_DRS_API GetLaunchConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT &&value)
GetLaunchConfigurationResult & WithLicensing(LicensingT &&value)
void SetEc2LaunchTemplateID(Ec2LaunchTemplateIDT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue