AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceConnectService.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/TimeoutConfiguration.h>
11#include <aws/ecs/model/ServiceConnectTlsConfiguration.h>
12#include <aws/ecs/model/ServiceConnectClientAlias.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ECS
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_ECS_API ServiceConnectService() = default;
46
47
49
54 inline const Aws::String& GetPortName() const { return m_portName; }
55 inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
56 template<typename PortNameT = Aws::String>
57 void SetPortName(PortNameT&& value) { m_portNameHasBeenSet = true; m_portName = std::forward<PortNameT>(value); }
58 template<typename PortNameT = Aws::String>
59 ServiceConnectService& WithPortName(PortNameT&& value) { SetPortName(std::forward<PortNameT>(value)); return *this;}
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) { m_discoveryNameHasBeenSet = true; m_discoveryName = std::forward<DiscoveryNameT>(value); }
76 template<typename DiscoveryNameT = Aws::String>
77 ServiceConnectService& WithDiscoveryName(DiscoveryNameT&& value) { SetDiscoveryName(std::forward<DiscoveryNameT>(value)); return *this;}
79
81
91 inline const Aws::Vector<ServiceConnectClientAlias>& GetClientAliases() const { return m_clientAliases; }
92 inline bool ClientAliasesHasBeenSet() const { return m_clientAliasesHasBeenSet; }
93 template<typename ClientAliasesT = Aws::Vector<ServiceConnectClientAlias>>
94 void SetClientAliases(ClientAliasesT&& value) { m_clientAliasesHasBeenSet = true; m_clientAliases = std::forward<ClientAliasesT>(value); }
95 template<typename ClientAliasesT = Aws::Vector<ServiceConnectClientAlias>>
96 ServiceConnectService& WithClientAliases(ClientAliasesT&& value) { SetClientAliases(std::forward<ClientAliasesT>(value)); return *this;}
97 template<typename ClientAliasesT = ServiceConnectClientAlias>
98 ServiceConnectService& AddClientAliases(ClientAliasesT&& value) { m_clientAliasesHasBeenSet = true; m_clientAliases.emplace_back(std::forward<ClientAliasesT>(value)); return *this; }
100
102
112 inline int GetIngressPortOverride() const { return m_ingressPortOverride; }
113 inline bool IngressPortOverrideHasBeenSet() const { return m_ingressPortOverrideHasBeenSet; }
114 inline void SetIngressPortOverride(int value) { m_ingressPortOverrideHasBeenSet = true; m_ingressPortOverride = value; }
115 inline ServiceConnectService& WithIngressPortOverride(int value) { SetIngressPortOverride(value); return *this;}
117
119
123 inline const TimeoutConfiguration& GetTimeout() const { return m_timeout; }
124 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
125 template<typename TimeoutT = TimeoutConfiguration>
126 void SetTimeout(TimeoutT&& value) { m_timeoutHasBeenSet = true; m_timeout = std::forward<TimeoutT>(value); }
127 template<typename TimeoutT = TimeoutConfiguration>
128 ServiceConnectService& WithTimeout(TimeoutT&& value) { SetTimeout(std::forward<TimeoutT>(value)); return *this;}
130
132
136 inline const ServiceConnectTlsConfiguration& GetTls() const { return m_tls; }
137 inline bool TlsHasBeenSet() const { return m_tlsHasBeenSet; }
138 template<typename TlsT = ServiceConnectTlsConfiguration>
139 void SetTls(TlsT&& value) { m_tlsHasBeenSet = true; m_tls = std::forward<TlsT>(value); }
140 template<typename TlsT = ServiceConnectTlsConfiguration>
141 ServiceConnectService& WithTls(TlsT&& value) { SetTls(std::forward<TlsT>(value)); return *this;}
143 private:
144
145 Aws::String m_portName;
146 bool m_portNameHasBeenSet = false;
147
148 Aws::String m_discoveryName;
149 bool m_discoveryNameHasBeenSet = false;
150
152 bool m_clientAliasesHasBeenSet = false;
153
154 int m_ingressPortOverride{0};
155 bool m_ingressPortOverrideHasBeenSet = false;
156
157 TimeoutConfiguration m_timeout;
158 bool m_timeoutHasBeenSet = false;
159
160 ServiceConnectTlsConfiguration m_tls;
161 bool m_tlsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace ECS
166} // 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