AWS SDK for C++  1.9.22
AWS SDK for C++
EndpointRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetContainerName() const{ return m_containerName; }
46 
50  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
51 
55  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
56 
60  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
61 
65  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
66 
70  inline EndpointRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
71 
75  inline EndpointRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
76 
80  inline EndpointRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;}
81 
82 
86  inline int GetContainerPort() const{ return m_containerPort; }
87 
91  inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
92 
96  inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
97 
101  inline EndpointRequest& WithContainerPort(int value) { SetContainerPort(value); return *this;}
102 
103 
107  inline const ContainerServiceHealthCheckConfig& GetHealthCheck() const{ return m_healthCheck; }
108 
112  inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
113 
117  inline void SetHealthCheck(const ContainerServiceHealthCheckConfig& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
118 
122  inline void SetHealthCheck(ContainerServiceHealthCheckConfig&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
123 
127  inline EndpointRequest& WithHealthCheck(const ContainerServiceHealthCheckConfig& value) { SetHealthCheck(value); return *this;}
128 
132  inline EndpointRequest& WithHealthCheck(ContainerServiceHealthCheckConfig&& value) { SetHealthCheck(std::move(value)); return *this;}
133 
134  private:
135 
136  Aws::String m_containerName;
137  bool m_containerNameHasBeenSet;
138 
139  int m_containerPort;
140  bool m_containerPortHasBeenSet;
141 
142  ContainerServiceHealthCheckConfig m_healthCheck;
143  bool m_healthCheckHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace Lightsail
148 } // namespace Aws
ContainerServiceHealthCheckConfig.h
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig
Definition: ContainerServiceHealthCheckConfig.h:33
Aws::Lightsail::Model::EndpointRequest::WithContainerName
EndpointRequest & WithContainerName(const Aws::String &value)
Definition: EndpointRequest.h:70
Aws::Lightsail::Model::EndpointRequest::WithContainerName
EndpointRequest & WithContainerName(Aws::String &&value)
Definition: EndpointRequest.h:75
Aws::Lightsail::Model::EndpointRequest::EndpointRequest
EndpointRequest()
Aws::Lightsail::Model::EndpointRequest::operator=
EndpointRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::EndpointRequest::WithContainerName
EndpointRequest & WithContainerName(const char *value)
Definition: EndpointRequest.h:80
Aws::Lightsail::Model::EndpointRequest::HealthCheckHasBeenSet
bool HealthCheckHasBeenSet() const
Definition: EndpointRequest.h:112
Aws::Lightsail::Model::EndpointRequest::SetContainerName
void SetContainerName(Aws::String &&value)
Definition: EndpointRequest.h:60
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::EndpointRequest::WithContainerPort
EndpointRequest & WithContainerPort(int value)
Definition: EndpointRequest.h:101
Lightsail_EXPORTS.h
Aws::Lightsail::Model::EndpointRequest::SetHealthCheck
void SetHealthCheck(ContainerServiceHealthCheckConfig &&value)
Definition: EndpointRequest.h:122
Aws::Lightsail::Model::EndpointRequest::WithHealthCheck
EndpointRequest & WithHealthCheck(ContainerServiceHealthCheckConfig &&value)
Definition: EndpointRequest.h:132
Aws::Lightsail::Model::EndpointRequest::ContainerPortHasBeenSet
bool ContainerPortHasBeenSet() const
Definition: EndpointRequest.h:91
Aws::Lightsail::Model::EndpointRequest::ContainerNameHasBeenSet
bool ContainerNameHasBeenSet() const
Definition: EndpointRequest.h:50
Aws::Lightsail::Model::EndpointRequest
Definition: EndpointRequest.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::EndpointRequest::SetContainerName
void SetContainerName(const Aws::String &value)
Definition: EndpointRequest.h:55
Aws::Lightsail::Model::EndpointRequest::SetHealthCheck
void SetHealthCheck(const ContainerServiceHealthCheckConfig &value)
Definition: EndpointRequest.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::EndpointRequest::GetContainerName
const Aws::String & GetContainerName() const
Definition: EndpointRequest.h:45
Aws::Lightsail::Model::EndpointRequest::EndpointRequest
EndpointRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::EndpointRequest::SetContainerPort
void SetContainerPort(int value)
Definition: EndpointRequest.h:96
Aws::Lightsail::Model::EndpointRequest::WithHealthCheck
EndpointRequest & WithHealthCheck(const ContainerServiceHealthCheckConfig &value)
Definition: EndpointRequest.h:127
Aws::Lightsail::Model::EndpointRequest::GetHealthCheck
const ContainerServiceHealthCheckConfig & GetHealthCheck() const
Definition: EndpointRequest.h:107
Aws::Lightsail::Model::EndpointRequest::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::EndpointRequest::GetContainerPort
int GetContainerPort() const
Definition: EndpointRequest.h:86
Aws::Lightsail::Model::EndpointRequest::SetContainerName
void SetContainerName(const char *value)
Definition: EndpointRequest.h:65