AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ActiveInstance.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/InstanceHealthStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API ActiveInstance();
36 AWS_EC2_API ActiveInstance(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
48 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
50 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
51 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
52 inline ActiveInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
53 inline ActiveInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
54 inline ActiveInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
56
58
61 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
62 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
63 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
64 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
65 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
66 inline ActiveInstance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
67 inline ActiveInstance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
68 inline ActiveInstance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
70
72
75 inline const Aws::String& GetSpotInstanceRequestId() const{ return m_spotInstanceRequestId; }
76 inline bool SpotInstanceRequestIdHasBeenSet() const { return m_spotInstanceRequestIdHasBeenSet; }
77 inline void SetSpotInstanceRequestId(const Aws::String& value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId = value; }
78 inline void SetSpotInstanceRequestId(Aws::String&& value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId = std::move(value); }
79 inline void SetSpotInstanceRequestId(const char* value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId.assign(value); }
81 inline ActiveInstance& WithSpotInstanceRequestId(Aws::String&& value) { SetSpotInstanceRequestId(std::move(value)); return *this;}
82 inline ActiveInstance& WithSpotInstanceRequestId(const char* value) { SetSpotInstanceRequestId(value); return *this;}
84
86
92 inline const InstanceHealthStatus& GetInstanceHealth() const{ return m_instanceHealth; }
93 inline bool InstanceHealthHasBeenSet() const { return m_instanceHealthHasBeenSet; }
94 inline void SetInstanceHealth(const InstanceHealthStatus& value) { m_instanceHealthHasBeenSet = true; m_instanceHealth = value; }
95 inline void SetInstanceHealth(InstanceHealthStatus&& value) { m_instanceHealthHasBeenSet = true; m_instanceHealth = std::move(value); }
96 inline ActiveInstance& WithInstanceHealth(const InstanceHealthStatus& value) { SetInstanceHealth(value); return *this;}
97 inline ActiveInstance& WithInstanceHealth(InstanceHealthStatus&& value) { SetInstanceHealth(std::move(value)); return *this;}
99 private:
100
101 Aws::String m_instanceId;
102 bool m_instanceIdHasBeenSet = false;
103
104 Aws::String m_instanceType;
105 bool m_instanceTypeHasBeenSet = false;
106
107 Aws::String m_spotInstanceRequestId;
108 bool m_spotInstanceRequestIdHasBeenSet = false;
109
110 InstanceHealthStatus m_instanceHealth;
111 bool m_instanceHealthHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
ActiveInstance & WithInstanceType(const Aws::String &value)
ActiveInstance & WithInstanceId(Aws::String &&value)
const Aws::String & GetInstanceId() const
void SetSpotInstanceRequestId(const Aws::String &value)
void SetInstanceId(const char *value)
AWS_EC2_API ActiveInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceHealth(const InstanceHealthStatus &value)
const InstanceHealthStatus & GetInstanceHealth() const
ActiveInstance & WithInstanceId(const char *value)
void SetInstanceId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSpotInstanceRequestId() const
ActiveInstance & WithSpotInstanceRequestId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ActiveInstance & WithInstanceHealth(const InstanceHealthStatus &value)
ActiveInstance & WithInstanceId(const Aws::String &value)
void SetSpotInstanceRequestId(const char *value)
void SetInstanceType(const Aws::String &value)
void SetInstanceHealth(InstanceHealthStatus &&value)
AWS_EC2_API ActiveInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceType(const char *value)
ActiveInstance & WithInstanceType(const char *value)
void SetInstanceType(Aws::String &&value)
ActiveInstance & WithInstanceHealth(InstanceHealthStatus &&value)
ActiveInstance & WithSpotInstanceRequestId(const char *value)
const Aws::String & GetInstanceType() const
ActiveInstance & WithInstanceType(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
void SetSpotInstanceRequestId(Aws::String &&value)
ActiveInstance & WithSpotInstanceRequestId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream