AWS SDK for C++  1.9.159
AWS SDK for C++
LoadBalancer.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
64  inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
65 
87  inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
88 
110  inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
111 
133  inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
134 
156  inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
157 
179  inline LoadBalancer& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
180 
202  inline LoadBalancer& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
203 
225  inline LoadBalancer& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
226 
227 
234  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
235 
242  inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
243 
250  inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
251 
258  inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
259 
266  inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
267 
274  inline LoadBalancer& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
275 
282  inline LoadBalancer& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
283 
290  inline LoadBalancer& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
291 
292 
297  inline const Aws::String& GetContainerName() const{ return m_containerName; }
298 
303  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
304 
309  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
310 
315  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
316 
321  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
322 
327  inline LoadBalancer& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
328 
333  inline LoadBalancer& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
334 
339  inline LoadBalancer& WithContainerName(const char* value) { SetContainerName(value); return *this;}
340 
341 
349  inline int GetContainerPort() const{ return m_containerPort; }
350 
358  inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
359 
367  inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
368 
376  inline LoadBalancer& WithContainerPort(int value) { SetContainerPort(value); return *this;}
377 
378  private:
379 
380  Aws::String m_targetGroupArn;
381  bool m_targetGroupArnHasBeenSet;
382 
383  Aws::String m_loadBalancerName;
384  bool m_loadBalancerNameHasBeenSet;
385 
386  Aws::String m_containerName;
387  bool m_containerNameHasBeenSet;
388 
389  int m_containerPort;
390  bool m_containerPortHasBeenSet;
391  };
392 
393 } // namespace Model
394 } // namespace ECS
395 } // namespace Aws
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::LoadBalancer::TargetGroupArnHasBeenSet
bool TargetGroupArnHasBeenSet() const
Definition: LoadBalancer.h:87
Aws::ECS::Model::LoadBalancer::SetLoadBalancerName
void SetLoadBalancerName(const Aws::String &value)
Definition: LoadBalancer.h:250
Aws::ECS::Model::LoadBalancer::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::LoadBalancer::SetContainerName
void SetContainerName(Aws::String &&value)
Definition: LoadBalancer.h:315
Aws::ECS::Model::LoadBalancer::GetTargetGroupArn
const Aws::String & GetTargetGroupArn() const
Definition: LoadBalancer.h:64
Aws::ECS::Model::LoadBalancer::SetContainerName
void SetContainerName(const char *value)
Definition: LoadBalancer.h:321
Aws::ECS::Model::LoadBalancer::WithContainerName
LoadBalancer & WithContainerName(const char *value)
Definition: LoadBalancer.h:339
Aws::ECS::Model::LoadBalancer::SetContainerPort
void SetContainerPort(int value)
Definition: LoadBalancer.h:367
Aws::ECS::Model::LoadBalancer::WithContainerName
LoadBalancer & WithContainerName(Aws::String &&value)
Definition: LoadBalancer.h:333
Aws::ECS::Model::LoadBalancer::SetTargetGroupArn
void SetTargetGroupArn(const Aws::String &value)
Definition: LoadBalancer.h:110
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::LoadBalancer::GetLoadBalancerName
const Aws::String & GetLoadBalancerName() const
Definition: LoadBalancer.h:234
Aws::ECS::Model::LoadBalancer::WithTargetGroupArn
LoadBalancer & WithTargetGroupArn(Aws::String &&value)
Definition: LoadBalancer.h:202
Aws::ECS::Model::LoadBalancer::SetLoadBalancerName
void SetLoadBalancerName(const char *value)
Definition: LoadBalancer.h:266
Aws::ECS::Model::LoadBalancer::WithContainerPort
LoadBalancer & WithContainerPort(int value)
Definition: LoadBalancer.h:376
Aws::ECS::Model::LoadBalancer::SetTargetGroupArn
void SetTargetGroupArn(Aws::String &&value)
Definition: LoadBalancer.h:133
Aws::ECS::Model::LoadBalancer::WithLoadBalancerName
LoadBalancer & WithLoadBalancerName(const char *value)
Definition: LoadBalancer.h:290
Aws::ECS::Model::LoadBalancer::GetContainerPort
int GetContainerPort() const
Definition: LoadBalancer.h:349
Aws::ECS::Model::LoadBalancer::WithLoadBalancerName
LoadBalancer & WithLoadBalancerName(const Aws::String &value)
Definition: LoadBalancer.h:274
Aws::ECS::Model::LoadBalancer::WithTargetGroupArn
LoadBalancer & WithTargetGroupArn(const char *value)
Definition: LoadBalancer.h:225
Aws::ECS::Model::LoadBalancer::GetContainerName
const Aws::String & GetContainerName() const
Definition: LoadBalancer.h:297
Aws::ECS::Model::LoadBalancer::WithLoadBalancerName
LoadBalancer & WithLoadBalancerName(Aws::String &&value)
Definition: LoadBalancer.h:282
Aws::ECS::Model::LoadBalancer::LoadBalancerNameHasBeenSet
bool LoadBalancerNameHasBeenSet() const
Definition: LoadBalancer.h:242
Aws::ECS::Model::LoadBalancer::SetLoadBalancerName
void SetLoadBalancerName(Aws::String &&value)
Definition: LoadBalancer.h:258
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::LoadBalancer::operator=
LoadBalancer & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::LoadBalancer::SetContainerName
void SetContainerName(const Aws::String &value)
Definition: LoadBalancer.h:309
Aws::ECS::Model::LoadBalancer::SetTargetGroupArn
void SetTargetGroupArn(const char *value)
Definition: LoadBalancer.h:156
Aws::ECS::Model::LoadBalancer::WithContainerName
LoadBalancer & WithContainerName(const Aws::String &value)
Definition: LoadBalancer.h:327
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::LoadBalancer::LoadBalancer
LoadBalancer()
Aws::ECS::Model::LoadBalancer::LoadBalancer
LoadBalancer(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::LoadBalancer
Definition: LoadBalancer.h:35
Aws::ECS::Model::LoadBalancer::ContainerPortHasBeenSet
bool ContainerPortHasBeenSet() const
Definition: LoadBalancer.h:358
Aws::ECS::Model::LoadBalancer::WithTargetGroupArn
LoadBalancer & WithTargetGroupArn(const Aws::String &value)
Definition: LoadBalancer.h:179
Aws::ECS::Model::LoadBalancer::ContainerNameHasBeenSet
bool ContainerNameHasBeenSet() const
Definition: LoadBalancer.h:303
ECS_EXPORTS.h