AWS SDK for C++  1.9.132
AWS SDK for C++
DescribeFleetsInstances.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
30 
38  {
39  public:
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
47 
53  inline const LaunchTemplateAndOverridesResponse& GetLaunchTemplateAndOverrides() const{ return m_launchTemplateAndOverrides; }
54 
60  inline bool LaunchTemplateAndOverridesHasBeenSet() const { return m_launchTemplateAndOverridesHasBeenSet; }
61 
67  inline void SetLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse& value) { m_launchTemplateAndOverridesHasBeenSet = true; m_launchTemplateAndOverrides = value; }
68 
74  inline void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse&& value) { m_launchTemplateAndOverridesHasBeenSet = true; m_launchTemplateAndOverrides = std::move(value); }
75 
81  inline DescribeFleetsInstances& WithLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse& value) { SetLaunchTemplateAndOverrides(value); return *this;}
82 
88  inline DescribeFleetsInstances& WithLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse&& value) { SetLaunchTemplateAndOverrides(std::move(value)); return *this;}
89 
90 
95  inline const InstanceLifecycle& GetLifecycle() const{ return m_lifecycle; }
96 
101  inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
102 
107  inline void SetLifecycle(const InstanceLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
108 
113  inline void SetLifecycle(InstanceLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
114 
119  inline DescribeFleetsInstances& WithLifecycle(const InstanceLifecycle& value) { SetLifecycle(value); return *this;}
120 
125  inline DescribeFleetsInstances& WithLifecycle(InstanceLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
126 
127 
131  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
132 
136  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
137 
141  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
142 
146  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
147 
151  inline DescribeFleetsInstances& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
152 
156  inline DescribeFleetsInstances& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
157 
161  inline DescribeFleetsInstances& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
162 
166  inline DescribeFleetsInstances& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
167 
171  inline DescribeFleetsInstances& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
172 
173 
177  inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
178 
182  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
183 
187  inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
188 
192  inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
193 
197  inline DescribeFleetsInstances& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
198 
202  inline DescribeFleetsInstances& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
203 
204 
209  inline const PlatformValues& GetPlatform() const{ return m_platform; }
210 
215  inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
216 
221  inline void SetPlatform(const PlatformValues& value) { m_platformHasBeenSet = true; m_platform = value; }
222 
227  inline void SetPlatform(PlatformValues&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
228 
233  inline DescribeFleetsInstances& WithPlatform(const PlatformValues& value) { SetPlatform(value); return *this;}
234 
239  inline DescribeFleetsInstances& WithPlatform(PlatformValues&& value) { SetPlatform(std::move(value)); return *this;}
240 
241  private:
242 
243  LaunchTemplateAndOverridesResponse m_launchTemplateAndOverrides;
244  bool m_launchTemplateAndOverridesHasBeenSet;
245 
246  InstanceLifecycle m_lifecycle;
247  bool m_lifecycleHasBeenSet;
248 
249  Aws::Vector<Aws::String> m_instanceIds;
250  bool m_instanceIdsHasBeenSet;
251 
252  InstanceType m_instanceType;
253  bool m_instanceTypeHasBeenSet;
254 
255  PlatformValues m_platform;
256  bool m_platformHasBeenSet;
257  };
258 
259 } // namespace Model
260 } // namespace EC2
261 } // namespace Aws
Aws::EC2::Model::DescribeFleetsInstances::GetPlatform
const PlatformValues & GetPlatform() const
Definition: DescribeFleetsInstances.h:209
Aws::EC2::Model::DescribeFleetsInstances::WithInstanceType
DescribeFleetsInstances & WithInstanceType(InstanceType &&value)
Definition: DescribeFleetsInstances.h:202
Aws::EC2::Model::DescribeFleetsInstances::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: DescribeFleetsInstances.h:131
Aws::EC2::Model::DescribeFleetsInstances::GetLifecycle
const InstanceLifecycle & GetLifecycle() const
Definition: DescribeFleetsInstances.h:95
Aws::EC2::Model::DescribeFleetsInstances::PlatformHasBeenSet
bool PlatformHasBeenSet() const
Definition: DescribeFleetsInstances.h:215
Aws::EC2::Model::DescribeFleetsInstances::SetLifecycle
void SetLifecycle(InstanceLifecycle &&value)
Definition: DescribeFleetsInstances.h:113
Aws::EC2::Model::DescribeFleetsInstances::WithPlatform
DescribeFleetsInstances & WithPlatform(const PlatformValues &value)
Definition: DescribeFleetsInstances.h:233
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeFleetsInstances::SetInstanceType
void SetInstanceType(InstanceType &&value)
Definition: DescribeFleetsInstances.h:192
Aws::EC2::Model::DescribeFleetsInstances::WithLaunchTemplateAndOverrides
DescribeFleetsInstances & WithLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse &value)
Definition: DescribeFleetsInstances.h:81
Aws::EC2::Model::DescribeFleetsInstances::AddInstanceIds
DescribeFleetsInstances & AddInstanceIds(const Aws::String &value)
Definition: DescribeFleetsInstances.h:161
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::PlatformValues
PlatformValues
Definition: PlatformValues.h:17
Aws::EC2::Model::DescribeFleetsInstances::WithInstanceIds
DescribeFleetsInstances & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeFleetsInstances.h:151
AWSStreamFwd.h
Aws::EC2::Model::DescribeFleetsInstances::operator=
DescribeFleetsInstances & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DescribeFleetsInstances::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: DescribeFleetsInstances.h:182
AWSVector.h
Aws::EC2::Model::DescribeFleetsInstances::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::DescribeFleetsInstances::WithLifecycle
DescribeFleetsInstances & WithLifecycle(const InstanceLifecycle &value)
Definition: DescribeFleetsInstances.h:119
Aws::EC2::Model::DescribeFleetsInstances::WithInstanceType
DescribeFleetsInstances & WithInstanceType(const InstanceType &value)
Definition: DescribeFleetsInstances.h:197
Aws::EC2::Model::DescribeFleetsInstances::SetLaunchTemplateAndOverrides
void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse &&value)
Definition: DescribeFleetsInstances.h:74
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DescribeFleetsInstances::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::DescribeFleetsInstances
Definition: DescribeFleetsInstances.h:38
Aws::EC2::Model::DescribeFleetsInstances::DescribeFleetsInstances
DescribeFleetsInstances()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DescribeFleetsInstances::WithLifecycle
DescribeFleetsInstances & WithLifecycle(InstanceLifecycle &&value)
Definition: DescribeFleetsInstances.h:125
LaunchTemplateAndOverridesResponse.h
Aws::EC2::Model::DescribeFleetsInstances::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeFleetsInstances.h:141
PlatformValues.h
Aws::EC2::Model::DescribeFleetsInstances::WithPlatform
DescribeFleetsInstances & WithPlatform(PlatformValues &&value)
Definition: DescribeFleetsInstances.h:239
Aws::EC2::Model::DescribeFleetsInstances::LifecycleHasBeenSet
bool LifecycleHasBeenSet() const
Definition: DescribeFleetsInstances.h:101
Aws::EC2::Model::DescribeFleetsInstances::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeFleetsInstances.h:146
Aws::EC2::Model::InstanceLifecycle
InstanceLifecycle
Definition: InstanceLifecycle.h:17
Aws::EC2::Model::DescribeFleetsInstances::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: DescribeFleetsInstances.h:136
Aws::EC2::Model::DescribeFleetsInstances::LaunchTemplateAndOverridesHasBeenSet
bool LaunchTemplateAndOverridesHasBeenSet() const
Definition: DescribeFleetsInstances.h:60
AWSString.h
Aws::EC2::Model::DescribeFleetsInstances::WithLaunchTemplateAndOverrides
DescribeFleetsInstances & WithLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse &&value)
Definition: DescribeFleetsInstances.h:88
Aws::EC2::Model::DescribeFleetsInstances::SetLifecycle
void SetLifecycle(const InstanceLifecycle &value)
Definition: DescribeFleetsInstances.h:107
Aws::EC2::Model::DescribeFleetsInstances::WithInstanceIds
DescribeFleetsInstances & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeFleetsInstances.h:156
Aws::EC2::Model::DescribeFleetsInstances::SetPlatform
void SetPlatform(const PlatformValues &value)
Definition: DescribeFleetsInstances.h:221
Aws::EC2::Model::DescribeFleetsInstances::SetPlatform
void SetPlatform(PlatformValues &&value)
Definition: DescribeFleetsInstances.h:227
InstanceType.h
Aws::EC2::Model::LaunchTemplateAndOverridesResponse
Definition: LaunchTemplateAndOverridesResponse.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeFleetsInstances::SetInstanceType
void SetInstanceType(const InstanceType &value)
Definition: DescribeFleetsInstances.h:187
Aws::EC2::Model::DescribeFleetsInstances::GetLaunchTemplateAndOverrides
const LaunchTemplateAndOverridesResponse & GetLaunchTemplateAndOverrides() const
Definition: DescribeFleetsInstances.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
InstanceLifecycle.h
Aws::EC2::Model::DescribeFleetsInstances::GetInstanceType
const InstanceType & GetInstanceType() const
Definition: DescribeFleetsInstances.h:177
Aws::EC2::Model::DescribeFleetsInstances::SetLaunchTemplateAndOverrides
void SetLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse &value)
Definition: DescribeFleetsInstances.h:67
EC2_EXPORTS.h
Aws::EC2::Model::InstanceType
InstanceType
Definition: InstanceType.h:17
Aws::EC2::Model::DescribeFleetsInstances::DescribeFleetsInstances
DescribeFleetsInstances(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DescribeFleetsInstances::AddInstanceIds
DescribeFleetsInstances & AddInstanceIds(Aws::String &&value)
Definition: DescribeFleetsInstances.h:166
Aws::EC2::Model::DescribeFleetsInstances::AddInstanceIds
DescribeFleetsInstances & AddInstanceIds(const char *value)
Definition: DescribeFleetsInstances.h:171