AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FleetLaunchTemplateConfig.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/FleetLaunchTemplateOverrides.h>
11#include <aws/ec2/model/FleetLaunchTemplateSpecification.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 FleetLaunchTemplateConfig() = 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
42 inline const FleetLaunchTemplateSpecification& GetLaunchTemplateSpecification() const { return m_launchTemplateSpecification; }
43 inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
44 template <typename LaunchTemplateSpecificationT = FleetLaunchTemplateSpecification>
45 void SetLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) {
46 m_launchTemplateSpecificationHasBeenSet = true;
47 m_launchTemplateSpecification = std::forward<LaunchTemplateSpecificationT>(value);
48 }
49 template <typename LaunchTemplateSpecificationT = FleetLaunchTemplateSpecification>
50 FleetLaunchTemplateConfig& WithLaunchTemplateSpecification(LaunchTemplateSpecificationT&& value) {
51 SetLaunchTemplateSpecification(std::forward<LaunchTemplateSpecificationT>(value));
52 return *this;
53 }
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) {
65 m_overridesHasBeenSet = true;
66 m_overrides = std::forward<OverridesT>(value);
67 }
68 template <typename OverridesT = Aws::Vector<FleetLaunchTemplateOverrides>>
70 SetOverrides(std::forward<OverridesT>(value));
71 return *this;
72 }
73 template <typename OverridesT = FleetLaunchTemplateOverrides>
75 m_overridesHasBeenSet = true;
76 m_overrides.emplace_back(std::forward<OverridesT>(value));
77 return *this;
78 }
80 private:
81 FleetLaunchTemplateSpecification m_launchTemplateSpecification;
82
84 bool m_launchTemplateSpecificationHasBeenSet = false;
85 bool m_overridesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace EC2
90} // 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