AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
46
47
49
54 inline const Aws::String& GetPortName() const{ return m_portName; }
55 inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
56 inline void SetPortName(const Aws::String& value) { m_portNameHasBeenSet = true; m_portName = value; }
57 inline void SetPortName(Aws::String&& value) { m_portNameHasBeenSet = true; m_portName = std::move(value); }
58 inline void SetPortName(const char* value) { m_portNameHasBeenSet = true; m_portName.assign(value); }
59 inline ServiceConnectService& WithPortName(const Aws::String& value) { SetPortName(value); return *this;}
60 inline ServiceConnectService& WithPortName(Aws::String&& value) { SetPortName(std::move(value)); return *this;}
61 inline ServiceConnectService& WithPortName(const char* value) { SetPortName(value); return *this;}
63
65
74 inline const Aws::String& GetDiscoveryName() const{ return m_discoveryName; }
75 inline bool DiscoveryNameHasBeenSet() const { return m_discoveryNameHasBeenSet; }
76 inline void SetDiscoveryName(const Aws::String& value) { m_discoveryNameHasBeenSet = true; m_discoveryName = value; }
77 inline void SetDiscoveryName(Aws::String&& value) { m_discoveryNameHasBeenSet = true; m_discoveryName = std::move(value); }
78 inline void SetDiscoveryName(const char* value) { m_discoveryNameHasBeenSet = true; m_discoveryName.assign(value); }
79 inline ServiceConnectService& WithDiscoveryName(const Aws::String& value) { SetDiscoveryName(value); return *this;}
80 inline ServiceConnectService& WithDiscoveryName(Aws::String&& value) { SetDiscoveryName(std::move(value)); return *this;}
81 inline ServiceConnectService& WithDiscoveryName(const char* value) { SetDiscoveryName(value); return *this;}
83
85
95 inline const Aws::Vector<ServiceConnectClientAlias>& GetClientAliases() const{ return m_clientAliases; }
96 inline bool ClientAliasesHasBeenSet() const { return m_clientAliasesHasBeenSet; }
97 inline void SetClientAliases(const Aws::Vector<ServiceConnectClientAlias>& value) { m_clientAliasesHasBeenSet = true; m_clientAliases = value; }
98 inline void SetClientAliases(Aws::Vector<ServiceConnectClientAlias>&& value) { m_clientAliasesHasBeenSet = true; m_clientAliases = std::move(value); }
101 inline ServiceConnectService& AddClientAliases(const ServiceConnectClientAlias& value) { m_clientAliasesHasBeenSet = true; m_clientAliases.push_back(value); return *this; }
102 inline ServiceConnectService& AddClientAliases(ServiceConnectClientAlias&& value) { m_clientAliasesHasBeenSet = true; m_clientAliases.push_back(std::move(value)); return *this; }
104
106
116 inline int GetIngressPortOverride() const{ return m_ingressPortOverride; }
117 inline bool IngressPortOverrideHasBeenSet() const { return m_ingressPortOverrideHasBeenSet; }
118 inline void SetIngressPortOverride(int value) { m_ingressPortOverrideHasBeenSet = true; m_ingressPortOverride = value; }
119 inline ServiceConnectService& WithIngressPortOverride(int value) { SetIngressPortOverride(value); return *this;}
121
123
127 inline const TimeoutConfiguration& GetTimeout() const{ return m_timeout; }
128 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
129 inline void SetTimeout(const TimeoutConfiguration& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
130 inline void SetTimeout(TimeoutConfiguration&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
131 inline ServiceConnectService& WithTimeout(const TimeoutConfiguration& value) { SetTimeout(value); return *this;}
132 inline ServiceConnectService& WithTimeout(TimeoutConfiguration&& value) { SetTimeout(std::move(value)); return *this;}
134
136
140 inline const ServiceConnectTlsConfiguration& GetTls() const{ return m_tls; }
141 inline bool TlsHasBeenSet() const { return m_tlsHasBeenSet; }
142 inline void SetTls(const ServiceConnectTlsConfiguration& value) { m_tlsHasBeenSet = true; m_tls = value; }
143 inline void SetTls(ServiceConnectTlsConfiguration&& value) { m_tlsHasBeenSet = true; m_tls = std::move(value); }
144 inline ServiceConnectService& WithTls(const ServiceConnectTlsConfiguration& value) { SetTls(value); return *this;}
145 inline ServiceConnectService& WithTls(ServiceConnectTlsConfiguration&& value) { SetTls(std::move(value)); return *this;}
147 private:
148
149 Aws::String m_portName;
150 bool m_portNameHasBeenSet = false;
151
152 Aws::String m_discoveryName;
153 bool m_discoveryNameHasBeenSet = false;
154
156 bool m_clientAliasesHasBeenSet = false;
157
158 int m_ingressPortOverride;
159 bool m_ingressPortOverrideHasBeenSet = false;
160
161 TimeoutConfiguration m_timeout;
162 bool m_timeoutHasBeenSet = false;
163
165 bool m_tlsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace ECS
170} // namespace Aws
ServiceConnectService & AddClientAliases(const ServiceConnectClientAlias &value)
AWS_ECS_API ServiceConnectService & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceConnectService & WithTimeout(const TimeoutConfiguration &value)
ServiceConnectService & WithPortName(Aws::String &&value)
ServiceConnectService & WithPortName(const Aws::String &value)
const Aws::Vector< ServiceConnectClientAlias > & GetClientAliases() const
ServiceConnectService & WithTls(ServiceConnectTlsConfiguration &&value)
void SetTls(ServiceConnectTlsConfiguration &&value)
void SetTls(const ServiceConnectTlsConfiguration &value)
const TimeoutConfiguration & GetTimeout() const
void SetClientAliases(const Aws::Vector< ServiceConnectClientAlias > &value)
ServiceConnectService & WithIngressPortOverride(int value)
const ServiceConnectTlsConfiguration & GetTls() const
ServiceConnectService & WithClientAliases(const Aws::Vector< ServiceConnectClientAlias > &value)
const Aws::String & GetDiscoveryName() const
ServiceConnectService & WithTimeout(TimeoutConfiguration &&value)
ServiceConnectService & WithDiscoveryName(Aws::String &&value)
ServiceConnectService & AddClientAliases(ServiceConnectClientAlias &&value)
void SetTimeout(const TimeoutConfiguration &value)
ServiceConnectService & WithTls(const ServiceConnectTlsConfiguration &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDiscoveryName(const Aws::String &value)
void SetTimeout(TimeoutConfiguration &&value)
ServiceConnectService & WithClientAliases(Aws::Vector< ServiceConnectClientAlias > &&value)
void SetClientAliases(Aws::Vector< ServiceConnectClientAlias > &&value)
void SetPortName(const Aws::String &value)
ServiceConnectService & WithDiscoveryName(const Aws::String &value)
ServiceConnectService & WithPortName(const char *value)
ServiceConnectService & WithDiscoveryName(const char *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