AWS SDK for C++  1.9.74
AWS SDK for C++
ActiveInstance.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
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 Aws::String& GetInstanceId() const{ return m_instanceId; }
47 
51  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
52 
56  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
57 
61  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
62 
66  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
67 
71  inline ActiveInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
72 
76  inline ActiveInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
77 
81  inline ActiveInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
82 
83 
87  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
88 
92  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
93 
97  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
98 
102  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
103 
107  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
108 
112  inline ActiveInstance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
113 
117  inline ActiveInstance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
118 
122  inline ActiveInstance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
123 
124 
128  inline const Aws::String& GetSpotInstanceRequestId() const{ return m_spotInstanceRequestId; }
129 
133  inline bool SpotInstanceRequestIdHasBeenSet() const { return m_spotInstanceRequestIdHasBeenSet; }
134 
138  inline void SetSpotInstanceRequestId(const Aws::String& value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId = value; }
139 
143  inline void SetSpotInstanceRequestId(Aws::String&& value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId = std::move(value); }
144 
148  inline void SetSpotInstanceRequestId(const char* value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId.assign(value); }
149 
153  inline ActiveInstance& WithSpotInstanceRequestId(const Aws::String& value) { SetSpotInstanceRequestId(value); return *this;}
154 
158  inline ActiveInstance& WithSpotInstanceRequestId(Aws::String&& value) { SetSpotInstanceRequestId(std::move(value)); return *this;}
159 
163  inline ActiveInstance& WithSpotInstanceRequestId(const char* value) { SetSpotInstanceRequestId(value); return *this;}
164 
165 
172  inline const InstanceHealthStatus& GetInstanceHealth() const{ return m_instanceHealth; }
173 
180  inline bool InstanceHealthHasBeenSet() const { return m_instanceHealthHasBeenSet; }
181 
188  inline void SetInstanceHealth(const InstanceHealthStatus& value) { m_instanceHealthHasBeenSet = true; m_instanceHealth = value; }
189 
196  inline void SetInstanceHealth(InstanceHealthStatus&& value) { m_instanceHealthHasBeenSet = true; m_instanceHealth = std::move(value); }
197 
204  inline ActiveInstance& WithInstanceHealth(const InstanceHealthStatus& value) { SetInstanceHealth(value); return *this;}
205 
212  inline ActiveInstance& WithInstanceHealth(InstanceHealthStatus&& value) { SetInstanceHealth(std::move(value)); return *this;}
213 
214  private:
215 
216  Aws::String m_instanceId;
217  bool m_instanceIdHasBeenSet;
218 
219  Aws::String m_instanceType;
220  bool m_instanceTypeHasBeenSet;
221 
222  Aws::String m_spotInstanceRequestId;
223  bool m_spotInstanceRequestIdHasBeenSet;
224 
225  InstanceHealthStatus m_instanceHealth;
226  bool m_instanceHealthHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace EC2
231 } // namespace Aws
Aws::EC2::Model::ActiveInstance::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ActiveInstance.h:61
Aws::EC2::Model::ActiveInstance::SetSpotInstanceRequestId
void SetSpotInstanceRequestId(Aws::String &&value)
Definition: ActiveInstance.h:143
Aws::EC2::Model::ActiveInstance::SpotInstanceRequestIdHasBeenSet
bool SpotInstanceRequestIdHasBeenSet() const
Definition: ActiveInstance.h:133
Aws::EC2::Model::ActiveInstance::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ActiveInstance.h:51
Aws::EC2::Model::ActiveInstance::WithInstanceId
ActiveInstance & WithInstanceId(const Aws::String &value)
Definition: ActiveInstance.h:71
Aws::EC2::Model::ActiveInstance::SetInstanceType
void SetInstanceType(const char *value)
Definition: ActiveInstance.h:107
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::ActiveInstance::WithSpotInstanceRequestId
ActiveInstance & WithSpotInstanceRequestId(const Aws::String &value)
Definition: ActiveInstance.h:153
Aws::EC2::Model::ActiveInstance::ActiveInstance
ActiveInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ActiveInstance::InstanceHealthHasBeenSet
bool InstanceHealthHasBeenSet() const
Definition: ActiveInstance.h:180
Aws::EC2::Model::ActiveInstance::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: ActiveInstance.h:87
Aws::EC2::Model::ActiveInstance::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: ActiveInstance.h:92
Aws::EC2::Model::ActiveInstance::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: ActiveInstance.h:97
Aws::EC2::Model::InstanceHealthStatus
InstanceHealthStatus
Definition: InstanceHealthStatus.h:17
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ActiveInstance::SetInstanceId
void SetInstanceId(const char *value)
Definition: ActiveInstance.h:66
Aws::EC2::Model::ActiveInstance::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ActiveInstance::WithInstanceHealth
ActiveInstance & WithInstanceHealth(InstanceHealthStatus &&value)
Definition: ActiveInstance.h:212
Aws::EC2::Model::ActiveInstance::WithInstanceType
ActiveInstance & WithInstanceType(const char *value)
Definition: ActiveInstance.h:122
Aws::EC2::Model::ActiveInstance::GetInstanceHealth
const InstanceHealthStatus & GetInstanceHealth() const
Definition: ActiveInstance.h:172
AWSString.h
Aws::EC2::Model::ActiveInstance
Definition: ActiveInstance.h:33
Aws::EC2::Model::ActiveInstance::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: ActiveInstance.h:102
Aws::EC2::Model::ActiveInstance::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ActiveInstance::ActiveInstance
ActiveInstance()
Aws::EC2::Model::ActiveInstance::WithInstanceType
ActiveInstance & WithInstanceType(Aws::String &&value)
Definition: ActiveInstance.h:117
Aws::EC2::Model::ActiveInstance::WithSpotInstanceRequestId
ActiveInstance & WithSpotInstanceRequestId(const char *value)
Definition: ActiveInstance.h:163
Aws::EC2::Model::ActiveInstance::WithSpotInstanceRequestId
ActiveInstance & WithSpotInstanceRequestId(Aws::String &&value)
Definition: ActiveInstance.h:158
InstanceHealthStatus.h
Aws::EC2::Model::ActiveInstance::SetSpotInstanceRequestId
void SetSpotInstanceRequestId(const char *value)
Definition: ActiveInstance.h:148
Aws::EC2::Model::ActiveInstance::GetSpotInstanceRequestId
const Aws::String & GetSpotInstanceRequestId() const
Definition: ActiveInstance.h:128
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ActiveInstance::WithInstanceHealth
ActiveInstance & WithInstanceHealth(const InstanceHealthStatus &value)
Definition: ActiveInstance.h:204
Aws::EC2::Model::ActiveInstance::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ActiveInstance.h:46
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::ActiveInstance::SetSpotInstanceRequestId
void SetSpotInstanceRequestId(const Aws::String &value)
Definition: ActiveInstance.h:138
Aws::EC2::Model::ActiveInstance::WithInstanceId
ActiveInstance & WithInstanceId(const char *value)
Definition: ActiveInstance.h:81
Aws::EC2::Model::ActiveInstance::SetInstanceHealth
void SetInstanceHealth(InstanceHealthStatus &&value)
Definition: ActiveInstance.h:196
Aws::EC2::Model::ActiveInstance::operator=
ActiveInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ActiveInstance::SetInstanceHealth
void SetInstanceHealth(const InstanceHealthStatus &value)
Definition: ActiveInstance.h:188
Aws::EC2::Model::ActiveInstance::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ActiveInstance.h:56
Aws::EC2::Model::ActiveInstance::WithInstanceId
ActiveInstance & WithInstanceId(Aws::String &&value)
Definition: ActiveInstance.h:76
EC2_EXPORTS.h
Aws::EC2::Model::ActiveInstance::WithInstanceType
ActiveInstance & WithInstanceType(const Aws::String &value)
Definition: ActiveInstance.h:112