AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ElasticGpus.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ElasticGpuHealth.h>
11#include <aws/ec2/model/ElasticGpuState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_EC2_API ElasticGpus();
40 AWS_EC2_API ElasticGpus(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_EC2_API ElasticGpus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetElasticGpuId() const{ return m_elasticGpuId; }
52 inline bool ElasticGpuIdHasBeenSet() const { return m_elasticGpuIdHasBeenSet; }
53 inline void SetElasticGpuId(const Aws::String& value) { m_elasticGpuIdHasBeenSet = true; m_elasticGpuId = value; }
54 inline void SetElasticGpuId(Aws::String&& value) { m_elasticGpuIdHasBeenSet = true; m_elasticGpuId = std::move(value); }
55 inline void SetElasticGpuId(const char* value) { m_elasticGpuIdHasBeenSet = true; m_elasticGpuId.assign(value); }
56 inline ElasticGpus& WithElasticGpuId(const Aws::String& value) { SetElasticGpuId(value); return *this;}
57 inline ElasticGpus& WithElasticGpuId(Aws::String&& value) { SetElasticGpuId(std::move(value)); return *this;}
58 inline ElasticGpus& WithElasticGpuId(const char* value) { SetElasticGpuId(value); return *this;}
60
62
66 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
67 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
68 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
69 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
70 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
71 inline ElasticGpus& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
72 inline ElasticGpus& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
73 inline ElasticGpus& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
75
77
80 inline const Aws::String& GetElasticGpuType() const{ return m_elasticGpuType; }
81 inline bool ElasticGpuTypeHasBeenSet() const { return m_elasticGpuTypeHasBeenSet; }
82 inline void SetElasticGpuType(const Aws::String& value) { m_elasticGpuTypeHasBeenSet = true; m_elasticGpuType = value; }
83 inline void SetElasticGpuType(Aws::String&& value) { m_elasticGpuTypeHasBeenSet = true; m_elasticGpuType = std::move(value); }
84 inline void SetElasticGpuType(const char* value) { m_elasticGpuTypeHasBeenSet = true; m_elasticGpuType.assign(value); }
85 inline ElasticGpus& WithElasticGpuType(const Aws::String& value) { SetElasticGpuType(value); return *this;}
86 inline ElasticGpus& WithElasticGpuType(Aws::String&& value) { SetElasticGpuType(std::move(value)); return *this;}
87 inline ElasticGpus& WithElasticGpuType(const char* value) { SetElasticGpuType(value); return *this;}
89
91
94 inline const ElasticGpuHealth& GetElasticGpuHealth() const{ return m_elasticGpuHealth; }
95 inline bool ElasticGpuHealthHasBeenSet() const { return m_elasticGpuHealthHasBeenSet; }
96 inline void SetElasticGpuHealth(const ElasticGpuHealth& value) { m_elasticGpuHealthHasBeenSet = true; m_elasticGpuHealth = value; }
97 inline void SetElasticGpuHealth(ElasticGpuHealth&& value) { m_elasticGpuHealthHasBeenSet = true; m_elasticGpuHealth = std::move(value); }
98 inline ElasticGpus& WithElasticGpuHealth(const ElasticGpuHealth& value) { SetElasticGpuHealth(value); return *this;}
99 inline ElasticGpus& WithElasticGpuHealth(ElasticGpuHealth&& value) { SetElasticGpuHealth(std::move(value)); return *this;}
101
103
106 inline const ElasticGpuState& GetElasticGpuState() const{ return m_elasticGpuState; }
107 inline bool ElasticGpuStateHasBeenSet() const { return m_elasticGpuStateHasBeenSet; }
108 inline void SetElasticGpuState(const ElasticGpuState& value) { m_elasticGpuStateHasBeenSet = true; m_elasticGpuState = value; }
109 inline void SetElasticGpuState(ElasticGpuState&& value) { m_elasticGpuStateHasBeenSet = true; m_elasticGpuState = std::move(value); }
110 inline ElasticGpus& WithElasticGpuState(const ElasticGpuState& value) { SetElasticGpuState(value); return *this;}
111 inline ElasticGpus& WithElasticGpuState(ElasticGpuState&& value) { SetElasticGpuState(std::move(value)); return *this;}
113
115
119 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
120 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
121 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
122 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
123 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
124 inline ElasticGpus& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
125 inline ElasticGpus& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
126 inline ElasticGpus& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
128
130
133 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
136 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
137 inline ElasticGpus& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
138 inline ElasticGpus& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
139 inline ElasticGpus& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
140 inline ElasticGpus& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
142 private:
143
144 Aws::String m_elasticGpuId;
145 bool m_elasticGpuIdHasBeenSet = false;
146
147 Aws::String m_availabilityZone;
148 bool m_availabilityZoneHasBeenSet = false;
149
150 Aws::String m_elasticGpuType;
151 bool m_elasticGpuTypeHasBeenSet = false;
152
153 ElasticGpuHealth m_elasticGpuHealth;
154 bool m_elasticGpuHealthHasBeenSet = false;
155
156 ElasticGpuState m_elasticGpuState;
157 bool m_elasticGpuStateHasBeenSet = false;
158
159 Aws::String m_instanceId;
160 bool m_instanceIdHasBeenSet = false;
161
162 Aws::Vector<Tag> m_tags;
163 bool m_tagsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
void SetInstanceId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Tag > & GetTags() const
void SetElasticGpuId(const Aws::String &value)
Definition ElasticGpus.h:53
ElasticGpus & AddTags(Tag &&value)
void SetElasticGpuType(const char *value)
Definition ElasticGpus.h:84
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ElasticGpus & WithInstanceId(Aws::String &&value)
void SetInstanceId(Aws::String &&value)
ElasticGpus & WithElasticGpuType(const char *value)
Definition ElasticGpus.h:87
ElasticGpus & WithAvailabilityZone(Aws::String &&value)
Definition ElasticGpus.h:72
void SetElasticGpuType(Aws::String &&value)
Definition ElasticGpus.h:83
ElasticGpus & WithInstanceId(const Aws::String &value)
ElasticGpus & WithElasticGpuState(ElasticGpuState &&value)
const Aws::String & GetAvailabilityZone() const
Definition ElasticGpus.h:66
void SetTags(const Aws::Vector< Tag > &value)
ElasticGpus & WithTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)
ElasticGpus & WithElasticGpuId(Aws::String &&value)
Definition ElasticGpus.h:57
void SetElasticGpuId(const char *value)
Definition ElasticGpus.h:55
void SetElasticGpuHealth(const ElasticGpuHealth &value)
Definition ElasticGpus.h:96
const ElasticGpuHealth & GetElasticGpuHealth() const
Definition ElasticGpus.h:94
void SetElasticGpuState(ElasticGpuState &&value)
void SetAvailabilityZone(const char *value)
Definition ElasticGpus.h:70
void SetAvailabilityZone(Aws::String &&value)
Definition ElasticGpus.h:69
bool ElasticGpuIdHasBeenSet() const
Definition ElasticGpus.h:52
ElasticGpus & WithElasticGpuHealth(const ElasticGpuHealth &value)
Definition ElasticGpus.h:98
void SetElasticGpuState(const ElasticGpuState &value)
void SetElasticGpuHealth(ElasticGpuHealth &&value)
Definition ElasticGpus.h:97
ElasticGpus & WithElasticGpuType(Aws::String &&value)
Definition ElasticGpus.h:86
const Aws::String & GetInstanceId() const
ElasticGpus & WithInstanceId(const char *value)
ElasticGpus & WithElasticGpuHealth(ElasticGpuHealth &&value)
Definition ElasticGpus.h:99
void SetElasticGpuId(Aws::String &&value)
Definition ElasticGpus.h:54
AWS_EC2_API ElasticGpus(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AvailabilityZoneHasBeenSet() const
Definition ElasticGpus.h:67
ElasticGpus & AddTags(const Tag &value)
ElasticGpus & WithElasticGpuType(const Aws::String &value)
Definition ElasticGpus.h:85
const Aws::String & GetElasticGpuType() const
Definition ElasticGpus.h:80
ElasticGpus & WithAvailabilityZone(const char *value)
Definition ElasticGpus.h:73
bool ElasticGpuStateHasBeenSet() const
AWS_EC2_API ElasticGpus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAvailabilityZone(const Aws::String &value)
Definition ElasticGpus.h:68
ElasticGpus & WithElasticGpuId(const Aws::String &value)
Definition ElasticGpus.h:56
void SetInstanceId(const char *value)
ElasticGpus & WithTags(Aws::Vector< Tag > &&value)
ElasticGpus & WithAvailabilityZone(const Aws::String &value)
Definition ElasticGpus.h:71
void SetElasticGpuType(const Aws::String &value)
Definition ElasticGpus.h:82
const ElasticGpuState & GetElasticGpuState() const
bool ElasticGpuTypeHasBeenSet() const
Definition ElasticGpus.h:81
ElasticGpus & WithElasticGpuState(const ElasticGpuState &value)
bool ElasticGpuHealthHasBeenSet() const
Definition ElasticGpus.h:95
ElasticGpus & WithElasticGpuId(const char *value)
Definition ElasticGpus.h:58
const Aws::String & GetElasticGpuId() const
Definition ElasticGpus.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream