AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceEntry.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/PortInfoSourceType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_LIGHTSAIL_API InstanceEntry();
38 AWS_LIGHTSAIL_API InstanceEntry(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API InstanceEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::String& GetSourceName() const{ return m_sourceName; }
52 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
53 inline void SetSourceName(const Aws::String& value) { m_sourceNameHasBeenSet = true; m_sourceName = value; }
54 inline void SetSourceName(Aws::String&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::move(value); }
55 inline void SetSourceName(const char* value) { m_sourceNameHasBeenSet = true; m_sourceName.assign(value); }
56 inline InstanceEntry& WithSourceName(const Aws::String& value) { SetSourceName(value); return *this;}
57 inline InstanceEntry& WithSourceName(Aws::String&& value) { SetSourceName(std::move(value)); return *this;}
58 inline InstanceEntry& WithSourceName(const char* value) { SetSourceName(value); return *this;}
60
62
66 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
67 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
68 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
69 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
70 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
71 inline InstanceEntry& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
72 inline InstanceEntry& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
73 inline InstanceEntry& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
75
77
100 inline const PortInfoSourceType& GetPortInfoSource() const{ return m_portInfoSource; }
101 inline bool PortInfoSourceHasBeenSet() const { return m_portInfoSourceHasBeenSet; }
102 inline void SetPortInfoSource(const PortInfoSourceType& value) { m_portInfoSourceHasBeenSet = true; m_portInfoSource = value; }
103 inline void SetPortInfoSource(PortInfoSourceType&& value) { m_portInfoSourceHasBeenSet = true; m_portInfoSource = std::move(value); }
104 inline InstanceEntry& WithPortInfoSource(const PortInfoSourceType& value) { SetPortInfoSource(value); return *this;}
105 inline InstanceEntry& WithPortInfoSource(PortInfoSourceType&& value) { SetPortInfoSource(std::move(value)); return *this;}
107
109
117 inline const Aws::String& GetUserData() const{ return m_userData; }
118 inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
119 inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; }
120 inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); }
121 inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); }
122 inline InstanceEntry& WithUserData(const Aws::String& value) { SetUserData(value); return *this;}
123 inline InstanceEntry& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;}
124 inline InstanceEntry& WithUserData(const char* value) { SetUserData(value); return *this;}
126
128
131 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
132 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
133 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
134 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
135 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
136 inline InstanceEntry& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
137 inline InstanceEntry& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
138 inline InstanceEntry& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
140 private:
141
142 Aws::String m_sourceName;
143 bool m_sourceNameHasBeenSet = false;
144
145 Aws::String m_instanceType;
146 bool m_instanceTypeHasBeenSet = false;
147
148 PortInfoSourceType m_portInfoSource;
149 bool m_portInfoSourceHasBeenSet = false;
150
151 Aws::String m_userData;
152 bool m_userDataHasBeenSet = false;
153
154 Aws::String m_availabilityZone;
155 bool m_availabilityZoneHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Lightsail
160} // namespace Aws
bool InstanceTypeHasBeenSet() const
InstanceEntry & WithUserData(Aws::String &&value)
void SetUserData(Aws::String &&value)
bool AvailabilityZoneHasBeenSet() const
AWS_LIGHTSAIL_API InstanceEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PortInfoSourceHasBeenSet() const
const Aws::String & GetInstanceType() const
InstanceEntry & WithAvailabilityZone(Aws::String &&value)
InstanceEntry & WithInstanceType(Aws::String &&value)
const Aws::String & GetAvailabilityZone() const
bool SourceNameHasBeenSet() const
InstanceEntry & WithSourceName(const Aws::String &value)
InstanceEntry & WithAvailabilityZone(const char *value)
void SetPortInfoSource(PortInfoSourceType &&value)
AWS_LIGHTSAIL_API InstanceEntry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceName() const
void SetAvailabilityZone(const char *value)
void SetPortInfoSource(const PortInfoSourceType &value)
const PortInfoSourceType & GetPortInfoSource() const
bool UserDataHasBeenSet() const
void SetAvailabilityZone(Aws::String &&value)
void SetSourceName(const Aws::String &value)
void SetInstanceType(const Aws::String &value)
void SetInstanceType(const char *value)
InstanceEntry & WithAvailabilityZone(const Aws::String &value)
void SetUserData(const Aws::String &value)
void SetInstanceType(Aws::String &&value)
InstanceEntry & WithInstanceType(const Aws::String &value)
InstanceEntry & WithUserData(const Aws::String &value)
AWS_LIGHTSAIL_API InstanceEntry()
const Aws::String & GetUserData() const
void SetUserData(const char *value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceName(const char *value)
void SetAvailabilityZone(const Aws::String &value)
InstanceEntry & WithUserData(const char *value)
InstanceEntry & WithSourceName(const char *value)
InstanceEntry & WithPortInfoSource(const PortInfoSourceType &value)
InstanceEntry & WithInstanceType(const char *value)
InstanceEntry & WithPortInfoSource(PortInfoSourceType &&value)
void SetSourceName(Aws::String &&value)
InstanceEntry & WithSourceName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue