AWS SDK for C++  1.9.70
AWS SDK for C++
LaunchTemplateInstanceMarketOptions.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 
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 
47  inline const MarketType& GetMarketType() const{ return m_marketType; }
48 
52  inline bool MarketTypeHasBeenSet() const { return m_marketTypeHasBeenSet; }
53 
57  inline void SetMarketType(const MarketType& value) { m_marketTypeHasBeenSet = true; m_marketType = value; }
58 
62  inline void SetMarketType(MarketType&& value) { m_marketTypeHasBeenSet = true; m_marketType = std::move(value); }
63 
67  inline LaunchTemplateInstanceMarketOptions& WithMarketType(const MarketType& value) { SetMarketType(value); return *this;}
68 
72  inline LaunchTemplateInstanceMarketOptions& WithMarketType(MarketType&& value) { SetMarketType(std::move(value)); return *this;}
73 
74 
78  inline const LaunchTemplateSpotMarketOptions& GetSpotOptions() const{ return m_spotOptions; }
79 
83  inline bool SpotOptionsHasBeenSet() const { return m_spotOptionsHasBeenSet; }
84 
88  inline void SetSpotOptions(const LaunchTemplateSpotMarketOptions& value) { m_spotOptionsHasBeenSet = true; m_spotOptions = value; }
89 
93  inline void SetSpotOptions(LaunchTemplateSpotMarketOptions&& value) { m_spotOptionsHasBeenSet = true; m_spotOptions = std::move(value); }
94 
98  inline LaunchTemplateInstanceMarketOptions& WithSpotOptions(const LaunchTemplateSpotMarketOptions& value) { SetSpotOptions(value); return *this;}
99 
103  inline LaunchTemplateInstanceMarketOptions& WithSpotOptions(LaunchTemplateSpotMarketOptions&& value) { SetSpotOptions(std::move(value)); return *this;}
104 
105  private:
106 
107  MarketType m_marketType;
108  bool m_marketTypeHasBeenSet;
109 
110  LaunchTemplateSpotMarketOptions m_spotOptions;
111  bool m_spotOptionsHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace EC2
116 } // namespace Aws
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::SetMarketType
void SetMarketType(MarketType &&value)
Definition: LaunchTemplateInstanceMarketOptions.h:62
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions
Definition: LaunchTemplateInstanceMarketOptions.h:34
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::SetSpotOptions
void SetSpotOptions(LaunchTemplateSpotMarketOptions &&value)
Definition: LaunchTemplateInstanceMarketOptions.h:93
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::SetSpotOptions
void SetSpotOptions(const LaunchTemplateSpotMarketOptions &value)
Definition: LaunchTemplateInstanceMarketOptions.h:88
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::WithMarketType
LaunchTemplateInstanceMarketOptions & WithMarketType(MarketType &&value)
Definition: LaunchTemplateInstanceMarketOptions.h:72
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::MarketTypeHasBeenSet
bool MarketTypeHasBeenSet() const
Definition: LaunchTemplateInstanceMarketOptions.h:52
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSStreamFwd.h
LaunchTemplateSpotMarketOptions.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::operator=
LaunchTemplateInstanceMarketOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::LaunchTemplateInstanceMarketOptions
LaunchTemplateInstanceMarketOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::MarketType
MarketType
Definition: MarketType.h:17
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::WithSpotOptions
LaunchTemplateInstanceMarketOptions & WithSpotOptions(const LaunchTemplateSpotMarketOptions &value)
Definition: LaunchTemplateInstanceMarketOptions.h:98
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::SetMarketType
void SetMarketType(const MarketType &value)
Definition: LaunchTemplateInstanceMarketOptions.h:57
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::GetMarketType
const MarketType & GetMarketType() const
Definition: LaunchTemplateInstanceMarketOptions.h:47
MarketType.h
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::GetSpotOptions
const LaunchTemplateSpotMarketOptions & GetSpotOptions() const
Definition: LaunchTemplateInstanceMarketOptions.h:78
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::SpotOptionsHasBeenSet
bool SpotOptionsHasBeenSet() const
Definition: LaunchTemplateInstanceMarketOptions.h:83
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::WithSpotOptions
LaunchTemplateInstanceMarketOptions & WithSpotOptions(LaunchTemplateSpotMarketOptions &&value)
Definition: LaunchTemplateInstanceMarketOptions.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::WithMarketType
LaunchTemplateInstanceMarketOptions & WithMarketType(const MarketType &value)
Definition: LaunchTemplateInstanceMarketOptions.h:67
Aws::EC2::Model::LaunchTemplateSpotMarketOptions
Definition: LaunchTemplateSpotMarketOptions.h:35
Aws::EC2::Model::LaunchTemplateInstanceMarketOptions::LaunchTemplateInstanceMarketOptions
LaunchTemplateInstanceMarketOptions()
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h