AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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