AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
HostEntry.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
34 {
35 public:
40
41
45 inline const Aws::String& GetHostname() const{ return m_hostname; }
46
50 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
51
55 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
56
60 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
61
65 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
66
70 inline HostEntry& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
71
75 inline HostEntry& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
76
80 inline HostEntry& WithHostname(const char* value) { SetHostname(value); return *this;}
81
82
86 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
87
91 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
92
96 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
97
101 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
102
106 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
107
111 inline HostEntry& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
112
116 inline HostEntry& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
117
121 inline HostEntry& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
122
123 private:
124
125 Aws::String m_hostname;
126 bool m_hostnameHasBeenSet = false;
127
128 Aws::String m_ipAddress;
129 bool m_ipAddressHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace ECS
134} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Definition: HostEntry.h:34
const Aws::String & GetIpAddress() const
Definition: HostEntry.h:86
void SetIpAddress(const char *value)
Definition: HostEntry.h:106
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
HostEntry & WithIpAddress(const char *value)
Definition: HostEntry.h:121
HostEntry & WithHostname(const char *value)
Definition: HostEntry.h:80
void SetIpAddress(Aws::String &&value)
Definition: HostEntry.h:101
HostEntry & WithIpAddress(Aws::String &&value)
Definition: HostEntry.h:116
HostEntry & WithIpAddress(const Aws::String &value)
Definition: HostEntry.h:111
void SetHostname(const Aws::String &value)
Definition: HostEntry.h:55
AWS_ECS_API HostEntry()
void SetIpAddress(const Aws::String &value)
Definition: HostEntry.h:96
AWS_ECS_API HostEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API HostEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHostname(Aws::String &&value)
Definition: HostEntry.h:60
bool HostnameHasBeenSet() const
Definition: HostEntry.h:50
HostEntry & WithHostname(Aws::String &&value)
Definition: HostEntry.h:75
bool IpAddressHasBeenSet() const
Definition: HostEntry.h:91
void SetHostname(const char *value)
Definition: HostEntry.h:65
HostEntry & WithHostname(const Aws::String &value)
Definition: HostEntry.h:70
const Aws::String & GetHostname() const
Definition: HostEntry.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String