AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FleetLaunchTemplateConfig.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/FleetLaunchTemplateSpecification.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/FleetLaunchTemplateOverrides.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API FleetLaunchTemplateConfig() = default;
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const FleetLaunchTemplateSpecification& GetLaunchTemplateSpecification() const { return m_launchTemplateSpecification; }
49 inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
50 template<typename LaunchTemplateSpecificationT = FleetLaunchTemplateSpecification>
51 void SetLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::forward<LaunchTemplateSpecificationT>(value); }
52 template<typename LaunchTemplateSpecificationT = FleetLaunchTemplateSpecification>
53 FleetLaunchTemplateConfig& WithLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) { SetLaunchTemplateSpecification(std::forward<LaunchTemplateSpecificationT>(value)); return *this;}
55
57
61 inline const Aws::Vector<FleetLaunchTemplateOverrides>& GetOverrides() const { return m_overrides; }
62 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
63 template<typename OverridesT = Aws::Vector<FleetLaunchTemplateOverrides>>
64 void SetOverrides(OverridesT&& value) { m_overridesHasBeenSet = true; m_overrides = std::forward<OverridesT>(value); }
65 template<typename OverridesT = Aws::Vector<FleetLaunchTemplateOverrides>>
66 FleetLaunchTemplateConfig& WithOverrides(OverridesT&& value) { SetOverrides(std::forward<OverridesT>(value)); return *this;}
67 template<typename OverridesT = FleetLaunchTemplateOverrides>
68 FleetLaunchTemplateConfig& AddOverrides(OverridesT&& value) { m_overridesHasBeenSet = true; m_overrides.emplace_back(std::forward<OverridesT>(value)); return *this; }
70 private:
71
72 FleetLaunchTemplateSpecification m_launchTemplateSpecification;
73 bool m_launchTemplateSpecificationHasBeenSet = false;
74
76 bool m_overridesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
AWS_EC2_API FleetLaunchTemplateConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FleetLaunchTemplateConfig & AddOverrides(OverridesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< FleetLaunchTemplateOverrides > & GetOverrides() const
void SetLaunchTemplateSpecification(LaunchTemplateSpecificationT &&value)
FleetLaunchTemplateConfig & WithLaunchTemplateSpecification(LaunchTemplateSpecificationT &&value)
AWS_EC2_API FleetLaunchTemplateConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
const FleetLaunchTemplateSpecification & GetLaunchTemplateSpecification() const
FleetLaunchTemplateConfig & WithOverrides(OverridesT &&value)
AWS_EC2_API FleetLaunchTemplateConfig()=default
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream