AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DesiredConfiguration.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/autoscaling/model/LaunchTemplateSpecification.h>
10#include <aws/autoscaling/model/MixedInstancesPolicy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace AutoScaling
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_AUTOSCALING_API DesiredConfiguration();
39 AWS_AUTOSCALING_API DesiredConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_AUTOSCALING_API DesiredConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
54 inline const LaunchTemplateSpecification& GetLaunchTemplate() const{ return m_launchTemplate; }
55 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
56 inline void SetLaunchTemplate(const LaunchTemplateSpecification& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; }
57 inline void SetLaunchTemplate(LaunchTemplateSpecification&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); }
59 inline DesiredConfiguration& WithLaunchTemplate(LaunchTemplateSpecification&& value) { SetLaunchTemplate(std::move(value)); return *this;}
61
63
72 inline const MixedInstancesPolicy& GetMixedInstancesPolicy() const{ return m_mixedInstancesPolicy; }
73 inline bool MixedInstancesPolicyHasBeenSet() const { return m_mixedInstancesPolicyHasBeenSet; }
74 inline void SetMixedInstancesPolicy(const MixedInstancesPolicy& value) { m_mixedInstancesPolicyHasBeenSet = true; m_mixedInstancesPolicy = value; }
75 inline void SetMixedInstancesPolicy(MixedInstancesPolicy&& value) { m_mixedInstancesPolicyHasBeenSet = true; m_mixedInstancesPolicy = std::move(value); }
79 private:
80
81 LaunchTemplateSpecification m_launchTemplate;
82 bool m_launchTemplateHasBeenSet = false;
83
84 MixedInstancesPolicy m_mixedInstancesPolicy;
85 bool m_mixedInstancesPolicyHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace AutoScaling
90} // namespace Aws
void SetMixedInstancesPolicy(MixedInstancesPolicy &&value)
const MixedInstancesPolicy & GetMixedInstancesPolicy() const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetLaunchTemplate(const LaunchTemplateSpecification &value)
AWS_AUTOSCALING_API DesiredConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DesiredConfiguration & WithLaunchTemplate(LaunchTemplateSpecification &&value)
void SetMixedInstancesPolicy(const MixedInstancesPolicy &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DesiredConfiguration & WithMixedInstancesPolicy(MixedInstancesPolicy &&value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
AWS_AUTOSCALING_API DesiredConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
DesiredConfiguration & WithLaunchTemplate(const LaunchTemplateSpecification &value)
void SetLaunchTemplate(LaunchTemplateSpecification &&value)
DesiredConfiguration & WithMixedInstancesPolicy(const MixedInstancesPolicy &value)
std::basic_ostream< char, std::char_traits< char > > OStream