AWS SDK for C++  1.9.73
AWS SDK for C++
TargetCapacitySpecificationRequest.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 
48  {
49  public:
53 
54  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
55  void OutputToStream(Aws::OStream& oStream, const char* location) const;
56 
57 
62  inline int GetTotalTargetCapacity() const{ return m_totalTargetCapacity; }
63 
68  inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
69 
74  inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacityHasBeenSet = true; m_totalTargetCapacity = value; }
75 
80  inline TargetCapacitySpecificationRequest& WithTotalTargetCapacity(int value) { SetTotalTargetCapacity(value); return *this;}
81 
82 
86  inline int GetOnDemandTargetCapacity() const{ return m_onDemandTargetCapacity; }
87 
91  inline bool OnDemandTargetCapacityHasBeenSet() const { return m_onDemandTargetCapacityHasBeenSet; }
92 
96  inline void SetOnDemandTargetCapacity(int value) { m_onDemandTargetCapacityHasBeenSet = true; m_onDemandTargetCapacity = value; }
97 
101  inline TargetCapacitySpecificationRequest& WithOnDemandTargetCapacity(int value) { SetOnDemandTargetCapacity(value); return *this;}
102 
103 
107  inline int GetSpotTargetCapacity() const{ return m_spotTargetCapacity; }
108 
112  inline bool SpotTargetCapacityHasBeenSet() const { return m_spotTargetCapacityHasBeenSet; }
113 
117  inline void SetSpotTargetCapacity(int value) { m_spotTargetCapacityHasBeenSet = true; m_spotTargetCapacity = value; }
118 
122  inline TargetCapacitySpecificationRequest& WithSpotTargetCapacity(int value) { SetSpotTargetCapacity(value); return *this;}
123 
124 
129  inline const DefaultTargetCapacityType& GetDefaultTargetCapacityType() const{ return m_defaultTargetCapacityType; }
130 
135  inline bool DefaultTargetCapacityTypeHasBeenSet() const { return m_defaultTargetCapacityTypeHasBeenSet; }
136 
141  inline void SetDefaultTargetCapacityType(const DefaultTargetCapacityType& value) { m_defaultTargetCapacityTypeHasBeenSet = true; m_defaultTargetCapacityType = value; }
142 
147  inline void SetDefaultTargetCapacityType(DefaultTargetCapacityType&& value) { m_defaultTargetCapacityTypeHasBeenSet = true; m_defaultTargetCapacityType = std::move(value); }
148 
153  inline TargetCapacitySpecificationRequest& WithDefaultTargetCapacityType(const DefaultTargetCapacityType& value) { SetDefaultTargetCapacityType(value); return *this;}
154 
159  inline TargetCapacitySpecificationRequest& WithDefaultTargetCapacityType(DefaultTargetCapacityType&& value) { SetDefaultTargetCapacityType(std::move(value)); return *this;}
160 
161  private:
162 
163  int m_totalTargetCapacity;
164  bool m_totalTargetCapacityHasBeenSet;
165 
166  int m_onDemandTargetCapacity;
167  bool m_onDemandTargetCapacityHasBeenSet;
168 
169  int m_spotTargetCapacity;
170  bool m_spotTargetCapacityHasBeenSet;
171 
172  DefaultTargetCapacityType m_defaultTargetCapacityType;
173  bool m_defaultTargetCapacityTypeHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace EC2
178 } // namespace Aws
Aws::EC2::Model::TargetCapacitySpecificationRequest::WithDefaultTargetCapacityType
TargetCapacitySpecificationRequest & WithDefaultTargetCapacityType(const DefaultTargetCapacityType &value)
Definition: TargetCapacitySpecificationRequest.h:153
Aws::EC2::Model::TargetCapacitySpecificationRequest::GetSpotTargetCapacity
int GetSpotTargetCapacity() const
Definition: TargetCapacitySpecificationRequest.h:107
Aws::EC2::Model::TargetCapacitySpecificationRequest::SetOnDemandTargetCapacity
void SetOnDemandTargetCapacity(int value)
Definition: TargetCapacitySpecificationRequest.h:96
Aws::EC2::Model::TargetCapacitySpecificationRequest::OnDemandTargetCapacityHasBeenSet
bool OnDemandTargetCapacityHasBeenSet() const
Definition: TargetCapacitySpecificationRequest.h:91
Aws::EC2::Model::TargetCapacitySpecificationRequest::GetOnDemandTargetCapacity
int GetOnDemandTargetCapacity() const
Definition: TargetCapacitySpecificationRequest.h:86
Aws::EC2::Model::TargetCapacitySpecificationRequest::TotalTargetCapacityHasBeenSet
bool TotalTargetCapacityHasBeenSet() const
Definition: TargetCapacitySpecificationRequest.h:68
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::DefaultTargetCapacityType
DefaultTargetCapacityType
Definition: DefaultTargetCapacityType.h:17
Aws::EC2::Model::TargetCapacitySpecificationRequest::SetDefaultTargetCapacityType
void SetDefaultTargetCapacityType(const DefaultTargetCapacityType &value)
Definition: TargetCapacitySpecificationRequest.h:141
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TargetCapacitySpecificationRequest::SetSpotTargetCapacity
void SetSpotTargetCapacity(int value)
Definition: TargetCapacitySpecificationRequest.h:117
DefaultTargetCapacityType.h
Aws::EC2::Model::TargetCapacitySpecificationRequest::WithOnDemandTargetCapacity
TargetCapacitySpecificationRequest & WithOnDemandTargetCapacity(int value)
Definition: TargetCapacitySpecificationRequest.h:101
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TargetCapacitySpecificationRequest::GetDefaultTargetCapacityType
const DefaultTargetCapacityType & GetDefaultTargetCapacityType() const
Definition: TargetCapacitySpecificationRequest.h:129
Aws::EC2::Model::TargetCapacitySpecificationRequest::WithTotalTargetCapacity
TargetCapacitySpecificationRequest & WithTotalTargetCapacity(int value)
Definition: TargetCapacitySpecificationRequest.h:80
Aws::EC2::Model::TargetCapacitySpecificationRequest::WithSpotTargetCapacity
TargetCapacitySpecificationRequest & WithSpotTargetCapacity(int value)
Definition: TargetCapacitySpecificationRequest.h:122
Aws::EC2::Model::TargetCapacitySpecificationRequest::SetDefaultTargetCapacityType
void SetDefaultTargetCapacityType(DefaultTargetCapacityType &&value)
Definition: TargetCapacitySpecificationRequest.h:147
Aws::EC2::Model::TargetCapacitySpecificationRequest::WithDefaultTargetCapacityType
TargetCapacitySpecificationRequest & WithDefaultTargetCapacityType(DefaultTargetCapacityType &&value)
Definition: TargetCapacitySpecificationRequest.h:159
Aws::EC2::Model::TargetCapacitySpecificationRequest::SetTotalTargetCapacity
void SetTotalTargetCapacity(int value)
Definition: TargetCapacitySpecificationRequest.h:74
Aws::EC2::Model::TargetCapacitySpecificationRequest::TargetCapacitySpecificationRequest
TargetCapacitySpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TargetCapacitySpecificationRequest::TargetCapacitySpecificationRequest
TargetCapacitySpecificationRequest()
Aws::EC2::Model::TargetCapacitySpecificationRequest::DefaultTargetCapacityTypeHasBeenSet
bool DefaultTargetCapacityTypeHasBeenSet() const
Definition: TargetCapacitySpecificationRequest.h:135
Aws::EC2::Model::TargetCapacitySpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TargetCapacitySpecificationRequest
Definition: TargetCapacitySpecificationRequest.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TargetCapacitySpecificationRequest::GetTotalTargetCapacity
int GetTotalTargetCapacity() const
Definition: TargetCapacitySpecificationRequest.h:62
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TargetCapacitySpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TargetCapacitySpecificationRequest::SpotTargetCapacityHasBeenSet
bool SpotTargetCapacityHasBeenSet() const
Definition: TargetCapacitySpecificationRequest.h:112
Aws::EC2::Model::TargetCapacitySpecificationRequest::operator=
TargetCapacitySpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h