AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
HostEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
31class HostEntry {
32 public:
33 AWS_ECS_API HostEntry() = default;
34 AWS_ECS_API HostEntry(Aws::Utils::Json::JsonView jsonValue);
37
39
42 inline const Aws::String& GetHostname() const { return m_hostname; }
43 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
44 template <typename HostnameT = Aws::String>
45 void SetHostname(HostnameT&& value) {
46 m_hostnameHasBeenSet = true;
47 m_hostname = std::forward<HostnameT>(value);
48 }
49 template <typename HostnameT = Aws::String>
50 HostEntry& WithHostname(HostnameT&& value) {
51 SetHostname(std::forward<HostnameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
61 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
62 template <typename IpAddressT = Aws::String>
63 void SetIpAddress(IpAddressT&& value) {
64 m_ipAddressHasBeenSet = true;
65 m_ipAddress = std::forward<IpAddressT>(value);
66 }
67 template <typename IpAddressT = Aws::String>
68 HostEntry& WithIpAddress(IpAddressT&& value) {
69 SetIpAddress(std::forward<IpAddressT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_hostname;
75
76 Aws::String m_ipAddress;
77 bool m_hostnameHasBeenSet = false;
78 bool m_ipAddressHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace ECS
83} // namespace Aws
Definition HostEntry.h:31
const Aws::String & GetIpAddress() const
Definition HostEntry.h:60
void SetHostname(HostnameT &&value)
Definition HostEntry.h:45
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
HostEntry & WithHostname(HostnameT &&value)
Definition HostEntry.h:50
HostEntry & WithIpAddress(IpAddressT &&value)
Definition HostEntry.h:68
void SetIpAddress(IpAddressT &&value)
Definition HostEntry.h:63
AWS_ECS_API HostEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API HostEntry()=default
AWS_ECS_API HostEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool HostnameHasBeenSet() const
Definition HostEntry.h:43
bool IpAddressHasBeenSet() const
Definition HostEntry.h:61
const Aws::String & GetHostname() const
Definition HostEntry.h:42
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue