AWS SDK for C++  1.9.15
AWS SDK for C++
ContainerServiceEndpoint.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 
46  inline const Aws::String& GetContainerName() const{ return m_containerName; }
47 
52  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
53 
58  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
59 
64  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
65 
70  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
71 
76  inline ContainerServiceEndpoint& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
77 
82  inline ContainerServiceEndpoint& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
83 
88  inline ContainerServiceEndpoint& WithContainerName(const char* value) { SetContainerName(value); return *this;}
89 
90 
94  inline int GetContainerPort() const{ return m_containerPort; }
95 
99  inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
100 
104  inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
105 
109  inline ContainerServiceEndpoint& WithContainerPort(int value) { SetContainerPort(value); return *this;}
110 
111 
115  inline const ContainerServiceHealthCheckConfig& GetHealthCheck() const{ return m_healthCheck; }
116 
120  inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
121 
125  inline void SetHealthCheck(const ContainerServiceHealthCheckConfig& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
126 
130  inline void SetHealthCheck(ContainerServiceHealthCheckConfig&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
131 
135  inline ContainerServiceEndpoint& WithHealthCheck(const ContainerServiceHealthCheckConfig& value) { SetHealthCheck(value); return *this;}
136 
140  inline ContainerServiceEndpoint& WithHealthCheck(ContainerServiceHealthCheckConfig&& value) { SetHealthCheck(std::move(value)); return *this;}
141 
142  private:
143 
144  Aws::String m_containerName;
145  bool m_containerNameHasBeenSet;
146 
147  int m_containerPort;
148  bool m_containerPortHasBeenSet;
149 
150  ContainerServiceHealthCheckConfig m_healthCheck;
151  bool m_healthCheckHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace Lightsail
156 } // namespace Aws
ContainerServiceHealthCheckConfig.h
Aws::Lightsail::Model::ContainerServiceEndpoint::GetHealthCheck
const ContainerServiceHealthCheckConfig & GetHealthCheck() const
Definition: ContainerServiceEndpoint.h:115
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig
Definition: ContainerServiceHealthCheckConfig.h:33
Aws::Lightsail::Model::ContainerServiceEndpoint::WithContainerName
ContainerServiceEndpoint & WithContainerName(const Aws::String &value)
Definition: ContainerServiceEndpoint.h:76
Aws::Lightsail::Model::ContainerServiceEndpoint::WithContainerName
ContainerServiceEndpoint & WithContainerName(Aws::String &&value)
Definition: ContainerServiceEndpoint.h:82
Aws::Lightsail::Model::ContainerServiceEndpoint
Definition: ContainerServiceEndpoint.h:34
Aws::Lightsail::Model::ContainerServiceEndpoint::ContainerServiceEndpoint
ContainerServiceEndpoint()
Aws::Lightsail::Model::ContainerServiceEndpoint::WithHealthCheck
ContainerServiceEndpoint & WithHealthCheck(const ContainerServiceHealthCheckConfig &value)
Definition: ContainerServiceEndpoint.h:135
Aws::Lightsail::Model::ContainerServiceEndpoint::SetHealthCheck
void SetHealthCheck(ContainerServiceHealthCheckConfig &&value)
Definition: ContainerServiceEndpoint.h:130
Aws::Lightsail::Model::ContainerServiceEndpoint::GetContainerPort
int GetContainerPort() const
Definition: ContainerServiceEndpoint.h:94
Aws::Lightsail::Model::ContainerServiceEndpoint::WithContainerName
ContainerServiceEndpoint & WithContainerName(const char *value)
Definition: ContainerServiceEndpoint.h:88
Aws::Lightsail::Model::ContainerServiceEndpoint::SetContainerName
void SetContainerName(Aws::String &&value)
Definition: ContainerServiceEndpoint.h:64
Aws::Lightsail::Model::ContainerServiceEndpoint::ContainerServiceEndpoint
ContainerServiceEndpoint(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ContainerServiceEndpoint::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ContainerServiceEndpoint::WithHealthCheck
ContainerServiceEndpoint & WithHealthCheck(ContainerServiceHealthCheckConfig &&value)
Definition: ContainerServiceEndpoint.h:140
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Lightsail::Model::ContainerServiceEndpoint::GetContainerName
const Aws::String & GetContainerName() const
Definition: ContainerServiceEndpoint.h:46
AWSString.h
Aws::Lightsail::Model::ContainerServiceEndpoint::ContainerNameHasBeenSet
bool ContainerNameHasBeenSet() const
Definition: ContainerServiceEndpoint.h:52
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::ContainerServiceEndpoint::SetContainerName
void SetContainerName(const char *value)
Definition: ContainerServiceEndpoint.h:70
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ContainerServiceEndpoint::SetContainerName
void SetContainerName(const Aws::String &value)
Definition: ContainerServiceEndpoint.h:58
Aws::Lightsail::Model::ContainerServiceEndpoint::ContainerPortHasBeenSet
bool ContainerPortHasBeenSet() const
Definition: ContainerServiceEndpoint.h:99
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ContainerServiceEndpoint::HealthCheckHasBeenSet
bool HealthCheckHasBeenSet() const
Definition: ContainerServiceEndpoint.h:120
Aws::Lightsail::Model::ContainerServiceEndpoint::WithContainerPort
ContainerServiceEndpoint & WithContainerPort(int value)
Definition: ContainerServiceEndpoint.h:109
Aws::Lightsail::Model::ContainerServiceEndpoint::SetContainerPort
void SetContainerPort(int value)
Definition: ContainerServiceEndpoint.h:104
Aws::Lightsail::Model::ContainerServiceEndpoint::SetHealthCheck
void SetHealthCheck(const ContainerServiceHealthCheckConfig &value)
Definition: ContainerServiceEndpoint.h:125
Aws::Lightsail::Model::ContainerServiceEndpoint::operator=
ContainerServiceEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)