AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
EnableFastLaunchResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/FastLaunchLaunchTemplateSpecificationResponse.h>
12#include <aws/ec2/model/FastLaunchResourceType.h>
13#include <aws/ec2/model/FastLaunchSnapshotConfigurationResponse.h>
14#include <aws/ec2/model/FastLaunchStateCode.h>
15#include <aws/ec2/model/ResponseMetadata.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Xml {
25class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace EC2 {
29namespace Model {
31 public:
32 AWS_EC2_API EnableFastLaunchResponse() = default;
35
37
41 inline const Aws::String& GetImageId() const { return m_imageId; }
42 template <typename ImageIdT = Aws::String>
43 void SetImageId(ImageIdT&& value) {
44 m_imageIdHasBeenSet = true;
45 m_imageId = std::forward<ImageIdT>(value);
46 }
47 template <typename ImageIdT = Aws::String>
49 SetImageId(std::forward<ImageIdT>(value));
50 return *this;
51 }
53
55
59 inline FastLaunchResourceType GetResourceType() const { return m_resourceType; }
61 m_resourceTypeHasBeenSet = true;
62 m_resourceType = value;
63 }
65 SetResourceType(value);
66 return *this;
67 }
69
71
76 inline const FastLaunchSnapshotConfigurationResponse& GetSnapshotConfiguration() const { return m_snapshotConfiguration; }
77 template <typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
78 void SetSnapshotConfiguration(SnapshotConfigurationT&& value) {
79 m_snapshotConfigurationHasBeenSet = true;
80 m_snapshotConfiguration = std::forward<SnapshotConfigurationT>(value);
81 }
82 template <typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
83 EnableFastLaunchResponse& WithSnapshotConfiguration(SnapshotConfigurationT&& value) {
84 SetSnapshotConfiguration(std::forward<SnapshotConfigurationT>(value));
85 return *this;
86 }
88
90
94 inline const FastLaunchLaunchTemplateSpecificationResponse& GetLaunchTemplate() const { return m_launchTemplate; }
95 template <typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
96 void SetLaunchTemplate(LaunchTemplateT&& value) {
97 m_launchTemplateHasBeenSet = true;
98 m_launchTemplate = std::forward<LaunchTemplateT>(value);
99 }
100 template <typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
102 SetLaunchTemplate(std::forward<LaunchTemplateT>(value));
103 return *this;
104 }
106
108
112 inline int GetMaxParallelLaunches() const { return m_maxParallelLaunches; }
113 inline void SetMaxParallelLaunches(int value) {
114 m_maxParallelLaunchesHasBeenSet = true;
115 m_maxParallelLaunches = value;
116 }
119 return *this;
120 }
122
124
127 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
128 template <typename OwnerIdT = Aws::String>
129 void SetOwnerId(OwnerIdT&& value) {
130 m_ownerIdHasBeenSet = true;
131 m_ownerId = std::forward<OwnerIdT>(value);
132 }
133 template <typename OwnerIdT = Aws::String>
135 SetOwnerId(std::forward<OwnerIdT>(value));
136 return *this;
137 }
139
141
144 inline FastLaunchStateCode GetState() const { return m_state; }
145 inline void SetState(FastLaunchStateCode value) {
146 m_stateHasBeenSet = true;
147 m_state = value;
148 }
150 SetState(value);
151 return *this;
152 }
154
156
159 inline const Aws::String& GetStateTransitionReason() const { return m_stateTransitionReason; }
160 template <typename StateTransitionReasonT = Aws::String>
161 void SetStateTransitionReason(StateTransitionReasonT&& value) {
162 m_stateTransitionReasonHasBeenSet = true;
163 m_stateTransitionReason = std::forward<StateTransitionReasonT>(value);
164 }
165 template <typename StateTransitionReasonT = Aws::String>
166 EnableFastLaunchResponse& WithStateTransitionReason(StateTransitionReasonT&& value) {
167 SetStateTransitionReason(std::forward<StateTransitionReasonT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetStateTransitionTime() const { return m_stateTransitionTime; }
177 template <typename StateTransitionTimeT = Aws::Utils::DateTime>
178 void SetStateTransitionTime(StateTransitionTimeT&& value) {
179 m_stateTransitionTimeHasBeenSet = true;
180 m_stateTransitionTime = std::forward<StateTransitionTimeT>(value);
181 }
182 template <typename StateTransitionTimeT = Aws::Utils::DateTime>
183 EnableFastLaunchResponse& WithStateTransitionTime(StateTransitionTimeT&& value) {
184 SetStateTransitionTime(std::forward<StateTransitionTimeT>(value));
185 return *this;
186 }
188
190
191 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
192 template <typename ResponseMetadataT = ResponseMetadata>
193 void SetResponseMetadata(ResponseMetadataT&& value) {
194 m_responseMetadataHasBeenSet = true;
195 m_responseMetadata = std::forward<ResponseMetadataT>(value);
196 }
197 template <typename ResponseMetadataT = ResponseMetadata>
198 EnableFastLaunchResponse& WithResponseMetadata(ResponseMetadataT&& value) {
199 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
200 return *this;
201 }
203 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
204
205 private:
206 Aws::String m_imageId;
207
209
210 FastLaunchSnapshotConfigurationResponse m_snapshotConfiguration;
211
212 FastLaunchLaunchTemplateSpecificationResponse m_launchTemplate;
213
214 int m_maxParallelLaunches{0};
215
216 Aws::String m_ownerId;
217
219
220 Aws::String m_stateTransitionReason;
221
222 Aws::Utils::DateTime m_stateTransitionTime{};
223
224 ResponseMetadata m_responseMetadata;
225 Aws::Http::HttpResponseCode m_HttpResponseCode;
226 bool m_imageIdHasBeenSet = false;
227 bool m_resourceTypeHasBeenSet = false;
228 bool m_snapshotConfigurationHasBeenSet = false;
229 bool m_launchTemplateHasBeenSet = false;
230 bool m_maxParallelLaunchesHasBeenSet = false;
231 bool m_ownerIdHasBeenSet = false;
232 bool m_stateHasBeenSet = false;
233 bool m_stateTransitionReasonHasBeenSet = false;
234 bool m_stateTransitionTimeHasBeenSet = false;
235 bool m_responseMetadataHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace EC2
240} // namespace Aws
void SetResourceType(FastLaunchResourceType value)
const FastLaunchSnapshotConfigurationResponse & GetSnapshotConfiguration() const
const Aws::Utils::DateTime & GetStateTransitionTime() const
EnableFastLaunchResponse & WithOwnerId(OwnerIdT &&value)
void SetStateTransitionReason(StateTransitionReasonT &&value)
void SetSnapshotConfiguration(SnapshotConfigurationT &&value)
EnableFastLaunchResponse & WithResourceType(FastLaunchResourceType value)
EnableFastLaunchResponse & WithMaxParallelLaunches(int value)
EnableFastLaunchResponse & WithSnapshotConfiguration(SnapshotConfigurationT &&value)
AWS_EC2_API EnableFastLaunchResponse()=default
EnableFastLaunchResponse & WithResponseMetadata(ResponseMetadataT &&value)
EnableFastLaunchResponse & WithState(FastLaunchStateCode value)
EnableFastLaunchResponse & WithImageId(ImageIdT &&value)
AWS_EC2_API EnableFastLaunchResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const ResponseMetadata & GetResponseMetadata() const
void SetResponseMetadata(ResponseMetadataT &&value)
EnableFastLaunchResponse & WithStateTransitionReason(StateTransitionReasonT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
EnableFastLaunchResponse & WithStateTransitionTime(StateTransitionTimeT &&value)
void SetStateTransitionTime(StateTransitionTimeT &&value)
EnableFastLaunchResponse & WithLaunchTemplate(LaunchTemplateT &&value)
AWS_EC2_API EnableFastLaunchResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const FastLaunchLaunchTemplateSpecificationResponse & GetLaunchTemplate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument