AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
57 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
58 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
59 inline DescribeFastLaunchImagesSuccessItem& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
60 inline DescribeFastLaunchImagesSuccessItem& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
61 inline DescribeFastLaunchImagesSuccessItem& WithImageId(const char* value) { SetImageId(value); return *this;}
63
65
69 inline const FastLaunchResourceType& GetResourceType() const{ return m_resourceType; }
70 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
71 inline void SetResourceType(const FastLaunchResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
72 inline void SetResourceType(FastLaunchResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
76
78
82 inline const FastLaunchSnapshotConfigurationResponse& GetSnapshotConfiguration() const{ return m_snapshotConfiguration; }
83 inline bool SnapshotConfigurationHasBeenSet() const { return m_snapshotConfigurationHasBeenSet; }
84 inline void SetSnapshotConfiguration(const FastLaunchSnapshotConfigurationResponse& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = value; }
85 inline void SetSnapshotConfiguration(FastLaunchSnapshotConfigurationResponse&& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = std::move(value); }
89
91
95 inline const FastLaunchLaunchTemplateSpecificationResponse& GetLaunchTemplate() const{ return m_launchTemplate; }
96 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
97 inline void SetLaunchTemplate(const FastLaunchLaunchTemplateSpecificationResponse& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; }
98 inline void SetLaunchTemplate(FastLaunchLaunchTemplateSpecificationResponse&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); }
102
104
108 inline int GetMaxParallelLaunches() const{ return m_maxParallelLaunches; }
109 inline bool MaxParallelLaunchesHasBeenSet() const { return m_maxParallelLaunchesHasBeenSet; }
110 inline void SetMaxParallelLaunches(int value) { m_maxParallelLaunchesHasBeenSet = true; m_maxParallelLaunches = value; }
113
115
118 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
119 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
120 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
121 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
122 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
123 inline DescribeFastLaunchImagesSuccessItem& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
124 inline DescribeFastLaunchImagesSuccessItem& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
125 inline DescribeFastLaunchImagesSuccessItem& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
127
129
132 inline const FastLaunchStateCode& GetState() const{ return m_state; }
133 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
134 inline void SetState(const FastLaunchStateCode& value) { m_stateHasBeenSet = true; m_state = value; }
135 inline void SetState(FastLaunchStateCode&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
136 inline DescribeFastLaunchImagesSuccessItem& WithState(const FastLaunchStateCode& value) { SetState(value); return *this;}
137 inline DescribeFastLaunchImagesSuccessItem& WithState(FastLaunchStateCode&& value) { SetState(std::move(value)); return *this;}
139
141
145 inline const Aws::String& GetStateTransitionReason() const{ return m_stateTransitionReason; }
146 inline bool StateTransitionReasonHasBeenSet() const { return m_stateTransitionReasonHasBeenSet; }
147 inline void SetStateTransitionReason(const Aws::String& value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason = value; }
148 inline void SetStateTransitionReason(Aws::String&& value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason = std::move(value); }
149 inline void SetStateTransitionReason(const char* value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason.assign(value); }
154
156
160 inline const Aws::Utils::DateTime& GetStateTransitionTime() const{ return m_stateTransitionTime; }
161 inline bool StateTransitionTimeHasBeenSet() const { return m_stateTransitionTimeHasBeenSet; }
162 inline void SetStateTransitionTime(const Aws::Utils::DateTime& value) { m_stateTransitionTimeHasBeenSet = true; m_stateTransitionTime = value; }
163 inline void SetStateTransitionTime(Aws::Utils::DateTime&& value) { m_stateTransitionTimeHasBeenSet = true; m_stateTransitionTime = std::move(value); }
167 private:
168
169 Aws::String m_imageId;
170 bool m_imageIdHasBeenSet = false;
171
172 FastLaunchResourceType m_resourceType;
173 bool m_resourceTypeHasBeenSet = false;
174
175 FastLaunchSnapshotConfigurationResponse m_snapshotConfiguration;
176 bool m_snapshotConfigurationHasBeenSet = false;
177
179 bool m_launchTemplateHasBeenSet = false;
180
181 int m_maxParallelLaunches;
182 bool m_maxParallelLaunchesHasBeenSet = false;
183
184 Aws::String m_ownerId;
185 bool m_ownerIdHasBeenSet = false;
186
187 FastLaunchStateCode m_state;
188 bool m_stateHasBeenSet = false;
189
190 Aws::String m_stateTransitionReason;
191 bool m_stateTransitionReasonHasBeenSet = false;
192
193 Aws::Utils::DateTime m_stateTransitionTime;
194 bool m_stateTransitionTimeHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace EC2
199} // namespace Aws
const FastLaunchSnapshotConfigurationResponse & GetSnapshotConfiguration() const
DescribeFastLaunchImagesSuccessItem & WithOwnerId(const char *value)
DescribeFastLaunchImagesSuccessItem & WithImageId(const char *value)
void SetSnapshotConfiguration(FastLaunchSnapshotConfigurationResponse &&value)
void SetLaunchTemplate(const FastLaunchLaunchTemplateSpecificationResponse &value)
DescribeFastLaunchImagesSuccessItem & WithState(const FastLaunchStateCode &value)
DescribeFastLaunchImagesSuccessItem & WithStateTransitionTime(Aws::Utils::DateTime &&value)
DescribeFastLaunchImagesSuccessItem & WithStateTransitionReason(Aws::String &&value)
DescribeFastLaunchImagesSuccessItem & WithSnapshotConfiguration(const FastLaunchSnapshotConfigurationResponse &value)
DescribeFastLaunchImagesSuccessItem & WithOwnerId(Aws::String &&value)
DescribeFastLaunchImagesSuccessItem & WithImageId(const Aws::String &value)
DescribeFastLaunchImagesSuccessItem & WithResourceType(FastLaunchResourceType &&value)
DescribeFastLaunchImagesSuccessItem & WithStateTransitionTime(const Aws::Utils::DateTime &value)
void SetSnapshotConfiguration(const FastLaunchSnapshotConfigurationResponse &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DescribeFastLaunchImagesSuccessItem & WithStateTransitionReason(const char *value)
DescribeFastLaunchImagesSuccessItem & WithSnapshotConfiguration(FastLaunchSnapshotConfigurationResponse &&value)
DescribeFastLaunchImagesSuccessItem & WithResourceType(const FastLaunchResourceType &value)
DescribeFastLaunchImagesSuccessItem & WithImageId(Aws::String &&value)
DescribeFastLaunchImagesSuccessItem & WithOwnerId(const Aws::String &value)
AWS_EC2_API DescribeFastLaunchImagesSuccessItem(const Aws::Utils::Xml::XmlNode &xmlNode)
DescribeFastLaunchImagesSuccessItem & WithState(FastLaunchStateCode &&value)
const FastLaunchLaunchTemplateSpecificationResponse & GetLaunchTemplate() const
void SetLaunchTemplate(FastLaunchLaunchTemplateSpecificationResponse &&value)
AWS_EC2_API DescribeFastLaunchImagesSuccessItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DescribeFastLaunchImagesSuccessItem & WithLaunchTemplate(FastLaunchLaunchTemplateSpecificationResponse &&value)
DescribeFastLaunchImagesSuccessItem & WithLaunchTemplate(const FastLaunchLaunchTemplateSpecificationResponse &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DescribeFastLaunchImagesSuccessItem & WithMaxParallelLaunches(int value)
DescribeFastLaunchImagesSuccessItem & WithStateTransitionReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream