AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
DisableFastLaunchResponse.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 DisableFastLaunchResponse() = default;
35
37
40 inline const Aws::String& GetImageId() const { return m_imageId; }
41 template <typename ImageIdT = Aws::String>
42 void SetImageId(ImageIdT&& value) {
43 m_imageIdHasBeenSet = true;
44 m_imageId = std::forward<ImageIdT>(value);
45 }
46 template <typename ImageIdT = Aws::String>
48 SetImageId(std::forward<ImageIdT>(value));
49 return *this;
50 }
52
54
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
75 inline const FastLaunchSnapshotConfigurationResponse& GetSnapshotConfiguration() const { return m_snapshotConfiguration; }
76 template <typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
77 void SetSnapshotConfiguration(SnapshotConfigurationT&& value) {
78 m_snapshotConfigurationHasBeenSet = true;
79 m_snapshotConfiguration = std::forward<SnapshotConfigurationT>(value);
80 }
81 template <typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
82 DisableFastLaunchResponse& WithSnapshotConfiguration(SnapshotConfigurationT&& value) {
83 SetSnapshotConfiguration(std::forward<SnapshotConfigurationT>(value));
84 return *this;
85 }
87
89
93 inline const FastLaunchLaunchTemplateSpecificationResponse& GetLaunchTemplate() const { return m_launchTemplate; }
94 template <typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
95 void SetLaunchTemplate(LaunchTemplateT&& value) {
96 m_launchTemplateHasBeenSet = true;
97 m_launchTemplate = std::forward<LaunchTemplateT>(value);
98 }
99 template <typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
101 SetLaunchTemplate(std::forward<LaunchTemplateT>(value));
102 return *this;
103 }
105
107
111 inline int GetMaxParallelLaunches() const { return m_maxParallelLaunches; }
112 inline void SetMaxParallelLaunches(int value) {
113 m_maxParallelLaunchesHasBeenSet = true;
114 m_maxParallelLaunches = value;
115 }
118 return *this;
119 }
121
123
126 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
127 template <typename OwnerIdT = Aws::String>
128 void SetOwnerId(OwnerIdT&& value) {
129 m_ownerIdHasBeenSet = true;
130 m_ownerId = std::forward<OwnerIdT>(value);
131 }
132 template <typename OwnerIdT = Aws::String>
134 SetOwnerId(std::forward<OwnerIdT>(value));
135 return *this;
136 }
138
140
143 inline FastLaunchStateCode GetState() const { return m_state; }
144 inline void SetState(FastLaunchStateCode value) {
145 m_stateHasBeenSet = true;
146 m_state = value;
147 }
149 SetState(value);
150 return *this;
151 }
153
155
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 DisableFastLaunchResponse& WithStateTransitionReason(StateTransitionReasonT&& value) {
167 SetStateTransitionReason(std::forward<StateTransitionReasonT>(value));
168 return *this;
169 }
171
173
177 inline const Aws::Utils::DateTime& GetStateTransitionTime() const { return m_stateTransitionTime; }
178 template <typename StateTransitionTimeT = Aws::Utils::DateTime>
179 void SetStateTransitionTime(StateTransitionTimeT&& value) {
180 m_stateTransitionTimeHasBeenSet = true;
181 m_stateTransitionTime = std::forward<StateTransitionTimeT>(value);
182 }
183 template <typename StateTransitionTimeT = Aws::Utils::DateTime>
184 DisableFastLaunchResponse& WithStateTransitionTime(StateTransitionTimeT&& value) {
185 SetStateTransitionTime(std::forward<StateTransitionTimeT>(value));
186 return *this;
187 }
189
191
192 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
193 template <typename ResponseMetadataT = ResponseMetadata>
194 void SetResponseMetadata(ResponseMetadataT&& value) {
195 m_responseMetadataHasBeenSet = true;
196 m_responseMetadata = std::forward<ResponseMetadataT>(value);
197 }
198 template <typename ResponseMetadataT = ResponseMetadata>
200 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
201 return *this;
202 }
204 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
205
206 private:
207 Aws::String m_imageId;
208
210
211 FastLaunchSnapshotConfigurationResponse m_snapshotConfiguration;
212
213 FastLaunchLaunchTemplateSpecificationResponse m_launchTemplate;
214
215 int m_maxParallelLaunches{0};
216
217 Aws::String m_ownerId;
218
220
221 Aws::String m_stateTransitionReason;
222
223 Aws::Utils::DateTime m_stateTransitionTime{};
224
225 ResponseMetadata m_responseMetadata;
226 Aws::Http::HttpResponseCode m_HttpResponseCode;
227 bool m_imageIdHasBeenSet = false;
228 bool m_resourceTypeHasBeenSet = false;
229 bool m_snapshotConfigurationHasBeenSet = false;
230 bool m_launchTemplateHasBeenSet = false;
231 bool m_maxParallelLaunchesHasBeenSet = false;
232 bool m_ownerIdHasBeenSet = false;
233 bool m_stateHasBeenSet = false;
234 bool m_stateTransitionReasonHasBeenSet = false;
235 bool m_stateTransitionTimeHasBeenSet = false;
236 bool m_responseMetadataHasBeenSet = false;
237};
238
239} // namespace Model
240} // namespace EC2
241} // namespace Aws
DisableFastLaunchResponse & WithOwnerId(OwnerIdT &&value)
DisableFastLaunchResponse & WithLaunchTemplate(LaunchTemplateT &&value)
DisableFastLaunchResponse & WithResourceType(FastLaunchResourceType value)
void SetStateTransitionReason(StateTransitionReasonT &&value)
DisableFastLaunchResponse & WithStateTransitionTime(StateTransitionTimeT &&value)
DisableFastLaunchResponse & WithMaxParallelLaunches(int value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const FastLaunchSnapshotConfigurationResponse & GetSnapshotConfiguration() const
AWS_EC2_API DisableFastLaunchResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const ResponseMetadata & GetResponseMetadata() const
AWS_EC2_API DisableFastLaunchResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetSnapshotConfiguration(SnapshotConfigurationT &&value)
void SetResourceType(FastLaunchResourceType value)
void SetStateTransitionTime(StateTransitionTimeT &&value)
AWS_EC2_API DisableFastLaunchResponse()=default
const Aws::Utils::DateTime & GetStateTransitionTime() const
const FastLaunchLaunchTemplateSpecificationResponse & GetLaunchTemplate() const
DisableFastLaunchResponse & WithResponseMetadata(ResponseMetadataT &&value)
DisableFastLaunchResponse & WithImageId(ImageIdT &&value)
DisableFastLaunchResponse & WithState(FastLaunchStateCode value)
DisableFastLaunchResponse & WithStateTransitionReason(StateTransitionReasonT &&value)
DisableFastLaunchResponse & WithSnapshotConfiguration(SnapshotConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument