AWS SDK for C++  1.9.73
AWS SDK for C++
ReservedInstancesConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/Scope.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
49 
53  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
54 
58  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
59 
63  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
64 
68  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
69 
73  inline ReservedInstancesConfiguration& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
74 
78  inline ReservedInstancesConfiguration& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
79 
83  inline ReservedInstancesConfiguration& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
84 
85 
90  inline int GetInstanceCount() const{ return m_instanceCount; }
91 
96  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
97 
102  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
103 
108  inline ReservedInstancesConfiguration& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
109 
110 
114  inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
115 
119  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
120 
124  inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
125 
129  inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
130 
134  inline ReservedInstancesConfiguration& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
135 
139  inline ReservedInstancesConfiguration& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
140 
141 
146  inline const Aws::String& GetPlatform() const{ return m_platform; }
147 
152  inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
153 
158  inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
159 
164  inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
165 
170  inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
171 
176  inline ReservedInstancesConfiguration& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
177 
182  inline ReservedInstancesConfiguration& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
183 
188  inline ReservedInstancesConfiguration& WithPlatform(const char* value) { SetPlatform(value); return *this;}
189 
190 
195  inline const Scope& GetScope() const{ return m_scope; }
196 
201  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
202 
207  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
208 
213  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
214 
219  inline ReservedInstancesConfiguration& WithScope(const Scope& value) { SetScope(value); return *this;}
220 
225  inline ReservedInstancesConfiguration& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
226 
227  private:
228 
229  Aws::String m_availabilityZone;
230  bool m_availabilityZoneHasBeenSet;
231 
232  int m_instanceCount;
233  bool m_instanceCountHasBeenSet;
234 
235  InstanceType m_instanceType;
236  bool m_instanceTypeHasBeenSet;
237 
238  Aws::String m_platform;
239  bool m_platformHasBeenSet;
240 
241  Scope m_scope;
242  bool m_scopeHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace EC2
247 } // namespace Aws
Aws::EC2::Model::ReservedInstancesConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ReservedInstancesConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ReservedInstancesConfiguration::WithInstanceType
ReservedInstancesConfiguration & WithInstanceType(InstanceType &&value)
Definition: ReservedInstancesConfiguration.h:139
Aws::EC2::Model::ReservedInstancesConfiguration::GetScope
const Scope & GetScope() const
Definition: ReservedInstancesConfiguration.h:195
Aws::EC2::Model::ReservedInstancesConfiguration::ReservedInstancesConfiguration
ReservedInstancesConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ReservedInstancesConfiguration::SetInstanceType
void SetInstanceType(InstanceType &&value)
Definition: ReservedInstancesConfiguration.h:129
Aws::EC2::Model::ReservedInstancesConfiguration::WithInstanceType
ReservedInstancesConfiguration & WithInstanceType(const InstanceType &value)
Definition: ReservedInstancesConfiguration.h:134
Aws::EC2::Model::ReservedInstancesConfiguration::WithPlatform
ReservedInstancesConfiguration & WithPlatform(const Aws::String &value)
Definition: ReservedInstancesConfiguration.h:176
Aws::EC2::Model::ReservedInstancesConfiguration::WithAvailabilityZone
ReservedInstancesConfiguration & WithAvailabilityZone(Aws::String &&value)
Definition: ReservedInstancesConfiguration.h:78
Aws::EC2::Model::ReservedInstancesConfiguration::SetInstanceType
void SetInstanceType(const InstanceType &value)
Definition: ReservedInstancesConfiguration.h:124
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ReservedInstancesConfiguration::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: ReservedInstancesConfiguration.h:48
AWSStreamFwd.h
Aws::EC2::Model::ReservedInstancesConfiguration::SetScope
void SetScope(const Scope &value)
Definition: ReservedInstancesConfiguration.h:207
Aws::EC2::Model::ReservedInstancesConfiguration::SetInstanceCount
void SetInstanceCount(int value)
Definition: ReservedInstancesConfiguration.h:102
Aws::EC2::Model::ReservedInstancesConfiguration::GetPlatform
const Aws::String & GetPlatform() const
Definition: ReservedInstancesConfiguration.h:146
Aws::EC2::Model::ReservedInstancesConfiguration::ReservedInstancesConfiguration
ReservedInstancesConfiguration()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ReservedInstancesConfiguration::WithScope
ReservedInstancesConfiguration & WithScope(Scope &&value)
Definition: ReservedInstancesConfiguration.h:225
Aws::EC2::Model::ReservedInstancesConfiguration::SetPlatform
void SetPlatform(Aws::String &&value)
Definition: ReservedInstancesConfiguration.h:164
Aws::EC2::Model::ReservedInstancesConfiguration
Definition: ReservedInstancesConfiguration.h:35
Aws::EC2::Model::ReservedInstancesConfiguration::WithPlatform
ReservedInstancesConfiguration & WithPlatform(const char *value)
Definition: ReservedInstancesConfiguration.h:188
Aws::EC2::Model::ReservedInstancesConfiguration::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: ReservedInstancesConfiguration.h:119
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ReservedInstancesConfiguration::WithScope
ReservedInstancesConfiguration & WithScope(const Scope &value)
Definition: ReservedInstancesConfiguration.h:219
Scope.h
Aws::EC2::Model::ReservedInstancesConfiguration::PlatformHasBeenSet
bool PlatformHasBeenSet() const
Definition: ReservedInstancesConfiguration.h:152
Aws::EC2::Model::ReservedInstancesConfiguration::operator=
ReservedInstancesConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ReservedInstancesConfiguration::SetPlatform
void SetPlatform(const Aws::String &value)
Definition: ReservedInstancesConfiguration.h:158
AWSString.h
Aws::EC2::Model::ReservedInstancesConfiguration::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: ReservedInstancesConfiguration.h:63
Aws::EC2::Model::ReservedInstancesConfiguration::GetInstanceType
const InstanceType & GetInstanceType() const
Definition: ReservedInstancesConfiguration.h:114
Aws::EC2::Model::ReservedInstancesConfiguration::SetPlatform
void SetPlatform(const char *value)
Definition: ReservedInstancesConfiguration.h:170
Aws::EC2::Model::ReservedInstancesConfiguration::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: ReservedInstancesConfiguration.h:58
Aws::EC2::Model::ReservedInstancesConfiguration::GetInstanceCount
int GetInstanceCount() const
Definition: ReservedInstancesConfiguration.h:90
Aws::EC2::Model::ReservedInstancesConfiguration::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: ReservedInstancesConfiguration.h:53
InstanceType.h
Aws::EC2::Model::ReservedInstancesConfiguration::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: ReservedInstancesConfiguration.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ReservedInstancesConfiguration::WithAvailabilityZone
ReservedInstancesConfiguration & WithAvailabilityZone(const Aws::String &value)
Definition: ReservedInstancesConfiguration.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ReservedInstancesConfiguration::WithInstanceCount
ReservedInstancesConfiguration & WithInstanceCount(int value)
Definition: ReservedInstancesConfiguration.h:108
Aws::EC2::Model::ReservedInstancesConfiguration::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: ReservedInstancesConfiguration.h:201
Aws::EC2::Model::ReservedInstancesConfiguration::WithPlatform
ReservedInstancesConfiguration & WithPlatform(Aws::String &&value)
Definition: ReservedInstancesConfiguration.h:182
Aws::EC2::Model::ReservedInstancesConfiguration::WithAvailabilityZone
ReservedInstancesConfiguration & WithAvailabilityZone(const char *value)
Definition: ReservedInstancesConfiguration.h:83
EC2_EXPORTS.h
Aws::EC2::Model::InstanceType
InstanceType
Definition: InstanceType.h:17
Aws::EC2::Model::Scope
Scope
Definition: Scope.h:17
Aws::EC2::Model::ReservedInstancesConfiguration::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: ReservedInstancesConfiguration.h:96
Aws::EC2::Model::ReservedInstancesConfiguration::SetScope
void SetScope(Scope &&value)
Definition: ReservedInstancesConfiguration.h:213