AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ServiceRegistry.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
37 {
38 public:
43
44
50 inline const Aws::String& GetRegistryArn() const{ return m_registryArn; }
51
57 inline bool RegistryArnHasBeenSet() const { return m_registryArnHasBeenSet; }
58
64 inline void SetRegistryArn(const Aws::String& value) { m_registryArnHasBeenSet = true; m_registryArn = value; }
65
71 inline void SetRegistryArn(Aws::String&& value) { m_registryArnHasBeenSet = true; m_registryArn = std::move(value); }
72
78 inline void SetRegistryArn(const char* value) { m_registryArnHasBeenSet = true; m_registryArn.assign(value); }
79
85 inline ServiceRegistry& WithRegistryArn(const Aws::String& value) { SetRegistryArn(value); return *this;}
86
92 inline ServiceRegistry& WithRegistryArn(Aws::String&& value) { SetRegistryArn(std::move(value)); return *this;}
93
99 inline ServiceRegistry& WithRegistryArn(const char* value) { SetRegistryArn(value); return *this;}
100
101
107 inline int GetPort() const{ return m_port; }
108
114 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
115
121 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
122
128 inline ServiceRegistry& WithPort(int value) { SetPort(value); return *this;}
129
130
142 inline const Aws::String& GetContainerName() const{ return m_containerName; }
143
155 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
156
168 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
169
181 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
182
194 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
195
207 inline ServiceRegistry& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
208
220 inline ServiceRegistry& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
221
233 inline ServiceRegistry& WithContainerName(const char* value) { SetContainerName(value); return *this;}
234
235
247 inline int GetContainerPort() const{ return m_containerPort; }
248
260 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
261
273 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
274
286 inline ServiceRegistry& WithContainerPort(int value) { SetContainerPort(value); return *this;}
287
288 private:
289
290 Aws::String m_registryArn;
291 bool m_registryArnHasBeenSet = false;
292
293 int m_port;
294 bool m_portHasBeenSet = false;
295
296 Aws::String m_containerName;
297 bool m_containerNameHasBeenSet = false;
298
299 int m_containerPort;
300 bool m_containerPortHasBeenSet = false;
301 };
302
303} // namespace Model
304} // namespace ECS
305} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
const Aws::String & GetContainerName() const
ServiceRegistry & WithRegistryArn(Aws::String &&value)
ServiceRegistry & WithContainerName(const char *value)
ServiceRegistry & WithRegistryArn(const Aws::String &value)
void SetContainerName(Aws::String &&value)
ServiceRegistry & WithRegistryArn(const char *value)
void SetRegistryArn(const Aws::String &value)
ServiceRegistry & WithContainerPort(int value)
ServiceRegistry & WithContainerName(const Aws::String &value)
void SetContainerName(const char *value)
void SetRegistryArn(const char *value)
ServiceRegistry & WithContainerName(Aws::String &&value)
AWS_ECS_API ServiceRegistry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRegistryArn() const
void SetContainerName(const Aws::String &value)
AWS_ECS_API ServiceRegistry(Aws::Utils::Json::JsonView jsonValue)
void SetRegistryArn(Aws::String &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceRegistry & WithPort(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String