AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FleetSpotCapacityRebalance.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/FleetReplacementStrategy.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
57 inline const FleetReplacementStrategy& GetReplacementStrategy() const{ return m_replacementStrategy; }
58 inline bool ReplacementStrategyHasBeenSet() const { return m_replacementStrategyHasBeenSet; }
59 inline void SetReplacementStrategy(const FleetReplacementStrategy& value) { m_replacementStrategyHasBeenSet = true; m_replacementStrategy = value; }
60 inline void SetReplacementStrategy(FleetReplacementStrategy&& value) { m_replacementStrategyHasBeenSet = true; m_replacementStrategy = std::move(value); }
64
66
75 inline int GetTerminationDelay() const{ return m_terminationDelay; }
76 inline bool TerminationDelayHasBeenSet() const { return m_terminationDelayHasBeenSet; }
77 inline void SetTerminationDelay(int value) { m_terminationDelayHasBeenSet = true; m_terminationDelay = value; }
78 inline FleetSpotCapacityRebalance& WithTerminationDelay(int value) { SetTerminationDelay(value); return *this;}
80 private:
81
82 FleetReplacementStrategy m_replacementStrategy;
83 bool m_replacementStrategyHasBeenSet = false;
84
85 int m_terminationDelay;
86 bool m_terminationDelayHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace EC2
91} // namespace Aws
const FleetReplacementStrategy & GetReplacementStrategy() const
FleetSpotCapacityRebalance & WithTerminationDelay(int value)
void SetReplacementStrategy(const FleetReplacementStrategy &value)
FleetSpotCapacityRebalance & WithReplacementStrategy(FleetReplacementStrategy &&value)
void SetReplacementStrategy(FleetReplacementStrategy &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API FleetSpotCapacityRebalance(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API FleetSpotCapacityRebalance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FleetSpotCapacityRebalance & WithReplacementStrategy(const FleetReplacementStrategy &value)
std::basic_ostream< char, std::char_traits< char > > OStream