AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetCapacitySpecificationRequest.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
49 {
50 public:
54
55 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
56 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
57
58
60
64 inline int GetTotalTargetCapacity() const{ return m_totalTargetCapacity; }
65 inline bool TotalTargetCapacityHasBeenSet() const { return m_totalTargetCapacityHasBeenSet; }
66 inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacityHasBeenSet = true; m_totalTargetCapacity = value; }
69
71
74 inline int GetOnDemandTargetCapacity() const{ return m_onDemandTargetCapacity; }
75 inline bool OnDemandTargetCapacityHasBeenSet() const { return m_onDemandTargetCapacityHasBeenSet; }
76 inline void SetOnDemandTargetCapacity(int value) { m_onDemandTargetCapacityHasBeenSet = true; m_onDemandTargetCapacity = value; }
79
81
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
108 inline const TargetCapacityUnitType& GetTargetCapacityUnitType() const{ return m_targetCapacityUnitType; }
109 inline bool TargetCapacityUnitTypeHasBeenSet() const { return m_targetCapacityUnitTypeHasBeenSet; }
110 inline void SetTargetCapacityUnitType(const TargetCapacityUnitType& value) { m_targetCapacityUnitTypeHasBeenSet = true; m_targetCapacityUnitType = value; }
111 inline void SetTargetCapacityUnitType(TargetCapacityUnitType&& value) { m_targetCapacityUnitTypeHasBeenSet = true; m_targetCapacityUnitType = std::move(value); }
115 private:
116
117 int m_totalTargetCapacity;
118 bool m_totalTargetCapacityHasBeenSet = false;
119
120 int m_onDemandTargetCapacity;
121 bool m_onDemandTargetCapacityHasBeenSet = false;
122
123 int m_spotTargetCapacity;
124 bool m_spotTargetCapacityHasBeenSet = false;
125
126 DefaultTargetCapacityType m_defaultTargetCapacityType;
127 bool m_defaultTargetCapacityTypeHasBeenSet = false;
128
129 TargetCapacityUnitType m_targetCapacityUnitType;
130 bool m_targetCapacityUnitTypeHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace EC2
135} // namespace Aws
TargetCapacitySpecificationRequest & WithDefaultTargetCapacityType(DefaultTargetCapacityType &&value)
const DefaultTargetCapacityType & GetDefaultTargetCapacityType() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetCapacitySpecificationRequest & WithSpotTargetCapacity(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetCapacitySpecificationRequest & WithTargetCapacityUnitType(TargetCapacityUnitType &&value)
void SetDefaultTargetCapacityType(const DefaultTargetCapacityType &value)
AWS_EC2_API TargetCapacitySpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetCapacitySpecificationRequest & WithOnDemandTargetCapacity(int value)
TargetCapacitySpecificationRequest & WithTotalTargetCapacity(int value)
TargetCapacitySpecificationRequest & WithTargetCapacityUnitType(const TargetCapacityUnitType &value)
TargetCapacitySpecificationRequest & WithDefaultTargetCapacityType(const DefaultTargetCapacityType &value)
AWS_EC2_API TargetCapacitySpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream