AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ServiceConnectClientAlias.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/ServiceConnectTestTrafficRules.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
39 public:
40 AWS_ECS_API ServiceConnectClientAlias() = default;
44
46
54 inline int GetPort() const { return m_port; }
55 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
56 inline void SetPort(int value) {
57 m_portHasBeenSet = true;
58 m_port = value;
59 }
61 SetPort(value);
62 return *this;
63 }
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) {
88 m_dnsNameHasBeenSet = true;
89 m_dnsName = std::forward<DnsNameT>(value);
90 }
91 template <typename DnsNameT = Aws::String>
93 SetDnsName(std::forward<DnsNameT>(value));
94 return *this;
95 }
97
99
105 inline const ServiceConnectTestTrafficRules& GetTestTrafficRules() const { return m_testTrafficRules; }
106 inline bool TestTrafficRulesHasBeenSet() const { return m_testTrafficRulesHasBeenSet; }
107 template <typename TestTrafficRulesT = ServiceConnectTestTrafficRules>
108 void SetTestTrafficRules(TestTrafficRulesT&& value) {
109 m_testTrafficRulesHasBeenSet = true;
110 m_testTrafficRules = std::forward<TestTrafficRulesT>(value);
111 }
112 template <typename TestTrafficRulesT = ServiceConnectTestTrafficRules>
114 SetTestTrafficRules(std::forward<TestTrafficRulesT>(value));
115 return *this;
116 }
118 private:
119 int m_port{0};
120
121 Aws::String m_dnsName;
122
123 ServiceConnectTestTrafficRules m_testTrafficRules;
124 bool m_portHasBeenSet = false;
125 bool m_dnsNameHasBeenSet = false;
126 bool m_testTrafficRulesHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace ECS
131} // 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