AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoadBalancer.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
41 {
42 public:
43 AWS_ECS_API LoadBalancer();
47
48
50
70 inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
71 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
72 inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
73 inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
74 inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
75 inline LoadBalancer& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
76 inline LoadBalancer& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
77 inline LoadBalancer& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
79
81
86 inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
87 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
88 inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
89 inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
90 inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
91 inline LoadBalancer& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
92 inline LoadBalancer& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
93 inline LoadBalancer& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
95
97
102 inline const Aws::String& GetContainerName() const{ return m_containerName; }
103 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
104 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
105 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
106 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
107 inline LoadBalancer& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
108 inline LoadBalancer& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
109 inline LoadBalancer& WithContainerName(const char* value) { SetContainerName(value); return *this;}
111
113
120 inline int GetContainerPort() const{ return m_containerPort; }
121 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
122 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
123 inline LoadBalancer& WithContainerPort(int value) { SetContainerPort(value); return *this;}
125 private:
126
127 Aws::String m_targetGroupArn;
128 bool m_targetGroupArnHasBeenSet = false;
129
130 Aws::String m_loadBalancerName;
131 bool m_loadBalancerNameHasBeenSet = false;
132
133 Aws::String m_containerName;
134 bool m_containerNameHasBeenSet = false;
135
136 int m_containerPort;
137 bool m_containerPortHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace ECS
142} // namespace Aws
LoadBalancer & WithContainerPort(int value)
LoadBalancer & WithContainerName(const Aws::String &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetGroupArn(const char *value)
LoadBalancer & WithTargetGroupArn(const char *value)
void SetContainerName(const char *value)
LoadBalancer & WithContainerName(Aws::String &&value)
LoadBalancer & WithLoadBalancerName(const Aws::String &value)
bool LoadBalancerNameHasBeenSet() const
AWS_ECS_API LoadBalancer(Aws::Utils::Json::JsonView jsonValue)
void SetTargetGroupArn(Aws::String &&value)
bool TargetGroupArnHasBeenSet() const
void SetContainerName(Aws::String &&value)
LoadBalancer & WithLoadBalancerName(Aws::String &&value)
LoadBalancer & WithLoadBalancerName(const char *value)
void SetContainerName(const Aws::String &value)
const Aws::String & GetTargetGroupArn() const
void SetLoadBalancerName(Aws::String &&value)
void SetTargetGroupArn(const Aws::String &value)
LoadBalancer & WithTargetGroupArn(const Aws::String &value)
const Aws::String & GetLoadBalancerName() const
const Aws::String & GetContainerName() const
LoadBalancer & WithTargetGroupArn(Aws::String &&value)
LoadBalancer & WithContainerName(const char *value)
void SetLoadBalancerName(const Aws::String &value)
AWS_ECS_API LoadBalancer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLoadBalancerName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue