AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ContainerNameT = Aws::String>
50 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
51 template<typename ContainerNameT = Aws::String>
52 ContainerServiceEndpoint& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
54
56
59 inline int GetContainerPort() const { return m_containerPort; }
60 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
61 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
62 inline ContainerServiceEndpoint& WithContainerPort(int value) { SetContainerPort(value); return *this;}
64
66
69 inline const ContainerServiceHealthCheckConfig& GetHealthCheck() const { return m_healthCheck; }
70 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
71 template<typename HealthCheckT = ContainerServiceHealthCheckConfig>
72 void SetHealthCheck(HealthCheckT&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::forward<HealthCheckT>(value); }
73 template<typename HealthCheckT = ContainerServiceHealthCheckConfig>
74 ContainerServiceEndpoint& WithHealthCheck(HealthCheckT&& value) { SetHealthCheck(std::forward<HealthCheckT>(value)); return *this;}
76 private:
77
78 Aws::String m_containerName;
79 bool m_containerNameHasBeenSet = false;
80
81 int m_containerPort{0};
82 bool m_containerPortHasBeenSet = false;
83
84 ContainerServiceHealthCheckConfig m_healthCheck;
85 bool m_healthCheckHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Lightsail
90} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServiceEndpoint & WithContainerPort(int value)
ContainerServiceEndpoint & WithHealthCheck(HealthCheckT &&value)
ContainerServiceEndpoint & WithContainerName(ContainerNameT &&value)
const ContainerServiceHealthCheckConfig & GetHealthCheck() const
AWS_LIGHTSAIL_API ContainerServiceEndpoint()=default
AWS_LIGHTSAIL_API ContainerServiceEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API ContainerServiceEndpoint(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue