AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EndpointRequest.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 EndpointRequest() = default;
37 AWS_LIGHTSAIL_API EndpointRequest(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetContainerName() const { return m_containerName; }
47 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
48 template<typename ContainerNameT = Aws::String>
49 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
50 template<typename ContainerNameT = Aws::String>
51 EndpointRequest& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
53
55
58 inline int GetContainerPort() const { return m_containerPort; }
59 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
60 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
61 inline EndpointRequest& WithContainerPort(int value) { SetContainerPort(value); return *this;}
63
65
68 inline const ContainerServiceHealthCheckConfig& GetHealthCheck() const { return m_healthCheck; }
69 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
70 template<typename HealthCheckT = ContainerServiceHealthCheckConfig>
71 void SetHealthCheck(HealthCheckT&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::forward<HealthCheckT>(value); }
72 template<typename HealthCheckT = ContainerServiceHealthCheckConfig>
73 EndpointRequest& WithHealthCheck(HealthCheckT&& value) { SetHealthCheck(std::forward<HealthCheckT>(value)); return *this;}
75 private:
76
77 Aws::String m_containerName;
78 bool m_containerNameHasBeenSet = false;
79
80 int m_containerPort{0};
81 bool m_containerPortHasBeenSet = false;
82
83 ContainerServiceHealthCheckConfig m_healthCheck;
84 bool m_healthCheckHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Lightsail
89} // namespace Aws
EndpointRequest & WithHealthCheck(HealthCheckT &&value)
void SetContainerName(ContainerNameT &&value)
AWS_LIGHTSAIL_API EndpointRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API EndpointRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHealthCheck(HealthCheckT &&value)
const Aws::String & GetContainerName() const
EndpointRequest & WithContainerPort(int value)
AWS_LIGHTSAIL_API EndpointRequest()=default
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointRequest & WithContainerName(ContainerNameT &&value)
const ContainerServiceHealthCheckConfig & GetHealthCheck() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue