AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HostInstance.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API HostInstance();
35 AWS_EC2_API HostInstance(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API HostInstance& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
49 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
50 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
51 inline HostInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
52 inline HostInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
53 inline HostInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
55
57
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 HostInstance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
67 inline HostInstance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
68 inline HostInstance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
70
72
75 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
76 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
77 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
78 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
79 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
80 inline HostInstance& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
81 inline HostInstance& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
82 inline HostInstance& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
84 private:
85
86 Aws::String m_instanceId;
87 bool m_instanceIdHasBeenSet = false;
88
89 Aws::String m_instanceType;
90 bool m_instanceTypeHasBeenSet = false;
91
92 Aws::String m_ownerId;
93 bool m_ownerIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace EC2
98} // namespace Aws
void SetInstanceId(const Aws::String &value)
void SetOwnerId(const Aws::String &value)
void SetOwnerId(Aws::String &&value)
HostInstance & WithOwnerId(Aws::String &&value)
HostInstance & WithOwnerId(const Aws::String &value)
HostInstance & WithInstanceId(Aws::String &&value)
void SetInstanceId(Aws::String &&value)
AWS_EC2_API HostInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetInstanceType() const
const Aws::String & GetInstanceId() const
void SetInstanceType(const Aws::String &value)
AWS_EC2_API HostInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOwnerId(const char *value)
HostInstance & WithInstanceId(const char *value)
HostInstance & WithInstanceId(const Aws::String &value)
HostInstance & WithInstanceType(Aws::String &&value)
const Aws::String & GetOwnerId() const
HostInstance & WithInstanceType(const char *value)
void SetInstanceId(const char *value)
void SetInstanceType(Aws::String &&value)
HostInstance & WithOwnerId(const char *value)
void SetInstanceType(const char *value)
HostInstance & WithInstanceType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream