AWS SDK for C++  1.9.103
AWS SDK for C++
LaunchTemplateElasticInferenceAcceleratorResponse.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 
46  inline const Aws::String& GetType() const{ return m_type; }
47 
52  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 
58  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
59 
64  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
65 
70  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
71 
76  inline LaunchTemplateElasticInferenceAcceleratorResponse& WithType(const Aws::String& value) { SetType(value); return *this;}
77 
82  inline LaunchTemplateElasticInferenceAcceleratorResponse& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
83 
88  inline LaunchTemplateElasticInferenceAcceleratorResponse& WithType(const char* value) { SetType(value); return *this;}
89 
90 
95  inline int GetCount() const{ return m_count; }
96 
101  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
102 
107  inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
108 
113  inline LaunchTemplateElasticInferenceAcceleratorResponse& WithCount(int value) { SetCount(value); return *this;}
114 
115  private:
116 
117  Aws::String m_type;
118  bool m_typeHasBeenSet;
119 
120  int m_count;
121  bool m_countHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:52
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::operator=
LaunchTemplateElasticInferenceAcceleratorResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::WithType
LaunchTemplateElasticInferenceAcceleratorResponse & WithType(Aws::String &&value)
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:82
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::LaunchTemplateElasticInferenceAcceleratorResponse
LaunchTemplateElasticInferenceAcceleratorResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::WithType
LaunchTemplateElasticInferenceAcceleratorResponse & WithType(const Aws::String &value)
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:76
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::WithCount
LaunchTemplateElasticInferenceAcceleratorResponse & WithCount(int value)
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:113
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::SetType
void SetType(const Aws::String &value)
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:58
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:32
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::SetCount
void SetCount(int value)
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:107
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::GetCount
int GetCount() const
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:95
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::SetType
void SetType(Aws::String &&value)
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:64
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::CountHasBeenSet
bool CountHasBeenSet() const
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::SetType
void SetType(const char *value)
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:70
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
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::LaunchTemplateElasticInferenceAcceleratorResponse::WithType
LaunchTemplateElasticInferenceAcceleratorResponse & WithType(const char *value)
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:88
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::LaunchTemplateElasticInferenceAcceleratorResponse
LaunchTemplateElasticInferenceAcceleratorResponse()
Aws::EC2::Model::LaunchTemplateElasticInferenceAcceleratorResponse::GetType
const Aws::String & GetType() const
Definition: LaunchTemplateElasticInferenceAcceleratorResponse.h:46