AWS SDK for C++  1.9.67
AWS SDK for C++
InferenceDeviceInfo.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 
46  inline int GetCount() const{ return m_count; }
47 
51  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
52 
56  inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
57 
61  inline InferenceDeviceInfo& WithCount(int value) { SetCount(value); return *this;}
62 
63 
67  inline const Aws::String& GetName() const{ return m_name; }
68 
72  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 
77  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 
82  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 
87  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
88 
92  inline InferenceDeviceInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
93 
97  inline InferenceDeviceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
98 
102  inline InferenceDeviceInfo& WithName(const char* value) { SetName(value); return *this;}
103 
104 
108  inline const Aws::String& GetManufacturer() const{ return m_manufacturer; }
109 
113  inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
114 
118  inline void SetManufacturer(const Aws::String& value) { m_manufacturerHasBeenSet = true; m_manufacturer = value; }
119 
123  inline void SetManufacturer(Aws::String&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::move(value); }
124 
128  inline void SetManufacturer(const char* value) { m_manufacturerHasBeenSet = true; m_manufacturer.assign(value); }
129 
133  inline InferenceDeviceInfo& WithManufacturer(const Aws::String& value) { SetManufacturer(value); return *this;}
134 
138  inline InferenceDeviceInfo& WithManufacturer(Aws::String&& value) { SetManufacturer(std::move(value)); return *this;}
139 
143  inline InferenceDeviceInfo& WithManufacturer(const char* value) { SetManufacturer(value); return *this;}
144 
145  private:
146 
147  int m_count;
148  bool m_countHasBeenSet;
149 
150  Aws::String m_name;
151  bool m_nameHasBeenSet;
152 
153  Aws::String m_manufacturer;
154  bool m_manufacturerHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace EC2
159 } // namespace Aws
Aws::EC2::Model::InferenceDeviceInfo::operator=
InferenceDeviceInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InferenceDeviceInfo::InferenceDeviceInfo
InferenceDeviceInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InferenceDeviceInfo::WithManufacturer
InferenceDeviceInfo & WithManufacturer(const char *value)
Definition: InferenceDeviceInfo.h:143
Aws::EC2::Model::InferenceDeviceInfo::SetCount
void SetCount(int value)
Definition: InferenceDeviceInfo.h:56
Aws::EC2::Model::InferenceDeviceInfo::SetName
void SetName(Aws::String &&value)
Definition: InferenceDeviceInfo.h:82
Aws::EC2::Model::InferenceDeviceInfo::SetName
void SetName(const Aws::String &value)
Definition: InferenceDeviceInfo.h:77
Aws::EC2::Model::InferenceDeviceInfo::WithName
InferenceDeviceInfo & WithName(const char *value)
Definition: InferenceDeviceInfo.h:102
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::InferenceDeviceInfo::SetManufacturer
void SetManufacturer(const Aws::String &value)
Definition: InferenceDeviceInfo.h:118
Aws::EC2::Model::InferenceDeviceInfo::GetManufacturer
const Aws::String & GetManufacturer() const
Definition: InferenceDeviceInfo.h:108
Aws::EC2::Model::InferenceDeviceInfo::CountHasBeenSet
bool CountHasBeenSet() const
Definition: InferenceDeviceInfo.h:51
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::InferenceDeviceInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InferenceDeviceInfo::SetManufacturer
void SetManufacturer(const char *value)
Definition: InferenceDeviceInfo.h:128
Aws::EC2::Model::InferenceDeviceInfo::InferenceDeviceInfo
InferenceDeviceInfo()
Aws::EC2::Model::InferenceDeviceInfo
Definition: InferenceDeviceInfo.h:33
Aws::EC2::Model::InferenceDeviceInfo::ManufacturerHasBeenSet
bool ManufacturerHasBeenSet() const
Definition: InferenceDeviceInfo.h:113
Aws::EC2::Model::InferenceDeviceInfo::WithName
InferenceDeviceInfo & WithName(Aws::String &&value)
Definition: InferenceDeviceInfo.h:97
Aws::EC2::Model::InferenceDeviceInfo::GetCount
int GetCount() const
Definition: InferenceDeviceInfo.h:46
Aws::EC2::Model::InferenceDeviceInfo::WithManufacturer
InferenceDeviceInfo & WithManufacturer(const Aws::String &value)
Definition: InferenceDeviceInfo.h:133
AWSString.h
Aws::EC2::Model::InferenceDeviceInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InferenceDeviceInfo::NameHasBeenSet
bool NameHasBeenSet() const
Definition: InferenceDeviceInfo.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InferenceDeviceInfo::WithManufacturer
InferenceDeviceInfo & WithManufacturer(Aws::String &&value)
Definition: InferenceDeviceInfo.h:138
Aws::EC2::Model::InferenceDeviceInfo::SetManufacturer
void SetManufacturer(Aws::String &&value)
Definition: InferenceDeviceInfo.h:123
Aws::EC2::Model::InferenceDeviceInfo::SetName
void SetName(const char *value)
Definition: InferenceDeviceInfo.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::InferenceDeviceInfo::WithName
InferenceDeviceInfo & WithName(const Aws::String &value)
Definition: InferenceDeviceInfo.h:92
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InferenceDeviceInfo::GetName
const Aws::String & GetName() const
Definition: InferenceDeviceInfo.h:67
EC2_EXPORTS.h
Aws::EC2::Model::InferenceDeviceInfo::WithCount
InferenceDeviceInfo & WithCount(int value)
Definition: InferenceDeviceInfo.h:61