AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ServiceRegistry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
33 public:
34 AWS_ECS_API ServiceRegistry() = default;
38
40
45 inline const Aws::String& GetRegistryArn() const { return m_registryArn; }
46 inline bool RegistryArnHasBeenSet() const { return m_registryArnHasBeenSet; }
47 template <typename RegistryArnT = Aws::String>
48 void SetRegistryArn(RegistryArnT&& value) {
49 m_registryArnHasBeenSet = true;
50 m_registryArn = std::forward<RegistryArnT>(value);
51 }
52 template <typename RegistryArnT = Aws::String>
53 ServiceRegistry& WithRegistryArn(RegistryArnT&& value) {
54 SetRegistryArn(std::forward<RegistryArnT>(value));
55 return *this;
56 }
58
60
65 inline int GetPort() const { return m_port; }
66 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
67 inline void SetPort(int value) {
68 m_portHasBeenSet = true;
69 m_port = value;
70 }
71 inline ServiceRegistry& WithPort(int value) {
72 SetPort(value);
73 return *this;
74 }
76
78
89 inline const Aws::String& GetContainerName() const { return m_containerName; }
90 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
91 template <typename ContainerNameT = Aws::String>
92 void SetContainerName(ContainerNameT&& value) {
93 m_containerNameHasBeenSet = true;
94 m_containerName = std::forward<ContainerNameT>(value);
95 }
96 template <typename ContainerNameT = Aws::String>
97 ServiceRegistry& WithContainerName(ContainerNameT&& value) {
98 SetContainerName(std::forward<ContainerNameT>(value));
99 return *this;
100 }
102
104
115 inline int GetContainerPort() const { return m_containerPort; }
116 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
117 inline void SetContainerPort(int value) {
118 m_containerPortHasBeenSet = true;
119 m_containerPort = value;
120 }
122 SetContainerPort(value);
123 return *this;
124 }
126 private:
127 Aws::String m_registryArn;
128
129 int m_port{0};
130
131 Aws::String m_containerName;
132
133 int m_containerPort{0};
134 bool m_registryArnHasBeenSet = false;
135 bool m_portHasBeenSet = false;
136 bool m_containerNameHasBeenSet = false;
137 bool m_containerPortHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace ECS
142} // namespace Aws
const Aws::String & GetContainerName() const
void SetContainerName(ContainerNameT &&value)
AWS_ECS_API ServiceRegistry()=default
void SetRegistryArn(RegistryArnT &&value)
ServiceRegistry & WithContainerPort(int value)
ServiceRegistry & WithRegistryArn(RegistryArnT &&value)
AWS_ECS_API ServiceRegistry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRegistryArn() const
ServiceRegistry & WithContainerName(ContainerNameT &&value)
AWS_ECS_API ServiceRegistry(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue