AWS SDK for C++  1.9.71
AWS SDK for C++
LaunchTemplateAndOverridesResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const FleetLaunchTemplateSpecification& GetLaunchTemplateSpecification() const{ return m_launchTemplateSpecification; }
47 
51  inline bool LaunchTemplateSpecificationHasBeenSet() const { return m_launchTemplateSpecificationHasBeenSet; }
52 
56  inline void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecification& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = value; }
57 
61  inline void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecification&& value) { m_launchTemplateSpecificationHasBeenSet = true; m_launchTemplateSpecification = std::move(value); }
62 
66  inline LaunchTemplateAndOverridesResponse& WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecification& value) { SetLaunchTemplateSpecification(value); return *this;}
67 
71  inline LaunchTemplateAndOverridesResponse& WithLaunchTemplateSpecification(FleetLaunchTemplateSpecification&& value) { SetLaunchTemplateSpecification(std::move(value)); return *this;}
72 
73 
78  inline const FleetLaunchTemplateOverrides& GetOverrides() const{ return m_overrides; }
79 
84  inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
85 
90  inline void SetOverrides(const FleetLaunchTemplateOverrides& value) { m_overridesHasBeenSet = true; m_overrides = value; }
91 
96  inline void SetOverrides(FleetLaunchTemplateOverrides&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
97 
102  inline LaunchTemplateAndOverridesResponse& WithOverrides(const FleetLaunchTemplateOverrides& value) { SetOverrides(value); return *this;}
103 
108  inline LaunchTemplateAndOverridesResponse& WithOverrides(FleetLaunchTemplateOverrides&& value) { SetOverrides(std::move(value)); return *this;}
109 
110  private:
111 
112  FleetLaunchTemplateSpecification m_launchTemplateSpecification;
113  bool m_launchTemplateSpecificationHasBeenSet;
114 
115  FleetLaunchTemplateOverrides m_overrides;
116  bool m_overridesHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace EC2
121 } // namespace Aws
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::GetOverrides
const FleetLaunchTemplateOverrides & GetOverrides() const
Definition: LaunchTemplateAndOverridesResponse.h:78
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::GetLaunchTemplateSpecification
const FleetLaunchTemplateSpecification & GetLaunchTemplateSpecification() const
Definition: LaunchTemplateAndOverridesResponse.h:46
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::SetOverrides
void SetOverrides(const FleetLaunchTemplateOverrides &value)
Definition: LaunchTemplateAndOverridesResponse.h:90
AWSStreamFwd.h
Aws::EC2::Model::FleetLaunchTemplateSpecification
Definition: FleetLaunchTemplateSpecification.h:37
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::SetOverrides
void SetOverrides(FleetLaunchTemplateOverrides &&value)
Definition: LaunchTemplateAndOverridesResponse.h:96
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::WithOverrides
LaunchTemplateAndOverridesResponse & WithOverrides(const FleetLaunchTemplateOverrides &value)
Definition: LaunchTemplateAndOverridesResponse.h:102
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::LaunchTemplateAndOverridesResponse
LaunchTemplateAndOverridesResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::WithLaunchTemplateSpecification
LaunchTemplateAndOverridesResponse & WithLaunchTemplateSpecification(const FleetLaunchTemplateSpecification &value)
Definition: LaunchTemplateAndOverridesResponse.h:66
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::LaunchTemplateAndOverridesResponse
LaunchTemplateAndOverridesResponse()
FleetLaunchTemplateSpecification.h
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::SetLaunchTemplateSpecification
void SetLaunchTemplateSpecification(const FleetLaunchTemplateSpecification &value)
Definition: LaunchTemplateAndOverridesResponse.h:56
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::OverridesHasBeenSet
bool OverridesHasBeenSet() const
Definition: LaunchTemplateAndOverridesResponse.h:84
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::LaunchTemplateSpecificationHasBeenSet
bool LaunchTemplateSpecificationHasBeenSet() const
Definition: LaunchTemplateAndOverridesResponse.h:51
Aws::EC2::Model::LaunchTemplateAndOverridesResponse
Definition: LaunchTemplateAndOverridesResponse.h:33
Aws::EC2::Model::FleetLaunchTemplateOverrides
Definition: FleetLaunchTemplateOverrides.h:34
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::SetLaunchTemplateSpecification
void SetLaunchTemplateSpecification(FleetLaunchTemplateSpecification &&value)
Definition: LaunchTemplateAndOverridesResponse.h:61
Aws
Definition: AccessManagementClient.h:15
FleetLaunchTemplateOverrides.h
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::WithOverrides
LaunchTemplateAndOverridesResponse & WithOverrides(FleetLaunchTemplateOverrides &&value)
Definition: LaunchTemplateAndOverridesResponse.h:108
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::WithLaunchTemplateSpecification
LaunchTemplateAndOverridesResponse & WithLaunchTemplateSpecification(FleetLaunchTemplateSpecification &&value)
Definition: LaunchTemplateAndOverridesResponse.h:71
Aws::EC2::Model::LaunchTemplateAndOverridesResponse::operator=
LaunchTemplateAndOverridesResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)