AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplateOverrides.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/autoscaling/model/LaunchTemplateSpecification.h>
11#include <aws/autoscaling/model/InstanceRequirements.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace AutoScaling
24{
25namespace Model
26{
27
47 {
48 public:
49 AWS_AUTOSCALING_API LaunchTemplateOverrides();
50 AWS_AUTOSCALING_API LaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode& xmlNode);
51 AWS_AUTOSCALING_API LaunchTemplateOverrides& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
52
53 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
54 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
55
56
58
66 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
67 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
68 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
69 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
70 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
71 inline LaunchTemplateOverrides& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
72 inline LaunchTemplateOverrides& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
73 inline LaunchTemplateOverrides& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
75
77
100 inline const Aws::String& GetWeightedCapacity() const{ return m_weightedCapacity; }
101 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
102 inline void SetWeightedCapacity(const Aws::String& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
103 inline void SetWeightedCapacity(Aws::String&& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = std::move(value); }
104 inline void SetWeightedCapacity(const char* value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity.assign(value); }
106 inline LaunchTemplateOverrides& WithWeightedCapacity(Aws::String&& value) { SetWeightedCapacity(std::move(value)); return *this;}
107 inline LaunchTemplateOverrides& WithWeightedCapacity(const char* value) { SetWeightedCapacity(value); return *this;}
109
111
123 inline const LaunchTemplateSpecification& GetLaunchTemplateSpecification() const{ return m_launchTemplateSpecification; }
124 inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
125 inline void SetLaunchTemplateSpecification(const LaunchTemplateSpecification& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = value; }
126 inline void SetLaunchTemplateSpecification(LaunchTemplateSpecification&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::move(value); }
130
132
144 inline const InstanceRequirements& GetInstanceRequirements() const{ return m_instanceRequirements; }
145 inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; }
146 inline void SetInstanceRequirements(const InstanceRequirements& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = value; }
147 inline void SetInstanceRequirements(InstanceRequirements&& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = std::move(value); }
151 private:
152
153 Aws::String m_instanceType;
154 bool m_instanceTypeHasBeenSet = false;
155
156 Aws::String m_weightedCapacity;
157 bool m_weightedCapacityHasBeenSet = false;
158
159 LaunchTemplateSpecification m_launchTemplateSpecification;
160 bool m_launchTemplateSpecificationHasBeenSet = false;
161
162 InstanceRequirements m_instanceRequirements;
163 bool m_instanceRequirementsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace AutoScaling
168} // namespace Aws
const LaunchTemplateSpecification & GetLaunchTemplateSpecification() const
const InstanceRequirements & GetInstanceRequirements() const
LaunchTemplateOverrides & WithInstanceType(const char *value)
LaunchTemplateOverrides & WithWeightedCapacity(Aws::String &&value)
LaunchTemplateOverrides & WithLaunchTemplateSpecification(const LaunchTemplateSpecification &value)
AWS_AUTOSCALING_API LaunchTemplateOverrides & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateOverrides & WithWeightedCapacity(const Aws::String &value)
LaunchTemplateOverrides & WithInstanceRequirements(const InstanceRequirements &value)
void SetLaunchTemplateSpecification(LaunchTemplateSpecification &&value)
void SetLaunchTemplateSpecification(const LaunchTemplateSpecification &value)
LaunchTemplateOverrides & WithInstanceRequirements(InstanceRequirements &&value)
LaunchTemplateOverrides & WithInstanceType(Aws::String &&value)
LaunchTemplateOverrides & WithWeightedCapacity(const char *value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplateOverrides & WithInstanceType(const Aws::String &value)
void SetInstanceRequirements(InstanceRequirements &&value)
AWS_AUTOSCALING_API LaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateOverrides & WithLaunchTemplateSpecification(LaunchTemplateSpecification &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetInstanceRequirements(const InstanceRequirements &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream