AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DisableFastLaunchResponse.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 DisableFastLaunchResponse() = default;
39
40
42
45 inline const Aws::String& GetImageId() const { return m_imageId; }
46 template<typename ImageIdT = Aws::String>
47 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
48 template<typename ImageIdT = Aws::String>
49 DisableFastLaunchResponse& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
51
53
58 inline FastLaunchResourceType GetResourceType() const { return m_resourceType; }
59 inline void SetResourceType(FastLaunchResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
62
64
68 inline const FastLaunchSnapshotConfigurationResponse& GetSnapshotConfiguration() const { return m_snapshotConfiguration; }
69 template<typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
70 void SetSnapshotConfiguration(SnapshotConfigurationT&& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = std::forward<SnapshotConfigurationT>(value); }
71 template<typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
72 DisableFastLaunchResponse& WithSnapshotConfiguration(SnapshotConfigurationT&& value) { SetSnapshotConfiguration(std::forward<SnapshotConfigurationT>(value)); return *this;}
74
76
80 inline const FastLaunchLaunchTemplateSpecificationResponse& GetLaunchTemplate() const { return m_launchTemplate; }
81 template<typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
82 void SetLaunchTemplate(LaunchTemplateT&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::forward<LaunchTemplateT>(value); }
83 template<typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
84 DisableFastLaunchResponse& WithLaunchTemplate(LaunchTemplateT&& value) { SetLaunchTemplate(std::forward<LaunchTemplateT>(value)); return *this;}
86
88
92 inline int GetMaxParallelLaunches() const { return m_maxParallelLaunches; }
93 inline void SetMaxParallelLaunches(int value) { m_maxParallelLaunchesHasBeenSet = true; m_maxParallelLaunches = value; }
96
98
101 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
102 template<typename OwnerIdT = Aws::String>
103 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
104 template<typename OwnerIdT = Aws::String>
105 DisableFastLaunchResponse& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
107
109
112 inline FastLaunchStateCode GetState() const { return m_state; }
113 inline void SetState(FastLaunchStateCode value) { m_stateHasBeenSet = true; m_state = value; }
114 inline DisableFastLaunchResponse& WithState(FastLaunchStateCode value) { SetState(value); return *this;}
116
118
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 DisableFastLaunchResponse& WithStateTransitionReason(StateTransitionReasonT&& value) { SetStateTransitionReason(std::forward<StateTransitionReasonT>(value)); return *this;}
128
130
134 inline const Aws::Utils::DateTime& GetStateTransitionTime() const { return m_stateTransitionTime; }
135 template<typename StateTransitionTimeT = Aws::Utils::DateTime>
136 void SetStateTransitionTime(StateTransitionTimeT&& value) { m_stateTransitionTimeHasBeenSet = true; m_stateTransitionTime = std::forward<StateTransitionTimeT>(value); }
137 template<typename StateTransitionTimeT = Aws::Utils::DateTime>
138 DisableFastLaunchResponse& WithStateTransitionTime(StateTransitionTimeT&& value) { SetStateTransitionTime(std::forward<StateTransitionTimeT>(value)); return *this;}
140
142
143 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
144 template<typename ResponseMetadataT = ResponseMetadata>
145 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
146 template<typename ResponseMetadataT = ResponseMetadata>
147 DisableFastLaunchResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
149 private:
150
151 Aws::String m_imageId;
152 bool m_imageIdHasBeenSet = false;
153
155 bool m_resourceTypeHasBeenSet = false;
156
157 FastLaunchSnapshotConfigurationResponse m_snapshotConfiguration;
158 bool m_snapshotConfigurationHasBeenSet = false;
159
160 FastLaunchLaunchTemplateSpecificationResponse m_launchTemplate;
161 bool m_launchTemplateHasBeenSet = false;
162
163 int m_maxParallelLaunches{0};
164 bool m_maxParallelLaunchesHasBeenSet = false;
165
166 Aws::String m_ownerId;
167 bool m_ownerIdHasBeenSet = false;
168
170 bool m_stateHasBeenSet = false;
171
172 Aws::String m_stateTransitionReason;
173 bool m_stateTransitionReasonHasBeenSet = false;
174
175 Aws::Utils::DateTime m_stateTransitionTime{};
176 bool m_stateTransitionTimeHasBeenSet = false;
177
178 ResponseMetadata m_responseMetadata;
179 bool m_responseMetadataHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace EC2
184} // 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