AWS SDK for C++  1.9.65
AWS SDK for C++
FleetLaunchTemplateConfigRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
48  inline const FleetLaunchTemplateSpecificationRequest& GetLaunchTemplateSpecification() const{ return m_launchTemplateSpecification; }
49 
54  inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
55 
60  inline void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecificationRequest& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = value; }
61 
66  inline void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecificationRequest&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::move(value); }
67 
72  inline FleetLaunchTemplateConfigRequest& WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecificationRequest& value) { SetLaunchTemplateSpecification(value); return *this;}
73 
78  inline FleetLaunchTemplateConfigRequest& WithLaunchTemplateSpecification(FleetLaunchTemplateSpecificationRequest&& value) { SetLaunchTemplateSpecification(std::move(value)); return *this;}
79 
80 
87  inline const Aws::Vector<FleetLaunchTemplateOverridesRequest>& GetOverrides() const{ return m_overrides; }
88 
95  inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
96 
103  inline void SetOverrides(const Aws::Vector<FleetLaunchTemplateOverridesRequest>& value) { m_overridesHasBeenSet = true; m_overrides = value; }
104 
111  inline void SetOverrides(Aws::Vector<FleetLaunchTemplateOverridesRequest>&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
112 
119  inline FleetLaunchTemplateConfigRequest& WithOverrides(const Aws::Vector<FleetLaunchTemplateOverridesRequest>& value) { SetOverrides(value); return *this;}
120 
127  inline FleetLaunchTemplateConfigRequest& WithOverrides(Aws::Vector<FleetLaunchTemplateOverridesRequest>&& value) { SetOverrides(std::move(value)); return *this;}
128 
135  inline FleetLaunchTemplateConfigRequest& AddOverrides(const FleetLaunchTemplateOverridesRequest& value) { m_overridesHasBeenSet = true; m_overrides.push_back(value); return *this; }
136 
143  inline FleetLaunchTemplateConfigRequest& AddOverrides(FleetLaunchTemplateOverridesRequest&& value) { m_overridesHasBeenSet = true; m_overrides.push_back(std::move(value)); return *this; }
144 
145  private:
146 
147  FleetLaunchTemplateSpecificationRequest m_launchTemplateSpecification;
148  bool m_launchTemplateSpecificationHasBeenSet;
149 
151  bool m_overridesHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace EC2
156 } // namespace Aws
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::GetOverrides
const Aws::Vector< FleetLaunchTemplateOverridesRequest > & GetOverrides() const
Definition: FleetLaunchTemplateConfigRequest.h:87
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
FleetLaunchTemplateOverridesRequest.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::FleetLaunchTemplateOverridesRequest
Definition: FleetLaunchTemplateOverridesRequest.h:34
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::WithLaunchTemplateSpecification
FleetLaunchTemplateConfigRequest & WithLaunchTemplateSpecification(FleetLaunchTemplateSpecificationRequest &&value)
Definition: FleetLaunchTemplateConfigRequest.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::SetLaunchTemplateSpecification
void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecificationRequest &&value)
Definition: FleetLaunchTemplateConfigRequest.h:66
AWSVector.h
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::AddOverrides
FleetLaunchTemplateConfigRequest & AddOverrides(const FleetLaunchTemplateOverridesRequest &value)
Definition: FleetLaunchTemplateConfigRequest.h:135
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::operator=
FleetLaunchTemplateConfigRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest
Definition: FleetLaunchTemplateSpecificationRequest.h:37
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::WithOverrides
FleetLaunchTemplateConfigRequest & WithOverrides(const Aws::Vector< FleetLaunchTemplateOverridesRequest > &value)
Definition: FleetLaunchTemplateConfigRequest.h:119
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::FleetLaunchTemplateConfigRequest
FleetLaunchTemplateConfigRequest()
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::WithOverrides
FleetLaunchTemplateConfigRequest & WithOverrides(Aws::Vector< FleetLaunchTemplateOverridesRequest > &&value)
Definition: FleetLaunchTemplateConfigRequest.h:127
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::FleetLaunchTemplateConfigRequest
Definition: FleetLaunchTemplateConfigRequest.h:34
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::SetLaunchTemplateSpecification
void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecificationRequest &value)
Definition: FleetLaunchTemplateConfigRequest.h:60
FleetLaunchTemplateSpecificationRequest.h
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::AddOverrides
FleetLaunchTemplateConfigRequest & AddOverrides(FleetLaunchTemplateOverridesRequest &&value)
Definition: FleetLaunchTemplateConfigRequest.h:143
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::SetOverrides
void SetOverrides(const Aws::Vector< FleetLaunchTemplateOverridesRequest > &value)
Definition: FleetLaunchTemplateConfigRequest.h:103
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::LaunchTemplateSpecificationHasBeenSet
bool LaunchTemplateSpecificationHasBeenSet() const
Definition: FleetLaunchTemplateConfigRequest.h:54
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::WithLaunchTemplateSpecification
FleetLaunchTemplateConfigRequest & WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecificationRequest &value)
Definition: FleetLaunchTemplateConfigRequest.h:72
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::OverridesHasBeenSet
bool OverridesHasBeenSet() const
Definition: FleetLaunchTemplateConfigRequest.h:95
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::GetLaunchTemplateSpecification
const FleetLaunchTemplateSpecificationRequest & GetLaunchTemplateSpecification() const
Definition: FleetLaunchTemplateConfigRequest.h:48
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::FleetLaunchTemplateConfigRequest
FleetLaunchTemplateConfigRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::FleetLaunchTemplateConfigRequest::SetOverrides
void SetOverrides(Aws::Vector< FleetLaunchTemplateOverridesRequest > &&value)
Definition: FleetLaunchTemplateConfigRequest.h:111