AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerServiceEndpoint.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/ContainerServiceHealthCheckConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LIGHTSAIL_API ContainerServiceEndpoint();
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetContainerName() const{ return m_containerName; }
48 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
49 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
50 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
51 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
52 inline ContainerServiceEndpoint& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
53 inline ContainerServiceEndpoint& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
54 inline ContainerServiceEndpoint& WithContainerName(const char* value) { SetContainerName(value); return *this;}
56
58
61 inline int GetContainerPort() const{ return m_containerPort; }
62 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
63 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
64 inline ContainerServiceEndpoint& WithContainerPort(int value) { SetContainerPort(value); return *this;}
66
68
71 inline const ContainerServiceHealthCheckConfig& GetHealthCheck() const{ return m_healthCheck; }
72 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
73 inline void SetHealthCheck(const ContainerServiceHealthCheckConfig& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
74 inline void SetHealthCheck(ContainerServiceHealthCheckConfig&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
78 private:
79
80 Aws::String m_containerName;
81 bool m_containerNameHasBeenSet = false;
82
83 int m_containerPort;
84 bool m_containerPortHasBeenSet = false;
85
87 bool m_healthCheckHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Lightsail
92} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServiceEndpoint & WithContainerName(const char *value)
ContainerServiceEndpoint & WithContainerPort(int value)
ContainerServiceEndpoint & WithHealthCheck(const ContainerServiceHealthCheckConfig &value)
ContainerServiceEndpoint & WithContainerName(Aws::String &&value)
ContainerServiceEndpoint & WithContainerName(const Aws::String &value)
ContainerServiceEndpoint & WithHealthCheck(ContainerServiceHealthCheckConfig &&value)
const ContainerServiceHealthCheckConfig & GetHealthCheck() const
AWS_LIGHTSAIL_API ContainerServiceEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API ContainerServiceEndpoint(Aws::Utils::Json::JsonView jsonValue)
void SetHealthCheck(const ContainerServiceHealthCheckConfig &value)
void SetHealthCheck(ContainerServiceHealthCheckConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue