AWS SDK for C++  1.9.65
AWS SDK for C++
ElasticInferenceAccelerator.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 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
48  inline const Aws::String& GetType() const{ return m_type; }
49 
56  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 
64  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
65 
72  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
73 
80  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
81 
88  inline ElasticInferenceAccelerator& WithType(const Aws::String& value) { SetType(value); return *this;}
89 
96  inline ElasticInferenceAccelerator& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
97 
104  inline ElasticInferenceAccelerator& WithType(const char* value) { SetType(value); return *this;}
105 
106 
111  inline int GetCount() const{ return m_count; }
112 
117  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
118 
123  inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
124 
129  inline ElasticInferenceAccelerator& WithCount(int value) { SetCount(value); return *this;}
130 
131  private:
132 
133  Aws::String m_type;
134  bool m_typeHasBeenSet;
135 
136  int m_count;
137  bool m_countHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace EC2
142 } // namespace Aws
Aws::EC2::Model::ElasticInferenceAccelerator::ElasticInferenceAccelerator
ElasticInferenceAccelerator(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ElasticInferenceAccelerator::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ElasticInferenceAccelerator::WithCount
ElasticInferenceAccelerator & WithCount(int value)
Definition: ElasticInferenceAccelerator.h:129
Aws::EC2::Model::ElasticInferenceAccelerator
Definition: ElasticInferenceAccelerator.h:32
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ElasticInferenceAccelerator::SetType
void SetType(const char *value)
Definition: ElasticInferenceAccelerator.h:80
AWSStreamFwd.h
Aws::EC2::Model::ElasticInferenceAccelerator::GetType
const Aws::String & GetType() const
Definition: ElasticInferenceAccelerator.h:48
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ElasticInferenceAccelerator::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ElasticInferenceAccelerator::WithType
ElasticInferenceAccelerator & WithType(Aws::String &&value)
Definition: ElasticInferenceAccelerator.h:96
AWSString.h
Aws::EC2::Model::ElasticInferenceAccelerator::WithType
ElasticInferenceAccelerator & WithType(const Aws::String &value)
Definition: ElasticInferenceAccelerator.h:88
Aws::EC2::Model::ElasticInferenceAccelerator::SetCount
void SetCount(int value)
Definition: ElasticInferenceAccelerator.h:123
Aws::EC2::Model::ElasticInferenceAccelerator::WithType
ElasticInferenceAccelerator & WithType(const char *value)
Definition: ElasticInferenceAccelerator.h:104
Aws::EC2::Model::ElasticInferenceAccelerator::CountHasBeenSet
bool CountHasBeenSet() const
Definition: ElasticInferenceAccelerator.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ElasticInferenceAccelerator::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ElasticInferenceAccelerator.h:56
Aws::EC2::Model::ElasticInferenceAccelerator::ElasticInferenceAccelerator
ElasticInferenceAccelerator()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ElasticInferenceAccelerator::GetCount
int GetCount() const
Definition: ElasticInferenceAccelerator.h:111
Aws::EC2::Model::ElasticInferenceAccelerator::SetType
void SetType(const Aws::String &value)
Definition: ElasticInferenceAccelerator.h:64
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::ElasticInferenceAccelerator::operator=
ElasticInferenceAccelerator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ElasticInferenceAccelerator::SetType
void SetType(Aws::String &&value)
Definition: ElasticInferenceAccelerator.h:72