AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EndpointRequest.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 EndpointRequest() = default;
32 AWS_LIGHTSAIL_API EndpointRequest(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetContainerName() const { return m_containerName; }
41 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
42 template <typename ContainerNameT = Aws::String>
43 void SetContainerName(ContainerNameT&& value) {
44 m_containerNameHasBeenSet = true;
45 m_containerName = std::forward<ContainerNameT>(value);
46 }
47 template <typename ContainerNameT = Aws::String>
48 EndpointRequest& WithContainerName(ContainerNameT&& value) {
49 SetContainerName(std::forward<ContainerNameT>(value));
50 return *this;
51 }
53
55
58 inline int GetContainerPort() const { return m_containerPort; }
59 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
60 inline void SetContainerPort(int value) {
61 m_containerPortHasBeenSet = true;
62 m_containerPort = value;
63 }
65 SetContainerPort(value);
66 return *this;
67 }
69
71
74 inline const ContainerServiceHealthCheckConfig& GetHealthCheck() const { return m_healthCheck; }
75 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
76 template <typename HealthCheckT = ContainerServiceHealthCheckConfig>
77 void SetHealthCheck(HealthCheckT&& value) {
78 m_healthCheckHasBeenSet = true;
79 m_healthCheck = std::forward<HealthCheckT>(value);
80 }
81 template <typename HealthCheckT = ContainerServiceHealthCheckConfig>
82 EndpointRequest& WithHealthCheck(HealthCheckT&& value) {
83 SetHealthCheck(std::forward<HealthCheckT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_containerName;
89
90 int m_containerPort{0};
91
92 ContainerServiceHealthCheckConfig m_healthCheck;
93 bool m_containerNameHasBeenSet = false;
94 bool m_containerPortHasBeenSet = false;
95 bool m_healthCheckHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Lightsail
100} // 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