AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EnableFastLaunchResponse.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/FastLaunchLaunchTemplateSpecificationResponse.h>
11#include <aws/ec2/model/FastLaunchResourceType.h>
12#include <aws/ec2/model/FastLaunchSnapshotConfigurationResponse.h>
13#include <aws/ec2/model/FastLaunchStateCode.h>
14#include <aws/ec2/model/ResponseMetadata.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Xml {
24class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace EC2 {
28namespace Model {
30 public:
31 AWS_EC2_API EnableFastLaunchResponse() = default;
34
36
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
58 inline FastLaunchResourceType GetResourceType() const { return m_resourceType; }
60 m_resourceTypeHasBeenSet = true;
61 m_resourceType = value;
62 }
64 SetResourceType(value);
65 return *this;
66 }
68
70
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 EnableFastLaunchResponse& 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
158 inline const Aws::String& GetStateTransitionReason() const { return m_stateTransitionReason; }
159 template <typename StateTransitionReasonT = Aws::String>
160 void SetStateTransitionReason(StateTransitionReasonT&& value) {
161 m_stateTransitionReasonHasBeenSet = true;
162 m_stateTransitionReason = std::forward<StateTransitionReasonT>(value);
163 }
164 template <typename StateTransitionReasonT = Aws::String>
165 EnableFastLaunchResponse& WithStateTransitionReason(StateTransitionReasonT&& value) {
166 SetStateTransitionReason(std::forward<StateTransitionReasonT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Utils::DateTime& GetStateTransitionTime() const { return m_stateTransitionTime; }
176 template <typename StateTransitionTimeT = Aws::Utils::DateTime>
177 void SetStateTransitionTime(StateTransitionTimeT&& value) {
178 m_stateTransitionTimeHasBeenSet = true;
179 m_stateTransitionTime = std::forward<StateTransitionTimeT>(value);
180 }
181 template <typename StateTransitionTimeT = Aws::Utils::DateTime>
182 EnableFastLaunchResponse& WithStateTransitionTime(StateTransitionTimeT&& value) {
183 SetStateTransitionTime(std::forward<StateTransitionTimeT>(value));
184 return *this;
185 }
187
189
190 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
191 template <typename ResponseMetadataT = ResponseMetadata>
192 void SetResponseMetadata(ResponseMetadataT&& value) {
193 m_responseMetadataHasBeenSet = true;
194 m_responseMetadata = std::forward<ResponseMetadataT>(value);
195 }
196 template <typename ResponseMetadataT = ResponseMetadata>
197 EnableFastLaunchResponse& WithResponseMetadata(ResponseMetadataT&& value) {
198 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_imageId;
204
206
207 FastLaunchSnapshotConfigurationResponse m_snapshotConfiguration;
208
209 FastLaunchLaunchTemplateSpecificationResponse m_launchTemplate;
210
211 int m_maxParallelLaunches{0};
212
213 Aws::String m_ownerId;
214
216
217 Aws::String m_stateTransitionReason;
218
219 Aws::Utils::DateTime m_stateTransitionTime{};
220
221 ResponseMetadata m_responseMetadata;
222 bool m_imageIdHasBeenSet = false;
223 bool m_resourceTypeHasBeenSet = false;
224 bool m_snapshotConfigurationHasBeenSet = false;
225 bool m_launchTemplateHasBeenSet = false;
226 bool m_maxParallelLaunchesHasBeenSet = false;
227 bool m_ownerIdHasBeenSet = false;
228 bool m_stateHasBeenSet = false;
229 bool m_stateTransitionReasonHasBeenSet = false;
230 bool m_stateTransitionTimeHasBeenSet = false;
231 bool m_responseMetadataHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace EC2
236} // 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)
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