AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EnableFastLaunchResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/model/FastLaunchResourceType.h>
10#include <aws/ec2/model/FastLaunchSnapshotConfigurationResponse.h>
11#include <aws/ec2/model/FastLaunchLaunchTemplateSpecificationResponse.h>
12#include <aws/ec2/model/FastLaunchStateCode.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/ec2/model/ResponseMetadata.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Xml
25{
26 class XmlDocument;
27} // namespace Xml
28} // namespace Utils
29namespace EC2
30{
31namespace Model
32{
34 {
35 public:
36 AWS_EC2_API EnableFastLaunchResponse() = default;
39
40
42
46 inline const Aws::String& GetImageId() const { return m_imageId; }
47 template<typename ImageIdT = Aws::String>
48 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
49 template<typename ImageIdT = Aws::String>
50 EnableFastLaunchResponse& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
52
54
58 inline FastLaunchResourceType GetResourceType() const { return m_resourceType; }
59 inline void SetResourceType(FastLaunchResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
62
64
69 inline const FastLaunchSnapshotConfigurationResponse& GetSnapshotConfiguration() const { return m_snapshotConfiguration; }
70 template<typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
71 void SetSnapshotConfiguration(SnapshotConfigurationT&& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = std::forward<SnapshotConfigurationT>(value); }
72 template<typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
73 EnableFastLaunchResponse& WithSnapshotConfiguration(SnapshotConfigurationT&& value) { SetSnapshotConfiguration(std::forward<SnapshotConfigurationT>(value)); return *this;}
75
77
81 inline const FastLaunchLaunchTemplateSpecificationResponse& GetLaunchTemplate() const { return m_launchTemplate; }
82 template<typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
83 void SetLaunchTemplate(LaunchTemplateT&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::forward<LaunchTemplateT>(value); }
84 template<typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
85 EnableFastLaunchResponse& WithLaunchTemplate(LaunchTemplateT&& value) { SetLaunchTemplate(std::forward<LaunchTemplateT>(value)); return *this;}
87
89
93 inline int GetMaxParallelLaunches() const { return m_maxParallelLaunches; }
94 inline void SetMaxParallelLaunches(int value) { m_maxParallelLaunchesHasBeenSet = true; m_maxParallelLaunches = value; }
97
99
102 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
103 template<typename OwnerIdT = Aws::String>
104 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
105 template<typename OwnerIdT = Aws::String>
106 EnableFastLaunchResponse& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
108
110
113 inline FastLaunchStateCode GetState() const { return m_state; }
114 inline void SetState(FastLaunchStateCode value) { m_stateHasBeenSet = true; m_state = value; }
115 inline EnableFastLaunchResponse& WithState(FastLaunchStateCode value) { SetState(value); return *this;}
117
119
122 inline const Aws::String& GetStateTransitionReason() const { return m_stateTransitionReason; }
123 template<typename StateTransitionReasonT = Aws::String>
124 void SetStateTransitionReason(StateTransitionReasonT&& value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason = std::forward<StateTransitionReasonT>(value); }
125 template<typename StateTransitionReasonT = Aws::String>
126 EnableFastLaunchResponse& WithStateTransitionReason(StateTransitionReasonT&& value) { SetStateTransitionReason(std::forward<StateTransitionReasonT>(value)); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetStateTransitionTime() const { return m_stateTransitionTime; }
134 template<typename StateTransitionTimeT = Aws::Utils::DateTime>
135 void SetStateTransitionTime(StateTransitionTimeT&& value) { m_stateTransitionTimeHasBeenSet = true; m_stateTransitionTime = std::forward<StateTransitionTimeT>(value); }
136 template<typename StateTransitionTimeT = Aws::Utils::DateTime>
137 EnableFastLaunchResponse& WithStateTransitionTime(StateTransitionTimeT&& value) { SetStateTransitionTime(std::forward<StateTransitionTimeT>(value)); return *this;}
139
141
142 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
143 template<typename ResponseMetadataT = ResponseMetadata>
144 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
145 template<typename ResponseMetadataT = ResponseMetadata>
146 EnableFastLaunchResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
148 private:
149
150 Aws::String m_imageId;
151 bool m_imageIdHasBeenSet = false;
152
154 bool m_resourceTypeHasBeenSet = false;
155
156 FastLaunchSnapshotConfigurationResponse m_snapshotConfiguration;
157 bool m_snapshotConfigurationHasBeenSet = false;
158
159 FastLaunchLaunchTemplateSpecificationResponse m_launchTemplate;
160 bool m_launchTemplateHasBeenSet = false;
161
162 int m_maxParallelLaunches{0};
163 bool m_maxParallelLaunchesHasBeenSet = false;
164
165 Aws::String m_ownerId;
166 bool m_ownerIdHasBeenSet = false;
167
169 bool m_stateHasBeenSet = false;
170
171 Aws::String m_stateTransitionReason;
172 bool m_stateTransitionReasonHasBeenSet = false;
173
174 Aws::Utils::DateTime m_stateTransitionTime{};
175 bool m_stateTransitionTimeHasBeenSet = false;
176
177 ResponseMetadata m_responseMetadata;
178 bool m_responseMetadataHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace EC2
183} // 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