AWS SDK for C++  1.9.107
AWS SDK for C++
ElasticGpuSpecification.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
50  inline const Aws::String& GetType() const{ return m_type; }
51 
59  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 
68  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
69 
77  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
78 
86  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
87 
95  inline ElasticGpuSpecification& WithType(const Aws::String& value) { SetType(value); return *this;}
96 
104  inline ElasticGpuSpecification& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
105 
113  inline ElasticGpuSpecification& WithType(const char* value) { SetType(value); return *this;}
114 
115  private:
116 
117  Aws::String m_type;
118  bool m_typeHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace EC2
123 } // namespace Aws
Aws::EC2::Model::ElasticGpuSpecification::SetType
void SetType(const char *value)
Definition: ElasticGpuSpecification.h:86
Aws::EC2::Model::ElasticGpuSpecification::ElasticGpuSpecification
ElasticGpuSpecification()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ElasticGpuSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ElasticGpuSpecification::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ElasticGpuSpecification.h:59
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ElasticGpuSpecification
Definition: ElasticGpuSpecification.h:33
AWSString.h
Aws::EC2::Model::ElasticGpuSpecification::SetType
void SetType(const Aws::String &value)
Definition: ElasticGpuSpecification.h:68
Aws::EC2::Model::ElasticGpuSpecification::SetType
void SetType(Aws::String &&value)
Definition: ElasticGpuSpecification.h:77
Aws::EC2::Model::ElasticGpuSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ElasticGpuSpecification::ElasticGpuSpecification
ElasticGpuSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ElasticGpuSpecification::WithType
ElasticGpuSpecification & WithType(Aws::String &&value)
Definition: ElasticGpuSpecification.h:104
Aws::EC2::Model::ElasticGpuSpecification::WithType
ElasticGpuSpecification & WithType(const Aws::String &value)
Definition: ElasticGpuSpecification.h:95
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ElasticGpuSpecification::GetType
const Aws::String & GetType() const
Definition: ElasticGpuSpecification.h:50
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
EC2_EXPORTS.h
Aws::EC2::Model::ElasticGpuSpecification::operator=
ElasticGpuSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ElasticGpuSpecification::WithType
ElasticGpuSpecification & WithType(const char *value)
Definition: ElasticGpuSpecification.h:113