AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <aws/ecs/model/AdvancedConfiguration.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 ECS
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_ECS_API LoadBalancer() = default;
48
49
51
71 inline const Aws::String& GetTargetGroupArn() const { return m_targetGroupArn; }
72 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
73 template<typename TargetGroupArnT = Aws::String>
74 void SetTargetGroupArn(TargetGroupArnT&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::forward<TargetGroupArnT>(value); }
75 template<typename TargetGroupArnT = Aws::String>
76 LoadBalancer& WithTargetGroupArn(TargetGroupArnT&& value) { SetTargetGroupArn(std::forward<TargetGroupArnT>(value)); return *this;}
78
80
85 inline const Aws::String& GetLoadBalancerName() const { return m_loadBalancerName; }
86 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
87 template<typename LoadBalancerNameT = Aws::String>
88 void SetLoadBalancerName(LoadBalancerNameT&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::forward<LoadBalancerNameT>(value); }
89 template<typename LoadBalancerNameT = Aws::String>
90 LoadBalancer& WithLoadBalancerName(LoadBalancerNameT&& value) { SetLoadBalancerName(std::forward<LoadBalancerNameT>(value)); return *this;}
92
94
99 inline const Aws::String& GetContainerName() const { return m_containerName; }
100 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
101 template<typename ContainerNameT = Aws::String>
102 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
103 template<typename ContainerNameT = Aws::String>
104 LoadBalancer& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
106
108
115 inline int GetContainerPort() const { return m_containerPort; }
116 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
117 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
118 inline LoadBalancer& WithContainerPort(int value) { SetContainerPort(value); return *this;}
120
122
127 inline const AdvancedConfiguration& GetAdvancedConfiguration() const { return m_advancedConfiguration; }
128 inline bool AdvancedConfigurationHasBeenSet() const { return m_advancedConfigurationHasBeenSet; }
129 template<typename AdvancedConfigurationT = AdvancedConfiguration>
130 void SetAdvancedConfiguration(AdvancedConfigurationT&& value) { m_advancedConfigurationHasBeenSet = true; m_advancedConfiguration = std::forward<AdvancedConfigurationT>(value); }
131 template<typename AdvancedConfigurationT = AdvancedConfiguration>
132 LoadBalancer& WithAdvancedConfiguration(AdvancedConfigurationT&& value) { SetAdvancedConfiguration(std::forward<AdvancedConfigurationT>(value)); return *this;}
134 private:
135
136 Aws::String m_targetGroupArn;
137 bool m_targetGroupArnHasBeenSet = false;
138
139 Aws::String m_loadBalancerName;
140 bool m_loadBalancerNameHasBeenSet = false;
141
142 Aws::String m_containerName;
143 bool m_containerNameHasBeenSet = false;
144
145 int m_containerPort{0};
146 bool m_containerPortHasBeenSet = false;
147
148 AdvancedConfiguration m_advancedConfiguration;
149 bool m_advancedConfigurationHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace ECS
154} // namespace Aws
LoadBalancer & WithContainerPort(int value)
void SetContainerName(ContainerNameT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
LoadBalancer & WithContainerName(ContainerNameT &&value)
const AdvancedConfiguration & GetAdvancedConfiguration() const
AWS_ECS_API LoadBalancer()=default
bool LoadBalancerNameHasBeenSet() const
AWS_ECS_API LoadBalancer(Aws::Utils::Json::JsonView jsonValue)
bool TargetGroupArnHasBeenSet() const
LoadBalancer & WithAdvancedConfiguration(AdvancedConfigurationT &&value)
void SetTargetGroupArn(TargetGroupArnT &&value)
void SetLoadBalancerName(LoadBalancerNameT &&value)
const Aws::String & GetTargetGroupArn() const
const Aws::String & GetLoadBalancerName() const
const Aws::String & GetContainerName() const
bool AdvancedConfigurationHasBeenSet() const
LoadBalancer & WithTargetGroupArn(TargetGroupArnT &&value)
LoadBalancer & WithLoadBalancerName(LoadBalancerNameT &&value)
void SetAdvancedConfiguration(AdvancedConfigurationT &&value)
AWS_ECS_API LoadBalancer & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue