AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ServiceConnectClientAlias.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
42 {
43 public:
48
49
58 inline int GetPort() const{ return m_port; }
59
68 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
69
78 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
79
88 inline ServiceConnectClientAlias& WithPort(int value) { SetPort(value); return *this;}
89
90
108 inline const Aws::String& GetDnsName() const{ return m_dnsName; }
109
127 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
128
146 inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
147
165 inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
166
184 inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
185
203 inline ServiceConnectClientAlias& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
204
222 inline ServiceConnectClientAlias& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
223
241 inline ServiceConnectClientAlias& WithDnsName(const char* value) { SetDnsName(value); return *this;}
242
243 private:
244
245 int m_port;
246 bool m_portHasBeenSet = false;
247
248 Aws::String m_dnsName;
249 bool m_dnsNameHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace ECS
254} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
AWS_ECS_API ServiceConnectClientAlias & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceConnectClientAlias & WithDnsName(const Aws::String &value)
ServiceConnectClientAlias & WithDnsName(Aws::String &&value)
ServiceConnectClientAlias & WithPort(int value)
AWS_ECS_API ServiceConnectClientAlias(Aws::Utils::Json::JsonView jsonValue)
ServiceConnectClientAlias & WithDnsName(const char *value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String