AWS SDK for C++  1.9.160
AWS SDK for C++
LaunchTemplateOverrides.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace AutoScaling
24 {
25 namespace Model
26 {
27 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
54  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
55 
63  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
64 
72  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
73 
81  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
82 
90  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
91 
99  inline LaunchTemplateOverrides& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
100 
108  inline LaunchTemplateOverrides& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
109 
117  inline LaunchTemplateOverrides& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
118 
119 
135  inline const Aws::String& GetWeightedCapacity() const{ return m_weightedCapacity; }
136 
152  inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
153 
169  inline void SetWeightedCapacity(const Aws::String& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
170 
186  inline void SetWeightedCapacity(Aws::String&& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = std::move(value); }
187 
203  inline void SetWeightedCapacity(const char* value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity.assign(value); }
204 
220  inline LaunchTemplateOverrides& WithWeightedCapacity(const Aws::String& value) { SetWeightedCapacity(value); return *this;}
221 
237  inline LaunchTemplateOverrides& WithWeightedCapacity(Aws::String&& value) { SetWeightedCapacity(std::move(value)); return *this;}
238 
254  inline LaunchTemplateOverrides& WithWeightedCapacity(const char* value) { SetWeightedCapacity(value); return *this;}
255 
256 
267  inline const LaunchTemplateSpecification& GetLaunchTemplateSpecification() const{ return m_launchTemplateSpecification; }
268 
279  inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
280 
291  inline void SetLaunchTemplateSpecification(const LaunchTemplateSpecification& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = value; }
292 
303  inline void SetLaunchTemplateSpecification(LaunchTemplateSpecification&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::move(value); }
304 
315  inline LaunchTemplateOverrides& WithLaunchTemplateSpecification(const LaunchTemplateSpecification& value) { SetLaunchTemplateSpecification(value); return *this;}
316 
327  inline LaunchTemplateOverrides& WithLaunchTemplateSpecification(LaunchTemplateSpecification&& value) { SetLaunchTemplateSpecification(std::move(value)); return *this;}
328 
329 
337  inline const InstanceRequirements& GetInstanceRequirements() const{ return m_instanceRequirements; }
338 
346  inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; }
347 
355  inline void SetInstanceRequirements(const InstanceRequirements& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = value; }
356 
364  inline void SetInstanceRequirements(InstanceRequirements&& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = std::move(value); }
365 
373  inline LaunchTemplateOverrides& WithInstanceRequirements(const InstanceRequirements& value) { SetInstanceRequirements(value); return *this;}
374 
382  inline LaunchTemplateOverrides& WithInstanceRequirements(InstanceRequirements&& value) { SetInstanceRequirements(std::move(value)); return *this;}
383 
384  private:
385 
386  Aws::String m_instanceType;
387  bool m_instanceTypeHasBeenSet;
388 
389  Aws::String m_weightedCapacity;
390  bool m_weightedCapacityHasBeenSet;
391 
392  LaunchTemplateSpecification m_launchTemplateSpecification;
393  bool m_launchTemplateSpecificationHasBeenSet;
394 
395  InstanceRequirements m_instanceRequirements;
396  bool m_instanceRequirementsHasBeenSet;
397  };
398 
399 } // namespace Model
400 } // namespace AutoScaling
401 } // namespace Aws
Aws::AutoScaling::Model::LaunchTemplateOverrides::SetLaunchTemplateSpecification
void SetLaunchTemplateSpecification(LaunchTemplateSpecification &&value)
Definition: LaunchTemplateOverrides.h:303
Aws::AutoScaling::Model::LaunchTemplateOverrides::SetInstanceRequirements
void SetInstanceRequirements(InstanceRequirements &&value)
Definition: LaunchTemplateOverrides.h:364
Aws::AutoScaling::Model::LaunchTemplateOverrides::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: LaunchTemplateOverrides.h:72
Aws::AutoScaling::Model::LaunchTemplateOverrides::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: LaunchTemplateOverrides.h:54
Aws::AutoScaling::Model::LaunchTemplateOverrides::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::LaunchTemplateOverrides::WithLaunchTemplateSpecification
LaunchTemplateOverrides & WithLaunchTemplateSpecification(const LaunchTemplateSpecification &value)
Definition: LaunchTemplateOverrides.h:315
Aws::AutoScaling::Model::LaunchTemplateOverrides::WithWeightedCapacity
LaunchTemplateOverrides & WithWeightedCapacity(Aws::String &&value)
Definition: LaunchTemplateOverrides.h:237
Aws::AutoScaling::Model::LaunchTemplateOverrides::SetWeightedCapacity
void SetWeightedCapacity(const Aws::String &value)
Definition: LaunchTemplateOverrides.h:169
AWSStreamFwd.h
InstanceRequirements.h
Aws::AutoScaling::Model::LaunchTemplateOverrides::SetWeightedCapacity
void SetWeightedCapacity(const char *value)
Definition: LaunchTemplateOverrides.h:203
Aws::AutoScaling::Model::LaunchTemplateOverrides::LaunchTemplateOverrides
LaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::LaunchTemplateOverrides::WithWeightedCapacity
LaunchTemplateOverrides & WithWeightedCapacity(const Aws::String &value)
Definition: LaunchTemplateOverrides.h:220
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::LaunchTemplateOverrides::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::LaunchTemplateOverrides::WithInstanceType
LaunchTemplateOverrides & WithInstanceType(const Aws::String &value)
Definition: LaunchTemplateOverrides.h:99
Aws::AutoScaling::Model::LaunchTemplateSpecification
Definition: LaunchTemplateSpecification.h:37
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::LaunchTemplateOverrides::operator=
LaunchTemplateOverrides & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::LaunchTemplateOverrides::GetWeightedCapacity
const Aws::String & GetWeightedCapacity() const
Definition: LaunchTemplateOverrides.h:135
Aws::AutoScaling::Model::LaunchTemplateOverrides::GetInstanceRequirements
const InstanceRequirements & GetInstanceRequirements() const
Definition: LaunchTemplateOverrides.h:337
Aws::AutoScaling::Model::LaunchTemplateOverrides::SetLaunchTemplateSpecification
void SetLaunchTemplateSpecification(const LaunchTemplateSpecification &value)
Definition: LaunchTemplateOverrides.h:291
Aws::AutoScaling::Model::LaunchTemplateOverrides::WithInstanceRequirements
LaunchTemplateOverrides & WithInstanceRequirements(InstanceRequirements &&value)
Definition: LaunchTemplateOverrides.h:382
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::LaunchTemplateOverrides::SetInstanceType
void SetInstanceType(const char *value)
Definition: LaunchTemplateOverrides.h:90
Aws::AutoScaling::Model::LaunchTemplateOverrides::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: LaunchTemplateOverrides.h:63
Aws::AutoScaling::Model::LaunchTemplateOverrides::WithInstanceRequirements
LaunchTemplateOverrides & WithInstanceRequirements(const InstanceRequirements &value)
Definition: LaunchTemplateOverrides.h:373
AWSString.h
Aws::AutoScaling::Model::LaunchTemplateOverrides::LaunchTemplateOverrides
LaunchTemplateOverrides()
Aws::AutoScaling::Model::LaunchTemplateOverrides::SetInstanceRequirements
void SetInstanceRequirements(const InstanceRequirements &value)
Definition: LaunchTemplateOverrides.h:355
Aws::AutoScaling::Model::InstanceRequirements
Definition: InstanceRequirements.h:58
Aws::AutoScaling::Model::LaunchTemplateOverrides::SetWeightedCapacity
void SetWeightedCapacity(Aws::String &&value)
Definition: LaunchTemplateOverrides.h:186
Aws::AutoScaling::Model::LaunchTemplateOverrides::InstanceRequirementsHasBeenSet
bool InstanceRequirementsHasBeenSet() const
Definition: LaunchTemplateOverrides.h:346
Aws::AutoScaling::Model::LaunchTemplateOverrides::WithInstanceType
LaunchTemplateOverrides & WithInstanceType(const char *value)
Definition: LaunchTemplateOverrides.h:117
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::LaunchTemplateOverrides::LaunchTemplateSpecificationHasBeenSet
bool LaunchTemplateSpecificationHasBeenSet() const
Definition: LaunchTemplateOverrides.h:279
LaunchTemplateSpecification.h
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::LaunchTemplateOverrides::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: LaunchTemplateOverrides.h:81
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
Aws::AutoScaling::Model::LaunchTemplateOverrides::GetLaunchTemplateSpecification
const LaunchTemplateSpecification & GetLaunchTemplateSpecification() const
Definition: LaunchTemplateOverrides.h:267
Aws::AutoScaling::Model::LaunchTemplateOverrides::WithLaunchTemplateSpecification
LaunchTemplateOverrides & WithLaunchTemplateSpecification(LaunchTemplateSpecification &&value)
Definition: LaunchTemplateOverrides.h:327
Aws::AutoScaling::Model::LaunchTemplateOverrides
Definition: LaunchTemplateOverrides.h:37
Aws::AutoScaling::Model::LaunchTemplateOverrides::WeightedCapacityHasBeenSet
bool WeightedCapacityHasBeenSet() const
Definition: LaunchTemplateOverrides.h:152
Aws::AutoScaling::Model::LaunchTemplateOverrides::WithWeightedCapacity
LaunchTemplateOverrides & WithWeightedCapacity(const char *value)
Definition: LaunchTemplateOverrides.h:254
Aws::AutoScaling::Model::LaunchTemplateOverrides::WithInstanceType
LaunchTemplateOverrides & WithInstanceType(Aws::String &&value)
Definition: LaunchTemplateOverrides.h:108