AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ServiceRegistry.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
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:
39 AWS_ECS_API ServiceRegistry() = default;
43
44
46
51 inline const Aws::String& GetRegistryArn() const { return m_registryArn; }
52 inline bool RegistryArnHasBeenSet() const { return m_registryArnHasBeenSet; }
53 template<typename RegistryArnT = Aws::String>
54 void SetRegistryArn(RegistryArnT&& value) { m_registryArnHasBeenSet = true; m_registryArn = std::forward<RegistryArnT>(value); }
55 template<typename RegistryArnT = Aws::String>
56 ServiceRegistry& WithRegistryArn(RegistryArnT&& value) { SetRegistryArn(std::forward<RegistryArnT>(value)); return *this;}
58
60
65 inline int GetPort() const { return m_port; }
66 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
67 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
68 inline ServiceRegistry& WithPort(int value) { SetPort(value); return *this;}
70
72
83 inline const Aws::String& GetContainerName() const { return m_containerName; }
84 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
85 template<typename ContainerNameT = Aws::String>
86 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
87 template<typename ContainerNameT = Aws::String>
88 ServiceRegistry& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
90
92
103 inline int GetContainerPort() const { return m_containerPort; }
104 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
105 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
106 inline ServiceRegistry& WithContainerPort(int value) { SetContainerPort(value); return *this;}
108 private:
109
110 Aws::String m_registryArn;
111 bool m_registryArnHasBeenSet = false;
112
113 int m_port{0};
114 bool m_portHasBeenSet = false;
115
116 Aws::String m_containerName;
117 bool m_containerNameHasBeenSet = false;
118
119 int m_containerPort{0};
120 bool m_containerPortHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ECS
125} // 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