AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename HostnameT = Aws::String>
51 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet = true; m_hostname = std::forward<HostnameT>(value); }
52 template<typename HostnameT = Aws::String>
53 HostEntry& WithHostname(HostnameT&& value) { SetHostname(std::forward<HostnameT>(value)); return *this;}
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) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
64 template<typename IpAddressT = Aws::String>
65 HostEntry& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
67 private:
68
69 Aws::String m_hostname;
70 bool m_hostnameHasBeenSet = false;
71
72 Aws::String m_ipAddress;
73 bool m_ipAddressHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ECS
78} // namespace Aws
Definition HostEntry.h:36
const Aws::String & GetIpAddress() const
Definition HostEntry.h:60
void SetHostname(HostnameT &&value)
Definition HostEntry.h:51
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
HostEntry & WithHostname(HostnameT &&value)
Definition HostEntry.h:53
HostEntry & WithIpAddress(IpAddressT &&value)
Definition HostEntry.h:65
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:49
bool IpAddressHasBeenSet() const
Definition HostEntry.h:61
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