AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ServiceConnectService.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/ServiceConnectClientAlias.h>
11#include <aws/ecs/model/ServiceConnectTlsConfiguration.h>
12#include <aws/ecs/model/TimeoutConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS {
24namespace Model {
25
36 public:
37 AWS_ECS_API ServiceConnectService() = default;
41
43
48 inline const Aws::String& GetPortName() const { return m_portName; }
49 inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
50 template <typename PortNameT = Aws::String>
51 void SetPortName(PortNameT&& value) {
52 m_portNameHasBeenSet = true;
53 m_portName = std::forward<PortNameT>(value);
54 }
55 template <typename PortNameT = Aws::String>
56 ServiceConnectService& WithPortName(PortNameT&& value) {
57 SetPortName(std::forward<PortNameT>(value));
58 return *this;
59 }
61
63
72 inline const Aws::String& GetDiscoveryName() const { return m_discoveryName; }
73 inline bool DiscoveryNameHasBeenSet() const { return m_discoveryNameHasBeenSet; }
74 template <typename DiscoveryNameT = Aws::String>
75 void SetDiscoveryName(DiscoveryNameT&& value) {
76 m_discoveryNameHasBeenSet = true;
77 m_discoveryName = std::forward<DiscoveryNameT>(value);
78 }
79 template <typename DiscoveryNameT = Aws::String>
80 ServiceConnectService& WithDiscoveryName(DiscoveryNameT&& value) {
81 SetDiscoveryName(std::forward<DiscoveryNameT>(value));
82 return *this;
83 }
85
87
97 inline const Aws::Vector<ServiceConnectClientAlias>& GetClientAliases() const { return m_clientAliases; }
98 inline bool ClientAliasesHasBeenSet() const { return m_clientAliasesHasBeenSet; }
99 template <typename ClientAliasesT = Aws::Vector<ServiceConnectClientAlias>>
100 void SetClientAliases(ClientAliasesT&& value) {
101 m_clientAliasesHasBeenSet = true;
102 m_clientAliases = std::forward<ClientAliasesT>(value);
103 }
104 template <typename ClientAliasesT = Aws::Vector<ServiceConnectClientAlias>>
105 ServiceConnectService& WithClientAliases(ClientAliasesT&& value) {
106 SetClientAliases(std::forward<ClientAliasesT>(value));
107 return *this;
108 }
109 template <typename ClientAliasesT = ServiceConnectClientAlias>
110 ServiceConnectService& AddClientAliases(ClientAliasesT&& value) {
111 m_clientAliasesHasBeenSet = true;
112 m_clientAliases.emplace_back(std::forward<ClientAliasesT>(value));
113 return *this;
114 }
116
118
128 inline int GetIngressPortOverride() const { return m_ingressPortOverride; }
129 inline bool IngressPortOverrideHasBeenSet() const { return m_ingressPortOverrideHasBeenSet; }
130 inline void SetIngressPortOverride(int value) {
131 m_ingressPortOverrideHasBeenSet = true;
132 m_ingressPortOverride = value;
133 }
136 return *this;
137 }
139
141
145 inline const TimeoutConfiguration& GetTimeout() const { return m_timeout; }
146 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
147 template <typename TimeoutT = TimeoutConfiguration>
148 void SetTimeout(TimeoutT&& value) {
149 m_timeoutHasBeenSet = true;
150 m_timeout = std::forward<TimeoutT>(value);
151 }
152 template <typename TimeoutT = TimeoutConfiguration>
154 SetTimeout(std::forward<TimeoutT>(value));
155 return *this;
156 }
158
160
164 inline const ServiceConnectTlsConfiguration& GetTls() const { return m_tls; }
165 inline bool TlsHasBeenSet() const { return m_tlsHasBeenSet; }
166 template <typename TlsT = ServiceConnectTlsConfiguration>
167 void SetTls(TlsT&& value) {
168 m_tlsHasBeenSet = true;
169 m_tls = std::forward<TlsT>(value);
170 }
171 template <typename TlsT = ServiceConnectTlsConfiguration>
173 SetTls(std::forward<TlsT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_portName;
179
180 Aws::String m_discoveryName;
181
183
184 int m_ingressPortOverride{0};
185
186 TimeoutConfiguration m_timeout;
187
188 ServiceConnectTlsConfiguration m_tls;
189 bool m_portNameHasBeenSet = false;
190 bool m_discoveryNameHasBeenSet = false;
191 bool m_clientAliasesHasBeenSet = false;
192 bool m_ingressPortOverrideHasBeenSet = false;
193 bool m_timeoutHasBeenSet = false;
194 bool m_tlsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace ECS
199} // namespace Aws
void SetDiscoveryName(DiscoveryNameT &&value)
AWS_ECS_API ServiceConnectService & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceConnectService & WithPortName(PortNameT &&value)
const Aws::Vector< ServiceConnectClientAlias > & GetClientAliases() const
const TimeoutConfiguration & GetTimeout() const
ServiceConnectService & WithIngressPortOverride(int value)
const ServiceConnectTlsConfiguration & GetTls() const
const Aws::String & GetDiscoveryName() const
ServiceConnectService & WithTimeout(TimeoutT &&value)
ServiceConnectService & WithDiscoveryName(DiscoveryNameT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ServiceConnectService()=default
ServiceConnectService & AddClientAliases(ClientAliasesT &&value)
void SetClientAliases(ClientAliasesT &&value)
ServiceConnectService & WithTls(TlsT &&value)
ServiceConnectService & WithClientAliases(ClientAliasesT &&value)
AWS_ECS_API ServiceConnectService(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue