AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HostEntry.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
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
36 {
37 public:
38 AWS_ECS_API HostEntry();
39 AWS_ECS_API HostEntry(Aws::Utils::Json::JsonView jsonValue);
42
43
45
48 inline const Aws::String& GetHostname() const{ return m_hostname; }
49 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
50 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
51 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
52 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
53 inline HostEntry& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
54 inline HostEntry& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
55 inline HostEntry& WithHostname(const char* value) { SetHostname(value); return *this;}
57
59
62 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
63 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
64 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
65 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
66 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
67 inline HostEntry& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
68 inline HostEntry& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
69 inline HostEntry& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
71 private:
72
73 Aws::String m_hostname;
74 bool m_hostnameHasBeenSet = false;
75
76 Aws::String m_ipAddress;
77 bool m_ipAddressHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace ECS
82} // namespace Aws
Definition HostEntry.h:36
const Aws::String & GetIpAddress() const
Definition HostEntry.h:62
void SetIpAddress(const char *value)
Definition HostEntry.h:66
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
HostEntry & WithIpAddress(const char *value)
Definition HostEntry.h:69
HostEntry & WithHostname(const char *value)
Definition HostEntry.h:55
void SetIpAddress(Aws::String &&value)
Definition HostEntry.h:65
HostEntry & WithIpAddress(Aws::String &&value)
Definition HostEntry.h:68
HostEntry & WithIpAddress(const Aws::String &value)
Definition HostEntry.h:67
void SetHostname(const Aws::String &value)
Definition HostEntry.h:50
AWS_ECS_API HostEntry()
void SetIpAddress(const Aws::String &value)
Definition HostEntry.h:64
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:51
bool HostnameHasBeenSet() const
Definition HostEntry.h:49
HostEntry & WithHostname(Aws::String &&value)
Definition HostEntry.h:54
bool IpAddressHasBeenSet() const
Definition HostEntry.h:63
void SetHostname(const char *value)
Definition HostEntry.h:52
HostEntry & WithHostname(const Aws::String &value)
Definition HostEntry.h:53
const Aws::String & GetHostname() const
Definition HostEntry.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue