AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MixedInstancesPolicy.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/LaunchTemplate.h>
10#include <aws/autoscaling/model/InstancesDistribution.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
39 {
40 public:
41 AWS_AUTOSCALING_API MixedInstancesPolicy() = default;
42 AWS_AUTOSCALING_API MixedInstancesPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_AUTOSCALING_API MixedInstancesPolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
54 inline const LaunchTemplate& GetLaunchTemplate() const { return m_launchTemplate; }
55 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
56 template<typename LaunchTemplateT = LaunchTemplate>
57 void SetLaunchTemplate(LaunchTemplateT&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::forward<LaunchTemplateT>(value); }
58 template<typename LaunchTemplateT = LaunchTemplate>
59 MixedInstancesPolicy& WithLaunchTemplate(LaunchTemplateT&& value) { SetLaunchTemplate(std::forward<LaunchTemplateT>(value)); return *this;}
61
63
66 inline const InstancesDistribution& GetInstancesDistribution() const { return m_instancesDistribution; }
67 inline bool InstancesDistributionHasBeenSet() const { return m_instancesDistributionHasBeenSet; }
68 template<typename InstancesDistributionT = InstancesDistribution>
69 void SetInstancesDistribution(InstancesDistributionT&& value) { m_instancesDistributionHasBeenSet = true; m_instancesDistribution = std::forward<InstancesDistributionT>(value); }
70 template<typename InstancesDistributionT = InstancesDistribution>
71 MixedInstancesPolicy& WithInstancesDistribution(InstancesDistributionT&& value) { SetInstancesDistribution(std::forward<InstancesDistributionT>(value)); return *this;}
73 private:
74
75 LaunchTemplate m_launchTemplate;
76 bool m_launchTemplateHasBeenSet = false;
77
78 InstancesDistribution m_instancesDistribution;
79 bool m_instancesDistributionHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace AutoScaling
84} // namespace Aws
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API MixedInstancesPolicy()=default
AWS_AUTOSCALING_API MixedInstancesPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstancesDistribution(InstancesDistributionT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API MixedInstancesPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MixedInstancesPolicy & WithLaunchTemplate(LaunchTemplateT &&value)
MixedInstancesPolicy & WithInstancesDistribution(InstancesDistributionT &&value)
const InstancesDistribution & GetInstancesDistribution() const
std::basic_ostream< char, std::char_traits< char > > OStream