AWS SDK for C++  1.9.67
AWS SDK for C++
TargetCapacitySpecification.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
47  {
48  public:
52 
53  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
54  void OutputToStream(Aws::OStream& oStream, const char* location) const;
55 
56 
61  inline int GetTotalTargetCapacity() const{ return m_totalTargetCapacity; }
62 
67  inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
68 
73  inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacityHasBeenSet = true; m_totalTargetCapacity = value; }
74 
79  inline TargetCapacitySpecification& WithTotalTargetCapacity(int value) { SetTotalTargetCapacity(value); return *this;}
80 
81 
86  inline int GetOnDemandTargetCapacity() const{ return m_onDemandTargetCapacity; }
87 
92  inline bool OnDemandTargetCapacityHasBeenSet() const { return m_onDemandTargetCapacityHasBeenSet; }
93 
98  inline void SetOnDemandTargetCapacity(int value) { m_onDemandTargetCapacityHasBeenSet = true; m_onDemandTargetCapacity = value; }
99 
104  inline TargetCapacitySpecification& WithOnDemandTargetCapacity(int value) { SetOnDemandTargetCapacity(value); return *this;}
105 
106 
111  inline int GetSpotTargetCapacity() const{ return m_spotTargetCapacity; }
112 
117  inline bool SpotTargetCapacityHasBeenSet() const { return m_spotTargetCapacityHasBeenSet; }
118 
123  inline void SetSpotTargetCapacity(int value) { m_spotTargetCapacityHasBeenSet = true; m_spotTargetCapacity = value; }
124 
129  inline TargetCapacitySpecification& WithSpotTargetCapacity(int value) { SetSpotTargetCapacity(value); return *this;}
130 
131 
136  inline const DefaultTargetCapacityType& GetDefaultTargetCapacityType() const{ return m_defaultTargetCapacityType; }
137 
142  inline bool DefaultTargetCapacityTypeHasBeenSet() const { return m_defaultTargetCapacityTypeHasBeenSet; }
143 
148  inline void SetDefaultTargetCapacityType(const DefaultTargetCapacityType& value) { m_defaultTargetCapacityTypeHasBeenSet = true; m_defaultTargetCapacityType = value; }
149 
154  inline void SetDefaultTargetCapacityType(DefaultTargetCapacityType&& value) { m_defaultTargetCapacityTypeHasBeenSet = true; m_defaultTargetCapacityType = std::move(value); }
155 
160  inline TargetCapacitySpecification& WithDefaultTargetCapacityType(const DefaultTargetCapacityType& value) { SetDefaultTargetCapacityType(value); return *this;}
161 
166  inline TargetCapacitySpecification& WithDefaultTargetCapacityType(DefaultTargetCapacityType&& value) { SetDefaultTargetCapacityType(std::move(value)); return *this;}
167 
168  private:
169 
170  int m_totalTargetCapacity;
171  bool m_totalTargetCapacityHasBeenSet;
172 
173  int m_onDemandTargetCapacity;
174  bool m_onDemandTargetCapacityHasBeenSet;
175 
176  int m_spotTargetCapacity;
177  bool m_spotTargetCapacityHasBeenSet;
178 
179  DefaultTargetCapacityType m_defaultTargetCapacityType;
180  bool m_defaultTargetCapacityTypeHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace EC2
185 } // namespace Aws
Aws::EC2::Model::TargetCapacitySpecification::WithTotalTargetCapacity
TargetCapacitySpecification & WithTotalTargetCapacity(int value)
Definition: TargetCapacitySpecification.h:79
Aws::EC2::Model::TargetCapacitySpecification::WithDefaultTargetCapacityType
TargetCapacitySpecification & WithDefaultTargetCapacityType(DefaultTargetCapacityType &&value)
Definition: TargetCapacitySpecification.h:166
Aws::EC2::Model::TargetCapacitySpecification::SetDefaultTargetCapacityType
void SetDefaultTargetCapacityType(DefaultTargetCapacityType &&value)
Definition: TargetCapacitySpecification.h:154
Aws::EC2::Model::TargetCapacitySpecification::TargetCapacitySpecification
TargetCapacitySpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TargetCapacitySpecification::TotalTargetCapacityHasBeenSet
bool TotalTargetCapacityHasBeenSet() const
Definition: TargetCapacitySpecification.h:67
Aws::EC2::Model::TargetCapacitySpecification::GetTotalTargetCapacity
int GetTotalTargetCapacity() const
Definition: TargetCapacitySpecification.h:61
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TargetCapacitySpecification::SetTotalTargetCapacity
void SetTotalTargetCapacity(int value)
Definition: TargetCapacitySpecification.h:73
AWSStreamFwd.h
Aws::EC2::Model::TargetCapacitySpecification::SetOnDemandTargetCapacity
void SetOnDemandTargetCapacity(int value)
Definition: TargetCapacitySpecification.h:98
Aws::EC2::Model::TargetCapacitySpecification::OnDemandTargetCapacityHasBeenSet
bool OnDemandTargetCapacityHasBeenSet() const
Definition: TargetCapacitySpecification.h:92
Aws::EC2::Model::DefaultTargetCapacityType
DefaultTargetCapacityType
Definition: DefaultTargetCapacityType.h:17
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TargetCapacitySpecification::GetDefaultTargetCapacityType
const DefaultTargetCapacityType & GetDefaultTargetCapacityType() const
Definition: TargetCapacitySpecification.h:136
Aws::EC2::Model::TargetCapacitySpecification::operator=
TargetCapacitySpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DefaultTargetCapacityType.h
Aws::EC2::Model::TargetCapacitySpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TargetCapacitySpecification::TargetCapacitySpecification
TargetCapacitySpecification()
Aws::EC2::Model::TargetCapacitySpecification::WithDefaultTargetCapacityType
TargetCapacitySpecification & WithDefaultTargetCapacityType(const DefaultTargetCapacityType &value)
Definition: TargetCapacitySpecification.h:160
Aws::EC2::Model::TargetCapacitySpecification::WithOnDemandTargetCapacity
TargetCapacitySpecification & WithOnDemandTargetCapacity(int value)
Definition: TargetCapacitySpecification.h:104
Aws::EC2::Model::TargetCapacitySpecification
Definition: TargetCapacitySpecification.h:47
Aws::EC2::Model::TargetCapacitySpecification::SpotTargetCapacityHasBeenSet
bool SpotTargetCapacityHasBeenSet() const
Definition: TargetCapacitySpecification.h:117
Aws::EC2::Model::TargetCapacitySpecification::GetOnDemandTargetCapacity
int GetOnDemandTargetCapacity() const
Definition: TargetCapacitySpecification.h:86
Aws::EC2::Model::TargetCapacitySpecification::DefaultTargetCapacityTypeHasBeenSet
bool DefaultTargetCapacityTypeHasBeenSet() const
Definition: TargetCapacitySpecification.h:142
Aws::EC2::Model::TargetCapacitySpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TargetCapacitySpecification::SetDefaultTargetCapacityType
void SetDefaultTargetCapacityType(const DefaultTargetCapacityType &value)
Definition: TargetCapacitySpecification.h:148
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TargetCapacitySpecification::SetSpotTargetCapacity
void SetSpotTargetCapacity(int value)
Definition: TargetCapacitySpecification.h:123
Aws::EC2::Model::TargetCapacitySpecification::GetSpotTargetCapacity
int GetSpotTargetCapacity() const
Definition: TargetCapacitySpecification.h:111
Aws::EC2::Model::TargetCapacitySpecification::WithSpotTargetCapacity
TargetCapacitySpecification & WithSpotTargetCapacity(int value)
Definition: TargetCapacitySpecification.h:129
EC2_EXPORTS.h