AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ContainerServiceEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/ContainerServiceHealthCheckConfig.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
30 public:
31 AWS_LIGHTSAIL_API ContainerServiceEndpoint() = default;
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetContainerName() const { return m_containerName; }
42 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
43 template <typename ContainerNameT = Aws::String>
44 void SetContainerName(ContainerNameT&& value) {
45 m_containerNameHasBeenSet = true;
46 m_containerName = std::forward<ContainerNameT>(value);
47 }
48 template <typename ContainerNameT = Aws::String>
50 SetContainerName(std::forward<ContainerNameT>(value));
51 return *this;
52 }
54
56
59 inline int GetContainerPort() const { return m_containerPort; }
60 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
61 inline void SetContainerPort(int value) {
62 m_containerPortHasBeenSet = true;
63 m_containerPort = value;
64 }
66 SetContainerPort(value);
67 return *this;
68 }
70
72
75 inline const ContainerServiceHealthCheckConfig& GetHealthCheck() const { return m_healthCheck; }
76 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
77 template <typename HealthCheckT = ContainerServiceHealthCheckConfig>
78 void SetHealthCheck(HealthCheckT&& value) {
79 m_healthCheckHasBeenSet = true;
80 m_healthCheck = std::forward<HealthCheckT>(value);
81 }
82 template <typename HealthCheckT = ContainerServiceHealthCheckConfig>
84 SetHealthCheck(std::forward<HealthCheckT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_containerName;
90
91 int m_containerPort{0};
92
93 ContainerServiceHealthCheckConfig m_healthCheck;
94 bool m_containerNameHasBeenSet = false;
95 bool m_containerPortHasBeenSet = false;
96 bool m_healthCheckHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Lightsail
101} // 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