AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename InstanceTypeT = Aws::String>
69 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
70 template<typename InstanceTypeT = Aws::String>
71 LaunchTemplateOverrides& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
73
75
98 inline const Aws::String& GetWeightedCapacity() const { return m_weightedCapacity; }
99 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
100 template<typename WeightedCapacityT = Aws::String>
101 void SetWeightedCapacity(WeightedCapacityT&& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = std::forward<WeightedCapacityT>(value); }
102 template<typename WeightedCapacityT = Aws::String>
103 LaunchTemplateOverrides& WithWeightedCapacity(WeightedCapacityT&& value) { SetWeightedCapacity(std::forward<WeightedCapacityT>(value)); return *this;}
105
107
119 inline const LaunchTemplateSpecification& GetLaunchTemplateSpecification() const { return m_launchTemplateSpecification; }
120 inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
121 template<typename LaunchTemplateSpecificationT = LaunchTemplateSpecification>
122 void SetLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::forward<LaunchTemplateSpecificationT>(value); }
123 template<typename LaunchTemplateSpecificationT = LaunchTemplateSpecification>
124 LaunchTemplateOverrides& WithLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) { SetLaunchTemplateSpecification(std::forward<LaunchTemplateSpecificationT>(value)); return *this;}
126
128
140 inline const InstanceRequirements& GetInstanceRequirements() const { return m_instanceRequirements; }
141 inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; }
142 template<typename InstanceRequirementsT = InstanceRequirements>
143 void SetInstanceRequirements(InstanceRequirementsT&& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = std::forward<InstanceRequirementsT>(value); }
144 template<typename InstanceRequirementsT = InstanceRequirements>
145 LaunchTemplateOverrides& WithInstanceRequirements(InstanceRequirementsT&& value) { SetInstanceRequirements(std::forward<InstanceRequirementsT>(value)); return *this;}
147 private:
148
149 Aws::String m_instanceType;
150 bool m_instanceTypeHasBeenSet = false;
151
152 Aws::String m_weightedCapacity;
153 bool m_weightedCapacityHasBeenSet = false;
154
155 LaunchTemplateSpecification m_launchTemplateSpecification;
156 bool m_launchTemplateSpecificationHasBeenSet = false;
157
158 InstanceRequirements m_instanceRequirements;
159 bool m_instanceRequirementsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace AutoScaling
164} // namespace Aws
const LaunchTemplateSpecification & GetLaunchTemplateSpecification() const
const InstanceRequirements & GetInstanceRequirements() const
LaunchTemplateOverrides & WithWeightedCapacity(WeightedCapacityT &&value)
AWS_AUTOSCALING_API LaunchTemplateOverrides()=default
AWS_AUTOSCALING_API LaunchTemplateOverrides & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateOverrides & WithInstanceRequirements(InstanceRequirementsT &&value)
LaunchTemplateOverrides & WithLaunchTemplateSpecification(LaunchTemplateSpecificationT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplateOverrides & WithInstanceType(InstanceTypeT &&value)
AWS_AUTOSCALING_API LaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLaunchTemplateSpecification(LaunchTemplateSpecificationT &&value)
void SetInstanceRequirements(InstanceRequirementsT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream