AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DisableFastLaunchResponse.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 DisableFastLaunchResponse() = default;
34
36
39 inline const Aws::String& GetImageId() const { return m_imageId; }
40 template <typename ImageIdT = Aws::String>
41 void SetImageId(ImageIdT&& value) {
42 m_imageIdHasBeenSet = true;
43 m_imageId = std::forward<ImageIdT>(value);
44 }
45 template <typename ImageIdT = Aws::String>
47 SetImageId(std::forward<ImageIdT>(value));
48 return *this;
49 }
51
53
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
74 inline const FastLaunchSnapshotConfigurationResponse& GetSnapshotConfiguration() const { return m_snapshotConfiguration; }
75 template <typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
76 void SetSnapshotConfiguration(SnapshotConfigurationT&& value) {
77 m_snapshotConfigurationHasBeenSet = true;
78 m_snapshotConfiguration = std::forward<SnapshotConfigurationT>(value);
79 }
80 template <typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
81 DisableFastLaunchResponse& WithSnapshotConfiguration(SnapshotConfigurationT&& value) {
82 SetSnapshotConfiguration(std::forward<SnapshotConfigurationT>(value));
83 return *this;
84 }
86
88
92 inline const FastLaunchLaunchTemplateSpecificationResponse& GetLaunchTemplate() const { return m_launchTemplate; }
93 template <typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
94 void SetLaunchTemplate(LaunchTemplateT&& value) {
95 m_launchTemplateHasBeenSet = true;
96 m_launchTemplate = std::forward<LaunchTemplateT>(value);
97 }
98 template <typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
100 SetLaunchTemplate(std::forward<LaunchTemplateT>(value));
101 return *this;
102 }
104
106
110 inline int GetMaxParallelLaunches() const { return m_maxParallelLaunches; }
111 inline void SetMaxParallelLaunches(int value) {
112 m_maxParallelLaunchesHasBeenSet = true;
113 m_maxParallelLaunches = value;
114 }
117 return *this;
118 }
120
122
125 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
126 template <typename OwnerIdT = Aws::String>
127 void SetOwnerId(OwnerIdT&& value) {
128 m_ownerIdHasBeenSet = true;
129 m_ownerId = std::forward<OwnerIdT>(value);
130 }
131 template <typename OwnerIdT = Aws::String>
133 SetOwnerId(std::forward<OwnerIdT>(value));
134 return *this;
135 }
137
139
142 inline FastLaunchStateCode GetState() const { return m_state; }
143 inline void SetState(FastLaunchStateCode value) {
144 m_stateHasBeenSet = true;
145 m_state = value;
146 }
148 SetState(value);
149 return *this;
150 }
152
154
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 DisableFastLaunchResponse& WithStateTransitionReason(StateTransitionReasonT&& value) {
166 SetStateTransitionReason(std::forward<StateTransitionReasonT>(value));
167 return *this;
168 }
170
172
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 DisableFastLaunchResponse& 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>
199 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_imageId;
205
207
208 FastLaunchSnapshotConfigurationResponse m_snapshotConfiguration;
209
210 FastLaunchLaunchTemplateSpecificationResponse m_launchTemplate;
211
212 int m_maxParallelLaunches{0};
213
214 Aws::String m_ownerId;
215
217
218 Aws::String m_stateTransitionReason;
219
220 Aws::Utils::DateTime m_stateTransitionTime{};
221
222 ResponseMetadata m_responseMetadata;
223 bool m_imageIdHasBeenSet = false;
224 bool m_resourceTypeHasBeenSet = false;
225 bool m_snapshotConfigurationHasBeenSet = false;
226 bool m_launchTemplateHasBeenSet = false;
227 bool m_maxParallelLaunchesHasBeenSet = false;
228 bool m_ownerIdHasBeenSet = false;
229 bool m_stateHasBeenSet = false;
230 bool m_stateTransitionReasonHasBeenSet = false;
231 bool m_stateTransitionTimeHasBeenSet = false;
232 bool m_responseMetadataHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace EC2
237} // 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)
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