AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceMarketOptionsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/MarketType.h>
10#include <aws/ec2/model/SpotMarketOptions.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const MarketType& GetMarketType() const{ return m_marketType; }
49 inline bool MarketTypeHasBeenSet() const { return m_marketTypeHasBeenSet; }
50 inline void SetMarketType(const MarketType& value) { m_marketTypeHasBeenSet = true; m_marketType = value; }
51 inline void SetMarketType(MarketType&& value) { m_marketTypeHasBeenSet = true; m_marketType = std::move(value); }
52 inline InstanceMarketOptionsRequest& WithMarketType(const MarketType& value) { SetMarketType(value); return *this;}
53 inline InstanceMarketOptionsRequest& WithMarketType(MarketType&& value) { SetMarketType(std::move(value)); return *this;}
55
57
60 inline const SpotMarketOptions& GetSpotOptions() const{ return m_spotOptions; }
61 inline bool SpotOptionsHasBeenSet() const { return m_spotOptionsHasBeenSet; }
62 inline void SetSpotOptions(const SpotMarketOptions& value) { m_spotOptionsHasBeenSet = true; m_spotOptions = value; }
63 inline void SetSpotOptions(SpotMarketOptions&& value) { m_spotOptionsHasBeenSet = true; m_spotOptions = std::move(value); }
65 inline InstanceMarketOptionsRequest& WithSpotOptions(SpotMarketOptions&& value) { SetSpotOptions(std::move(value)); return *this;}
67 private:
68
69 MarketType m_marketType;
70 bool m_marketTypeHasBeenSet = false;
71
72 SpotMarketOptions m_spotOptions;
73 bool m_spotOptionsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EC2
78} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceMarketOptionsRequest & WithMarketType(MarketType &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API InstanceMarketOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMarketOptionsRequest & WithSpotOptions(SpotMarketOptions &&value)
AWS_EC2_API InstanceMarketOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMarketOptionsRequest & WithSpotOptions(const SpotMarketOptions &value)
InstanceMarketOptionsRequest & WithMarketType(const MarketType &value)
std::basic_ostream< char, std::char_traits< char > > OStream