AWS SDK for C++  1.9.157
AWS SDK for C++
ServiceRegistry.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
45  inline const Aws::String& GetRegistryArn() const{ return m_registryArn; }
46 
52  inline bool RegistryArnHasBeenSet() const { return m_registryArnHasBeenSet; }
53 
59  inline void SetRegistryArn(const Aws::String& value) { m_registryArnHasBeenSet = true; m_registryArn = value; }
60 
66  inline void SetRegistryArn(Aws::String&& value) { m_registryArnHasBeenSet = true; m_registryArn = std::move(value); }
67 
73  inline void SetRegistryArn(const char* value) { m_registryArnHasBeenSet = true; m_registryArn.assign(value); }
74 
80  inline ServiceRegistry& WithRegistryArn(const Aws::String& value) { SetRegistryArn(value); return *this;}
81 
87  inline ServiceRegistry& WithRegistryArn(Aws::String&& value) { SetRegistryArn(std::move(value)); return *this;}
88 
94  inline ServiceRegistry& WithRegistryArn(const char* value) { SetRegistryArn(value); return *this;}
95 
96 
102  inline int GetPort() const{ return m_port; }
103 
109  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
110 
116  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
117 
123  inline ServiceRegistry& WithPort(int value) { SetPort(value); return *this;}
124 
125 
137  inline const Aws::String& GetContainerName() const{ return m_containerName; }
138 
150  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
151 
163  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
164 
176  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
177 
189  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
190 
202  inline ServiceRegistry& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
203 
215  inline ServiceRegistry& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
216 
228  inline ServiceRegistry& WithContainerName(const char* value) { SetContainerName(value); return *this;}
229 
230 
242  inline int GetContainerPort() const{ return m_containerPort; }
243 
255  inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
256 
268  inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
269 
281  inline ServiceRegistry& WithContainerPort(int value) { SetContainerPort(value); return *this;}
282 
283  private:
284 
285  Aws::String m_registryArn;
286  bool m_registryArnHasBeenSet;
287 
288  int m_port;
289  bool m_portHasBeenSet;
290 
291  Aws::String m_containerName;
292  bool m_containerNameHasBeenSet;
293 
294  int m_containerPort;
295  bool m_containerPortHasBeenSet;
296  };
297 
298 } // namespace Model
299 } // namespace ECS
300 } // namespace Aws
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ServiceRegistry::ServiceRegistry
ServiceRegistry(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ServiceRegistry::WithRegistryArn
ServiceRegistry & WithRegistryArn(const Aws::String &value)
Definition: ServiceRegistry.h:80
Aws::ECS::Model::ServiceRegistry::ContainerPortHasBeenSet
bool ContainerPortHasBeenSet() const
Definition: ServiceRegistry.h:255
Aws::ECS::Model::ServiceRegistry::SetContainerName
void SetContainerName(const Aws::String &value)
Definition: ServiceRegistry.h:163
Aws::ECS::Model::ServiceRegistry::GetContainerPort
int GetContainerPort() const
Definition: ServiceRegistry.h:242
Aws::ECS::Model::ServiceRegistry::SetContainerName
void SetContainerName(const char *value)
Definition: ServiceRegistry.h:189
Aws::ECS::Model::ServiceRegistry::SetRegistryArn
void SetRegistryArn(const Aws::String &value)
Definition: ServiceRegistry.h:59
Aws::ECS::Model::ServiceRegistry::PortHasBeenSet
bool PortHasBeenSet() const
Definition: ServiceRegistry.h:109
Aws::ECS::Model::ServiceRegistry
Definition: ServiceRegistry.h:32
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ServiceRegistry::GetContainerName
const Aws::String & GetContainerName() const
Definition: ServiceRegistry.h:137
Aws::ECS::Model::ServiceRegistry::SetContainerPort
void SetContainerPort(int value)
Definition: ServiceRegistry.h:268
Aws::ECS::Model::ServiceRegistry::WithRegistryArn
ServiceRegistry & WithRegistryArn(Aws::String &&value)
Definition: ServiceRegistry.h:87
Aws::ECS::Model::ServiceRegistry::WithPort
ServiceRegistry & WithPort(int value)
Definition: ServiceRegistry.h:123
Aws::ECS::Model::ServiceRegistry::WithContainerName
ServiceRegistry & WithContainerName(const Aws::String &value)
Definition: ServiceRegistry.h:202
Aws::ECS::Model::ServiceRegistry::GetRegistryArn
const Aws::String & GetRegistryArn() const
Definition: ServiceRegistry.h:45
Aws::ECS::Model::ServiceRegistry::operator=
ServiceRegistry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ServiceRegistry::SetPort
void SetPort(int value)
Definition: ServiceRegistry.h:116
Aws::ECS::Model::ServiceRegistry::WithContainerName
ServiceRegistry & WithContainerName(const char *value)
Definition: ServiceRegistry.h:228
Aws::ECS::Model::ServiceRegistry::SetContainerName
void SetContainerName(Aws::String &&value)
Definition: ServiceRegistry.h:176
Aws::ECS::Model::ServiceRegistry::RegistryArnHasBeenSet
bool RegistryArnHasBeenSet() const
Definition: ServiceRegistry.h:52
Aws::ECS::Model::ServiceRegistry::SetRegistryArn
void SetRegistryArn(Aws::String &&value)
Definition: ServiceRegistry.h:66
Aws::ECS::Model::ServiceRegistry::WithContainerPort
ServiceRegistry & WithContainerPort(int value)
Definition: ServiceRegistry.h:281
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ECS::Model::ServiceRegistry::WithContainerName
ServiceRegistry & WithContainerName(Aws::String &&value)
Definition: ServiceRegistry.h:215
AWSString.h
Aws::ECS::Model::ServiceRegistry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::ServiceRegistry::WithRegistryArn
ServiceRegistry & WithRegistryArn(const char *value)
Definition: ServiceRegistry.h:94
Aws::ECS::Model::ServiceRegistry::ContainerNameHasBeenSet
bool ContainerNameHasBeenSet() const
Definition: ServiceRegistry.h:150
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ServiceRegistry::GetPort
int GetPort() const
Definition: ServiceRegistry.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ServiceRegistry::SetRegistryArn
void SetRegistryArn(const char *value)
Definition: ServiceRegistry.h:73
ECS_EXPORTS.h
Aws::ECS::Model::ServiceRegistry::ServiceRegistry
ServiceRegistry()