AWS SDK for C++  1.9.67
AWS SDK for C++
ElasticGpuHealth.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 const ElasticGpuStatus& GetStatus() const{ return m_status; }
47 
51  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
52 
56  inline void SetStatus(const ElasticGpuStatus& value) { m_statusHasBeenSet = true; m_status = value; }
57 
61  inline void SetStatus(ElasticGpuStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
62 
66  inline ElasticGpuHealth& WithStatus(const ElasticGpuStatus& value) { SetStatus(value); return *this;}
67 
71  inline ElasticGpuHealth& WithStatus(ElasticGpuStatus&& value) { SetStatus(std::move(value)); return *this;}
72 
73  private:
74 
75  ElasticGpuStatus m_status;
76  bool m_statusHasBeenSet;
77  };
78 
79 } // namespace Model
80 } // namespace EC2
81 } // namespace Aws
Aws::EC2::Model::ElasticGpuHealth::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
ElasticGpuStatus.h
Aws::EC2::Model::ElasticGpuStatus
ElasticGpuStatus
Definition: ElasticGpuStatus.h:17
Aws::EC2::Model::ElasticGpuHealth::GetStatus
const ElasticGpuStatus & GetStatus() const
Definition: ElasticGpuHealth.h:46
Aws::EC2::Model::ElasticGpuHealth::SetStatus
void SetStatus(ElasticGpuStatus &&value)
Definition: ElasticGpuHealth.h:61
Aws::EC2::Model::ElasticGpuHealth::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ElasticGpuHealth::SetStatus
void SetStatus(const ElasticGpuStatus &value)
Definition: ElasticGpuHealth.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ElasticGpuHealth::WithStatus
ElasticGpuHealth & WithStatus(const ElasticGpuStatus &value)
Definition: ElasticGpuHealth.h:66
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ElasticGpuHealth::WithStatus
ElasticGpuHealth & WithStatus(ElasticGpuStatus &&value)
Definition: ElasticGpuHealth.h:71
Aws::EC2::Model::ElasticGpuHealth::operator=
ElasticGpuHealth & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ElasticGpuHealth
Definition: ElasticGpuHealth.h:33
Aws::EC2::Model::ElasticGpuHealth::ElasticGpuHealth
ElasticGpuHealth(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::ElasticGpuHealth::ElasticGpuHealth
ElasticGpuHealth()
Aws::EC2::Model::ElasticGpuHealth::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ElasticGpuHealth.h:51