AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceConnectClientAlias.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/ServiceConnectTestTrafficRules.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_ECS_API ServiceConnectClientAlias() = default;
49
50
52
60 inline int GetPort() const { return m_port; }
61 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
62 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
63 inline ServiceConnectClientAlias& WithPort(int value) { SetPort(value); return *this;}
65
67
84 inline const Aws::String& GetDnsName() const { return m_dnsName; }
85 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
86 template<typename DnsNameT = Aws::String>
87 void SetDnsName(DnsNameT&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::forward<DnsNameT>(value); }
88 template<typename DnsNameT = Aws::String>
89 ServiceConnectClientAlias& WithDnsName(DnsNameT&& value) { SetDnsName(std::forward<DnsNameT>(value)); return *this;}
91
93
99 inline const ServiceConnectTestTrafficRules& GetTestTrafficRules() const { return m_testTrafficRules; }
100 inline bool TestTrafficRulesHasBeenSet() const { return m_testTrafficRulesHasBeenSet; }
101 template<typename TestTrafficRulesT = ServiceConnectTestTrafficRules>
102 void SetTestTrafficRules(TestTrafficRulesT&& value) { m_testTrafficRulesHasBeenSet = true; m_testTrafficRules = std::forward<TestTrafficRulesT>(value); }
103 template<typename TestTrafficRulesT = ServiceConnectTestTrafficRules>
104 ServiceConnectClientAlias& WithTestTrafficRules(TestTrafficRulesT&& value) { SetTestTrafficRules(std::forward<TestTrafficRulesT>(value)); return *this;}
106 private:
107
108 int m_port{0};
109 bool m_portHasBeenSet = false;
110
111 Aws::String m_dnsName;
112 bool m_dnsNameHasBeenSet = false;
113
114 ServiceConnectTestTrafficRules m_testTrafficRules;
115 bool m_testTrafficRulesHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace ECS
120} // namespace Aws
AWS_ECS_API ServiceConnectClientAlias()=default
ServiceConnectClientAlias & WithDnsName(DnsNameT &&value)
ServiceConnectClientAlias & WithTestTrafficRules(TestTrafficRulesT &&value)
AWS_ECS_API ServiceConnectClientAlias & operator=(Aws::Utils::Json::JsonView jsonValue)
const ServiceConnectTestTrafficRules & GetTestTrafficRules() const
ServiceConnectClientAlias & WithPort(int value)
AWS_ECS_API ServiceConnectClientAlias(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue