AWS SDK for C++  1.9.15
AWS SDK for C++
InstanceEntry.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
50  inline const Aws::String& GetSourceName() const{ return m_sourceName; }
51 
59  inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
60 
68  inline void SetSourceName(const Aws::String& value) { m_sourceNameHasBeenSet = true; m_sourceName = value; }
69 
77  inline void SetSourceName(Aws::String&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::move(value); }
78 
86  inline void SetSourceName(const char* value) { m_sourceNameHasBeenSet = true; m_sourceName.assign(value); }
87 
95  inline InstanceEntry& WithSourceName(const Aws::String& value) { SetSourceName(value); return *this;}
96 
104  inline InstanceEntry& WithSourceName(Aws::String&& value) { SetSourceName(std::move(value)); return *this;}
105 
113  inline InstanceEntry& WithSourceName(const char* value) { SetSourceName(value); return *this;}
114 
115 
120  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
121 
126  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
127 
132  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
133 
138  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
139 
144  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
145 
150  inline InstanceEntry& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
151 
156  inline InstanceEntry& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
157 
162  inline InstanceEntry& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
163 
164 
188  inline const PortInfoSourceType& GetPortInfoSource() const{ return m_portInfoSource; }
189 
213  inline bool PortInfoSourceHasBeenSet() const { return m_portInfoSourceHasBeenSet; }
214 
238  inline void SetPortInfoSource(const PortInfoSourceType& value) { m_portInfoSourceHasBeenSet = true; m_portInfoSource = value; }
239 
263  inline void SetPortInfoSource(PortInfoSourceType&& value) { m_portInfoSourceHasBeenSet = true; m_portInfoSource = std::move(value); }
264 
288  inline InstanceEntry& WithPortInfoSource(const PortInfoSourceType& value) { SetPortInfoSource(value); return *this;}
289 
313  inline InstanceEntry& WithPortInfoSource(PortInfoSourceType&& value) { SetPortInfoSource(std::move(value)); return *this;}
314 
315 
324  inline const Aws::String& GetUserData() const{ return m_userData; }
325 
334  inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
335 
344  inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; }
345 
354  inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); }
355 
364  inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); }
365 
374  inline InstanceEntry& WithUserData(const Aws::String& value) { SetUserData(value); return *this;}
375 
384  inline InstanceEntry& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;}
385 
394  inline InstanceEntry& WithUserData(const char* value) { SetUserData(value); return *this;}
395 
396 
400  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
401 
405  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
406 
410  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
411 
415  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
416 
420  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
421 
425  inline InstanceEntry& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
426 
430  inline InstanceEntry& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
431 
435  inline InstanceEntry& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
436 
437  private:
438 
439  Aws::String m_sourceName;
440  bool m_sourceNameHasBeenSet;
441 
442  Aws::String m_instanceType;
443  bool m_instanceTypeHasBeenSet;
444 
445  PortInfoSourceType m_portInfoSource;
446  bool m_portInfoSourceHasBeenSet;
447 
448  Aws::String m_userData;
449  bool m_userDataHasBeenSet;
450 
451  Aws::String m_availabilityZone;
452  bool m_availabilityZoneHasBeenSet;
453  };
454 
455 } // namespace Model
456 } // namespace Lightsail
457 } // namespace Aws
Aws::Lightsail::Model::InstanceEntry::SetSourceName
void SetSourceName(const char *value)
Definition: InstanceEntry.h:86
Aws::Lightsail::Model::InstanceEntry::UserDataHasBeenSet
bool UserDataHasBeenSet() const
Definition: InstanceEntry.h:334
Aws::Lightsail::Model::InstanceEntry::WithPortInfoSource
InstanceEntry & WithPortInfoSource(PortInfoSourceType &&value)
Definition: InstanceEntry.h:313
Aws::Lightsail::Model::PortInfoSourceType
PortInfoSourceType
Definition: PortInfoSourceType.h:17
Aws::Lightsail::Model::InstanceEntry::WithInstanceType
InstanceEntry & WithInstanceType(const Aws::String &value)
Definition: InstanceEntry.h:150
Aws::Lightsail::Model::InstanceEntry::GetPortInfoSource
const PortInfoSourceType & GetPortInfoSource() const
Definition: InstanceEntry.h:188
Aws::Lightsail::Model::InstanceEntry::SetInstanceType
void SetInstanceType(const char *value)
Definition: InstanceEntry.h:144
Aws::Lightsail::Model::InstanceEntry::SetPortInfoSource
void SetPortInfoSource(const PortInfoSourceType &value)
Definition: InstanceEntry.h:238
Aws::Lightsail::Model::InstanceEntry::GetSourceName
const Aws::String & GetSourceName() const
Definition: InstanceEntry.h:50
Aws::Lightsail::Model::InstanceEntry::WithPortInfoSource
InstanceEntry & WithPortInfoSource(const PortInfoSourceType &value)
Definition: InstanceEntry.h:288
Aws::Lightsail::Model::InstanceEntry::WithAvailabilityZone
InstanceEntry & WithAvailabilityZone(const Aws::String &value)
Definition: InstanceEntry.h:425
Aws::Lightsail::Model::InstanceEntry::WithUserData
InstanceEntry & WithUserData(const Aws::String &value)
Definition: InstanceEntry.h:374
Aws::Lightsail::Model::InstanceEntry::GetUserData
const Aws::String & GetUserData() const
Definition: InstanceEntry.h:324
Aws::Lightsail::Model::InstanceEntry::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: InstanceEntry.h:410
Aws::Lightsail::Model::InstanceEntry::PortInfoSourceHasBeenSet
bool PortInfoSourceHasBeenSet() const
Definition: InstanceEntry.h:213
Aws::Lightsail::Model::InstanceEntry::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: InstanceEntry.h:126
Aws::Lightsail::Model::InstanceEntry::SourceNameHasBeenSet
bool SourceNameHasBeenSet() const
Definition: InstanceEntry.h:59
Aws::Lightsail::Model::InstanceEntry::WithUserData
InstanceEntry & WithUserData(Aws::String &&value)
Definition: InstanceEntry.h:384
Aws::Lightsail::Model::InstanceEntry::WithSourceName
InstanceEntry & WithSourceName(const char *value)
Definition: InstanceEntry.h:113
Aws::Lightsail::Model::InstanceEntry::WithSourceName
InstanceEntry & WithSourceName(const Aws::String &value)
Definition: InstanceEntry.h:95
Aws::Lightsail::Model::InstanceEntry::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: InstanceEntry.h:400
Aws::Lightsail::Model::InstanceEntry::SetUserData
void SetUserData(Aws::String &&value)
Definition: InstanceEntry.h:354
Aws::Lightsail::Model::InstanceEntry::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: InstanceEntry.h:405
Aws::Lightsail::Model::InstanceEntry::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: InstanceEntry.h:420
Aws::Lightsail::Model::InstanceEntry::WithAvailabilityZone
InstanceEntry & WithAvailabilityZone(const char *value)
Definition: InstanceEntry.h:435
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Lightsail::Model::InstanceEntry::SetUserData
void SetUserData(const char *value)
Definition: InstanceEntry.h:364
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::InstanceEntry::SetSourceName
void SetSourceName(Aws::String &&value)
Definition: InstanceEntry.h:77
Lightsail_EXPORTS.h
PortInfoSourceType.h
Aws::Lightsail::Model::InstanceEntry::InstanceEntry
InstanceEntry(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::InstanceEntry::SetPortInfoSource
void SetPortInfoSource(PortInfoSourceType &&value)
Definition: InstanceEntry.h:263
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::InstanceEntry::WithAvailabilityZone
InstanceEntry & WithAvailabilityZone(Aws::String &&value)
Definition: InstanceEntry.h:430
Aws::Lightsail::Model::InstanceEntry::WithInstanceType
InstanceEntry & WithInstanceType(const char *value)
Definition: InstanceEntry.h:162
Aws::Lightsail::Model::InstanceEntry::WithSourceName
InstanceEntry & WithSourceName(Aws::String &&value)
Definition: InstanceEntry.h:104
Aws::Lightsail::Model::InstanceEntry::WithUserData
InstanceEntry & WithUserData(const char *value)
Definition: InstanceEntry.h:394
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::InstanceEntry::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: InstanceEntry.h:415
Aws::Lightsail::Model::InstanceEntry::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: InstanceEntry.h:120
Aws::Lightsail::Model::InstanceEntry::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: InstanceEntry.h:138
Aws::Lightsail::Model::InstanceEntry::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: InstanceEntry.h:132
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::InstanceEntry::WithInstanceType
InstanceEntry & WithInstanceType(Aws::String &&value)
Definition: InstanceEntry.h:156
Aws::Lightsail::Model::InstanceEntry
Definition: InstanceEntry.h:35
Aws::Lightsail::Model::InstanceEntry::operator=
InstanceEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::InstanceEntry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::InstanceEntry::InstanceEntry
InstanceEntry()
Aws::Lightsail::Model::InstanceEntry::SetUserData
void SetUserData(const Aws::String &value)
Definition: InstanceEntry.h:344
Aws::Lightsail::Model::InstanceEntry::SetSourceName
void SetSourceName(const Aws::String &value)
Definition: InstanceEntry.h:68