AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TargetCapacitySpecificationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/DefaultTargetCapacityType.h>
10#include <aws/ec2/model/TargetCapacityUnitType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
45 public:
46 AWS_EC2_API TargetCapacitySpecificationRequest() = default;
49
50 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
52
54
58 inline int GetTotalTargetCapacity() const { return m_totalTargetCapacity; }
59 inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
60 inline void SetTotalTargetCapacity(int value) {
61 m_totalTargetCapacityHasBeenSet = true;
62 m_totalTargetCapacity = value;
63 }
66 return *this;
67 }
69
71
74 inline int GetOnDemandTargetCapacity() const { return m_onDemandTargetCapacity; }
75 inline bool OnDemandTargetCapacityHasBeenSet() const { return m_onDemandTargetCapacityHasBeenSet; }
76 inline void SetOnDemandTargetCapacity(int value) {
77 m_onDemandTargetCapacityHasBeenSet = true;
78 m_onDemandTargetCapacity = value;
79 }
82 return *this;
83 }
85
87
90 inline int GetSpotTargetCapacity() const { return m_spotTargetCapacity; }
91 inline bool SpotTargetCapacityHasBeenSet() const { return m_spotTargetCapacityHasBeenSet; }
92 inline void SetSpotTargetCapacity(int value) {
93 m_spotTargetCapacityHasBeenSet = true;
94 m_spotTargetCapacity = value;
95 }
98 return *this;
99 }
101
103
106 inline DefaultTargetCapacityType GetDefaultTargetCapacityType() const { return m_defaultTargetCapacityType; }
107 inline bool DefaultTargetCapacityTypeHasBeenSet() const { return m_defaultTargetCapacityTypeHasBeenSet; }
109 m_defaultTargetCapacityTypeHasBeenSet = true;
110 m_defaultTargetCapacityType = value;
111 }
114 return *this;
115 }
117
119
124 inline TargetCapacityUnitType GetTargetCapacityUnitType() const { return m_targetCapacityUnitType; }
125 inline bool TargetCapacityUnitTypeHasBeenSet() const { return m_targetCapacityUnitTypeHasBeenSet; }
127 m_targetCapacityUnitTypeHasBeenSet = true;
128 m_targetCapacityUnitType = value;
129 }
132 return *this;
133 }
135 private:
136 int m_totalTargetCapacity{0};
137
138 int m_onDemandTargetCapacity{0};
139
140 int m_spotTargetCapacity{0};
141
143
145 bool m_totalTargetCapacityHasBeenSet = false;
146 bool m_onDemandTargetCapacityHasBeenSet = false;
147 bool m_spotTargetCapacityHasBeenSet = false;
148 bool m_defaultTargetCapacityTypeHasBeenSet = false;
149 bool m_targetCapacityUnitTypeHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace EC2
154} // namespace Aws
TargetCapacitySpecificationRequest & WithDefaultTargetCapacityType(DefaultTargetCapacityType value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetCapacitySpecificationRequest & WithSpotTargetCapacity(int value)
TargetCapacitySpecificationRequest & WithTargetCapacityUnitType(TargetCapacityUnitType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API TargetCapacitySpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetCapacitySpecificationRequest & WithOnDemandTargetCapacity(int value)
TargetCapacitySpecificationRequest & WithTotalTargetCapacity(int value)
AWS_EC2_API TargetCapacitySpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream