AWS SDK for C++  1.9.70
AWS SDK for C++
InstanceTypeOffering.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.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 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
49  inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
50 
56  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
57 
63  inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
64 
70  inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
71 
77  inline InstanceTypeOffering& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
78 
84  inline InstanceTypeOffering& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
85 
86 
90  inline const LocationType& GetLocationType() const{ return m_locationType; }
91 
95  inline bool LocationTypeHasBeenSet() const { return m_locationTypeHasBeenSet; }
96 
100  inline void SetLocationType(const LocationType& value) { m_locationTypeHasBeenSet = true; m_locationType = value; }
101 
105  inline void SetLocationType(LocationType&& value) { m_locationTypeHasBeenSet = true; m_locationType = std::move(value); }
106 
110  inline InstanceTypeOffering& WithLocationType(const LocationType& value) { SetLocationType(value); return *this;}
111 
115  inline InstanceTypeOffering& WithLocationType(LocationType&& value) { SetLocationType(std::move(value)); return *this;}
116 
117 
123  inline const Aws::String& GetLocation() const{ return m_location; }
124 
130  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
131 
137  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
138 
144  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
145 
151  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
152 
158  inline InstanceTypeOffering& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
159 
165  inline InstanceTypeOffering& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
166 
172  inline InstanceTypeOffering& WithLocation(const char* value) { SetLocation(value); return *this;}
173 
174  private:
175 
176  InstanceType m_instanceType;
177  bool m_instanceTypeHasBeenSet;
178 
179  LocationType m_locationType;
180  bool m_locationTypeHasBeenSet;
181 
182  Aws::String m_location;
183  bool m_locationHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace EC2
188 } // namespace Aws
Aws::EC2::Model::InstanceTypeOffering::LocationTypeHasBeenSet
bool LocationTypeHasBeenSet() const
Definition: InstanceTypeOffering.h:95
Aws::EC2::Model::InstanceTypeOffering::InstanceTypeOffering
InstanceTypeOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceTypeOffering::WithLocationType
InstanceTypeOffering & WithLocationType(LocationType &&value)
Definition: InstanceTypeOffering.h:115
Aws::EC2::Model::InstanceTypeOffering::WithInstanceType
InstanceTypeOffering & WithInstanceType(InstanceType &&value)
Definition: InstanceTypeOffering.h:84
Aws::EC2::Model::InstanceTypeOffering::WithLocation
InstanceTypeOffering & WithLocation(Aws::String &&value)
Definition: InstanceTypeOffering.h:165
Aws::EC2::Model::InstanceTypeOffering::SetLocationType
void SetLocationType(const LocationType &value)
Definition: InstanceTypeOffering.h:100
Aws::EC2::Model::InstanceTypeOffering::GetLocationType
const LocationType & GetLocationType() const
Definition: InstanceTypeOffering.h:90
Aws::EC2::Model::InstanceTypeOffering::operator=
InstanceTypeOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LocationType
LocationType
Definition: LocationType.h:17
Aws::EC2::Model::InstanceTypeOffering::WithLocationType
InstanceTypeOffering & WithLocationType(const LocationType &value)
Definition: InstanceTypeOffering.h:110
AWSStreamFwd.h
Aws::EC2::Model::InstanceTypeOffering::GetLocation
const Aws::String & GetLocation() const
Definition: InstanceTypeOffering.h:123
Aws::EC2::Model::InstanceTypeOffering::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceTypeOffering::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InstanceTypeOffering::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: InstanceTypeOffering.h:56
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceTypeOffering::SetLocationType
void SetLocationType(LocationType &&value)
Definition: InstanceTypeOffering.h:105
Aws::EC2::Model::InstanceTypeOffering::WithLocation
InstanceTypeOffering & WithLocation(const char *value)
Definition: InstanceTypeOffering.h:172
Aws::EC2::Model::InstanceTypeOffering::GetInstanceType
const InstanceType & GetInstanceType() const
Definition: InstanceTypeOffering.h:49
Aws::EC2::Model::InstanceTypeOffering::SetLocation
void SetLocation(const Aws::String &value)
Definition: InstanceTypeOffering.h:137
AWSString.h
Aws::EC2::Model::InstanceTypeOffering::SetLocation
void SetLocation(const char *value)
Definition: InstanceTypeOffering.h:151
LocationType.h
Aws::EC2::Model::InstanceTypeOffering::WithLocation
InstanceTypeOffering & WithLocation(const Aws::String &value)
Definition: InstanceTypeOffering.h:158
InstanceType.h
Aws::EC2::Model::InstanceTypeOffering::SetInstanceType
void SetInstanceType(InstanceType &&value)
Definition: InstanceTypeOffering.h:70
Aws::EC2::Model::InstanceTypeOffering::SetInstanceType
void SetInstanceType(const InstanceType &value)
Definition: InstanceTypeOffering.h:63
Aws::EC2::Model::InstanceTypeOffering::InstanceTypeOffering
InstanceTypeOffering()
Aws::EC2::Model::InstanceTypeOffering::SetLocation
void SetLocation(Aws::String &&value)
Definition: InstanceTypeOffering.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceTypeOffering::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: InstanceTypeOffering.h:130
Aws::EC2::Model::InstanceTypeOffering
Definition: InstanceTypeOffering.h:34
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::InstanceTypeOffering::WithInstanceType
InstanceTypeOffering & WithInstanceType(const InstanceType &value)
Definition: InstanceTypeOffering.h:77
EC2_EXPORTS.h
Aws::EC2::Model::InstanceType
InstanceType
Definition: InstanceType.h:17