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