AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeFastLaunchImagesSuccessItem.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/FastLaunchResourceType.h>
11#include <aws/ec2/model/FastLaunchSnapshotConfigurationResponse.h>
12#include <aws/ec2/model/FastLaunchLaunchTemplateSpecificationResponse.h>
13#include <aws/ec2/model/FastLaunchStateCode.h>
14#include <aws/core/utils/DateTime.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
40 {
41 public:
42 AWS_EC2_API DescribeFastLaunchImagesSuccessItem() = default;
45
46 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
54 inline const Aws::String& GetImageId() const { return m_imageId; }
55 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
56 template<typename ImageIdT = Aws::String>
57 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
58 template<typename ImageIdT = Aws::String>
59 DescribeFastLaunchImagesSuccessItem& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
61
63
67 inline FastLaunchResourceType GetResourceType() const { return m_resourceType; }
68 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
69 inline void SetResourceType(FastLaunchResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
72
74
78 inline const FastLaunchSnapshotConfigurationResponse& GetSnapshotConfiguration() const { return m_snapshotConfiguration; }
79 inline bool SnapshotConfigurationHasBeenSet() const { return m_snapshotConfigurationHasBeenSet; }
80 template<typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
81 void SetSnapshotConfiguration(SnapshotConfigurationT&& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = std::forward<SnapshotConfigurationT>(value); }
82 template<typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationResponse>
83 DescribeFastLaunchImagesSuccessItem& WithSnapshotConfiguration(SnapshotConfigurationT&& value) { SetSnapshotConfiguration(std::forward<SnapshotConfigurationT>(value)); return *this;}
85
87
91 inline const FastLaunchLaunchTemplateSpecificationResponse& GetLaunchTemplate() const { return m_launchTemplate; }
92 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
93 template<typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
94 void SetLaunchTemplate(LaunchTemplateT&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::forward<LaunchTemplateT>(value); }
95 template<typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationResponse>
96 DescribeFastLaunchImagesSuccessItem& WithLaunchTemplate(LaunchTemplateT&& value) { SetLaunchTemplate(std::forward<LaunchTemplateT>(value)); return *this;}
98
100
104 inline int GetMaxParallelLaunches() const { return m_maxParallelLaunches; }
105 inline bool MaxParallelLaunchesHasBeenSet() const { return m_maxParallelLaunchesHasBeenSet; }
106 inline void SetMaxParallelLaunches(int value) { m_maxParallelLaunchesHasBeenSet = true; m_maxParallelLaunches = value; }
109
111
114 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
115 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
116 template<typename OwnerIdT = Aws::String>
117 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
118 template<typename OwnerIdT = Aws::String>
119 DescribeFastLaunchImagesSuccessItem& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
121
123
126 inline FastLaunchStateCode GetState() const { return m_state; }
127 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
128 inline void SetState(FastLaunchStateCode value) { m_stateHasBeenSet = true; m_state = value; }
131
133
137 inline const Aws::String& GetStateTransitionReason() const { return m_stateTransitionReason; }
138 inline bool StateTransitionReasonHasBeenSet() const { return m_stateTransitionReasonHasBeenSet; }
139 template<typename StateTransitionReasonT = Aws::String>
140 void SetStateTransitionReason(StateTransitionReasonT&& value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason = std::forward<StateTransitionReasonT>(value); }
141 template<typename StateTransitionReasonT = Aws::String>
142 DescribeFastLaunchImagesSuccessItem& WithStateTransitionReason(StateTransitionReasonT&& value) { SetStateTransitionReason(std::forward<StateTransitionReasonT>(value)); return *this;}
144
146
150 inline const Aws::Utils::DateTime& GetStateTransitionTime() const { return m_stateTransitionTime; }
151 inline bool StateTransitionTimeHasBeenSet() const { return m_stateTransitionTimeHasBeenSet; }
152 template<typename StateTransitionTimeT = Aws::Utils::DateTime>
153 void SetStateTransitionTime(StateTransitionTimeT&& value) { m_stateTransitionTimeHasBeenSet = true; m_stateTransitionTime = std::forward<StateTransitionTimeT>(value); }
154 template<typename StateTransitionTimeT = Aws::Utils::DateTime>
155 DescribeFastLaunchImagesSuccessItem& WithStateTransitionTime(StateTransitionTimeT&& value) { SetStateTransitionTime(std::forward<StateTransitionTimeT>(value)); return *this;}
157 private:
158
159 Aws::String m_imageId;
160 bool m_imageIdHasBeenSet = false;
161
163 bool m_resourceTypeHasBeenSet = false;
164
165 FastLaunchSnapshotConfigurationResponse m_snapshotConfiguration;
166 bool m_snapshotConfigurationHasBeenSet = false;
167
168 FastLaunchLaunchTemplateSpecificationResponse m_launchTemplate;
169 bool m_launchTemplateHasBeenSet = false;
170
171 int m_maxParallelLaunches{0};
172 bool m_maxParallelLaunchesHasBeenSet = false;
173
174 Aws::String m_ownerId;
175 bool m_ownerIdHasBeenSet = false;
176
178 bool m_stateHasBeenSet = false;
179
180 Aws::String m_stateTransitionReason;
181 bool m_stateTransitionReasonHasBeenSet = false;
182
183 Aws::Utils::DateTime m_stateTransitionTime{};
184 bool m_stateTransitionTimeHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace EC2
189} // namespace Aws
const FastLaunchSnapshotConfigurationResponse & GetSnapshotConfiguration() const
DescribeFastLaunchImagesSuccessItem & WithOwnerId(OwnerIdT &&value)
DescribeFastLaunchImagesSuccessItem & WithStateTransitionTime(StateTransitionTimeT &&value)
DescribeFastLaunchImagesSuccessItem & WithState(FastLaunchStateCode value)
DescribeFastLaunchImagesSuccessItem & WithStateTransitionReason(StateTransitionReasonT &&value)
DescribeFastLaunchImagesSuccessItem & WithResourceType(FastLaunchResourceType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DescribeFastLaunchImagesSuccessItem & WithImageId(ImageIdT &&value)
AWS_EC2_API DescribeFastLaunchImagesSuccessItem(const Aws::Utils::Xml::XmlNode &xmlNode)
DescribeFastLaunchImagesSuccessItem & WithLaunchTemplate(LaunchTemplateT &&value)
const FastLaunchLaunchTemplateSpecificationResponse & GetLaunchTemplate() const
AWS_EC2_API DescribeFastLaunchImagesSuccessItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DescribeFastLaunchImagesSuccessItem & WithSnapshotConfiguration(SnapshotConfigurationT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DescribeFastLaunchImagesSuccessItem & WithMaxParallelLaunches(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream