AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
LaunchTemplateOverrides.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/InstanceRequirements.h>
9#include <aws/autoscaling/model/LaunchTemplateSpecification.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace AutoScaling {
22namespace Model {
23
43 public:
44 AWS_AUTOSCALING_API LaunchTemplateOverrides() = default;
45 AWS_AUTOSCALING_API LaunchTemplateOverrides(const Aws::Utils::Xml::XmlNode& xmlNode);
46 AWS_AUTOSCALING_API LaunchTemplateOverrides& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
52
60 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
61 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
62 template <typename InstanceTypeT = Aws::String>
63 void SetInstanceType(InstanceTypeT&& value) {
64 m_instanceTypeHasBeenSet = true;
65 m_instanceType = std::forward<InstanceTypeT>(value);
66 }
67 template <typename InstanceTypeT = Aws::String>
68 LaunchTemplateOverrides& WithInstanceType(InstanceTypeT&& value) {
69 SetInstanceType(std::forward<InstanceTypeT>(value));
70 return *this;
71 }
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) {
102 m_weightedCapacityHasBeenSet = true;
103 m_weightedCapacity = std::forward<WeightedCapacityT>(value);
104 }
105 template <typename WeightedCapacityT = Aws::String>
106 LaunchTemplateOverrides& WithWeightedCapacity(WeightedCapacityT&& value) {
107 SetWeightedCapacity(std::forward<WeightedCapacityT>(value));
108 return *this;
109 }
111
113
125 inline const LaunchTemplateSpecification& GetLaunchTemplateSpecification() const { return m_launchTemplateSpecification; }
126 inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
127 template <typename LaunchTemplateSpecificationT = LaunchTemplateSpecification>
128 void SetLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) {
129 m_launchTemplateSpecificationHasBeenSet = true;
130 m_launchTemplateSpecification = std::forward<LaunchTemplateSpecificationT>(value);
131 }
132 template <typename LaunchTemplateSpecificationT = LaunchTemplateSpecification>
133 LaunchTemplateOverrides& WithLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) {
134 SetLaunchTemplateSpecification(std::forward<LaunchTemplateSpecificationT>(value));
135 return *this;
136 }
138
140
152 inline const InstanceRequirements& GetInstanceRequirements() const { return m_instanceRequirements; }
153 inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; }
154 template <typename InstanceRequirementsT = InstanceRequirements>
155 void SetInstanceRequirements(InstanceRequirementsT&& value) {
156 m_instanceRequirementsHasBeenSet = true;
157 m_instanceRequirements = std::forward<InstanceRequirementsT>(value);
158 }
159 template <typename InstanceRequirementsT = InstanceRequirements>
160 LaunchTemplateOverrides& WithInstanceRequirements(InstanceRequirementsT&& value) {
161 SetInstanceRequirements(std::forward<InstanceRequirementsT>(value));
162 return *this;
163 }
165
167
176 inline const Aws::String& GetImageId() const { return m_imageId; }
177 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
178 template <typename ImageIdT = Aws::String>
179 void SetImageId(ImageIdT&& value) {
180 m_imageIdHasBeenSet = true;
181 m_imageId = std::forward<ImageIdT>(value);
182 }
183 template <typename ImageIdT = Aws::String>
185 SetImageId(std::forward<ImageIdT>(value));
186 return *this;
187 }
189 private:
190 Aws::String m_instanceType;
191
192 Aws::String m_weightedCapacity;
193
194 LaunchTemplateSpecification m_launchTemplateSpecification;
195
196 InstanceRequirements m_instanceRequirements;
197
198 Aws::String m_imageId;
199 bool m_instanceTypeHasBeenSet = false;
200 bool m_weightedCapacityHasBeenSet = false;
201 bool m_launchTemplateSpecificationHasBeenSet = false;
202 bool m_instanceRequirementsHasBeenSet = false;
203 bool m_imageIdHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace AutoScaling
208} // 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 & WithImageId(ImageIdT &&value)
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