AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
49 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
50 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
51 inline EndpointRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
52 inline EndpointRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
53 inline EndpointRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;}
55
57
60 inline int GetContainerPort() const{ return m_containerPort; }
61 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
62 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
63 inline EndpointRequest& WithContainerPort(int value) { SetContainerPort(value); return *this;}
65
67
70 inline const ContainerServiceHealthCheckConfig& GetHealthCheck() const{ return m_healthCheck; }
71 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
72 inline void SetHealthCheck(const ContainerServiceHealthCheckConfig& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
73 inline void SetHealthCheck(ContainerServiceHealthCheckConfig&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
75 inline EndpointRequest& WithHealthCheck(ContainerServiceHealthCheckConfig&& value) { SetHealthCheck(std::move(value)); return *this;}
77 private:
78
79 Aws::String m_containerName;
80 bool m_containerNameHasBeenSet = false;
81
82 int m_containerPort;
83 bool m_containerPortHasBeenSet = false;
84
86 bool m_healthCheckHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Lightsail
91} // namespace Aws
void SetContainerName(const char *value)
void SetContainerName(const Aws::String &value)
AWS_LIGHTSAIL_API EndpointRequest(Aws::Utils::Json::JsonView jsonValue)
EndpointRequest & WithHealthCheck(const ContainerServiceHealthCheckConfig &value)
AWS_LIGHTSAIL_API EndpointRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointRequest & WithContainerName(Aws::String &&value)
EndpointRequest & WithContainerName(const Aws::String &value)
const Aws::String & GetContainerName() const
EndpointRequest & WithContainerPort(int value)
EndpointRequest & WithHealthCheck(ContainerServiceHealthCheckConfig &&value)
void SetHealthCheck(ContainerServiceHealthCheckConfig &&value)
EndpointRequest & WithContainerName(const char *value)
void SetHealthCheck(const ContainerServiceHealthCheckConfig &value)
void SetContainerName(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const ContainerServiceHealthCheckConfig & GetHealthCheck() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue