AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetCapacitySpecification.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/DefaultTargetCapacityType.h>
10#include <aws/ec2/model/TargetCapacityUnitType.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
48 {
49 public:
53
54 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
55 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
56
57
59
62 inline int GetTotalTargetCapacity() const{ return m_totalTargetCapacity; }
63 inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
64 inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacityHasBeenSet = true; m_totalTargetCapacity = value; }
67
69
73 inline int GetOnDemandTargetCapacity() const{ return m_onDemandTargetCapacity; }
74 inline bool OnDemandTargetCapacityHasBeenSet() const { return m_onDemandTargetCapacityHasBeenSet; }
75 inline void SetOnDemandTargetCapacity(int value) { m_onDemandTargetCapacityHasBeenSet = true; m_onDemandTargetCapacity = value; }
78
80
84 inline int GetSpotTargetCapacity() const{ return m_spotTargetCapacity; }
85 inline bool SpotTargetCapacityHasBeenSet() const { return m_spotTargetCapacityHasBeenSet; }
86 inline void SetSpotTargetCapacity(int value) { m_spotTargetCapacityHasBeenSet = true; m_spotTargetCapacity = value; }
89
91
94 inline const DefaultTargetCapacityType& GetDefaultTargetCapacityType() const{ return m_defaultTargetCapacityType; }
95 inline bool DefaultTargetCapacityTypeHasBeenSet() const { return m_defaultTargetCapacityTypeHasBeenSet; }
96 inline void SetDefaultTargetCapacityType(const DefaultTargetCapacityType& value) { m_defaultTargetCapacityTypeHasBeenSet = true; m_defaultTargetCapacityType = value; }
97 inline void SetDefaultTargetCapacityType(DefaultTargetCapacityType&& value) { m_defaultTargetCapacityTypeHasBeenSet = true; m_defaultTargetCapacityType = std::move(value); }
101
103
106 inline const TargetCapacityUnitType& GetTargetCapacityUnitType() const{ return m_targetCapacityUnitType; }
107 inline bool TargetCapacityUnitTypeHasBeenSet() const { return m_targetCapacityUnitTypeHasBeenSet; }
108 inline void SetTargetCapacityUnitType(const TargetCapacityUnitType& value) { m_targetCapacityUnitTypeHasBeenSet = true; m_targetCapacityUnitType = value; }
109 inline void SetTargetCapacityUnitType(TargetCapacityUnitType&& value) { m_targetCapacityUnitTypeHasBeenSet = true; m_targetCapacityUnitType = std::move(value); }
113 private:
114
115 int m_totalTargetCapacity;
116 bool m_totalTargetCapacityHasBeenSet = false;
117
118 int m_onDemandTargetCapacity;
119 bool m_onDemandTargetCapacityHasBeenSet = false;
120
121 int m_spotTargetCapacity;
122 bool m_spotTargetCapacityHasBeenSet = false;
123
124 DefaultTargetCapacityType m_defaultTargetCapacityType;
125 bool m_defaultTargetCapacityTypeHasBeenSet = false;
126
127 TargetCapacityUnitType m_targetCapacityUnitType;
128 bool m_targetCapacityUnitTypeHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
TargetCapacitySpecification & WithDefaultTargetCapacityType(DefaultTargetCapacityType &&value)
AWS_EC2_API TargetCapacitySpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
const DefaultTargetCapacityType & GetDefaultTargetCapacityType() const
TargetCapacitySpecification & WithOnDemandTargetCapacity(int value)
TargetCapacitySpecification & WithSpotTargetCapacity(int value)
TargetCapacitySpecification & WithDefaultTargetCapacityType(const DefaultTargetCapacityType &value)
void SetDefaultTargetCapacityType(const DefaultTargetCapacityType &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTargetCapacityUnitType(TargetCapacityUnitType &&value)
void SetTargetCapacityUnitType(const TargetCapacityUnitType &value)
const TargetCapacityUnitType & GetTargetCapacityUnitType() const
AWS_EC2_API TargetCapacitySpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDefaultTargetCapacityType(DefaultTargetCapacityType &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetCapacitySpecification & WithTotalTargetCapacity(int value)
TargetCapacitySpecification & WithTargetCapacityUnitType(const TargetCapacityUnitType &value)
TargetCapacitySpecification & WithTargetCapacityUnitType(TargetCapacityUnitType &&value)
std::basic_ostream< char, std::char_traits< char > > OStream