AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LoadBalancerInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/codedeploy/model/ELBInfo.h>
10#include <aws/codedeploy/model/TargetGroupInfo.h>
11#include <aws/codedeploy/model/TargetGroupPairInfo.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeDeploy
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_CODEDEPLOY_API LoadBalancerInfo() = default;
43 AWS_CODEDEPLOY_API LoadBalancerInfo(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
57 inline const Aws::Vector<ELBInfo>& GetElbInfoList() const { return m_elbInfoList; }
58 inline bool ElbInfoListHasBeenSet() const { return m_elbInfoListHasBeenSet; }
59 template<typename ElbInfoListT = Aws::Vector<ELBInfo>>
60 void SetElbInfoList(ElbInfoListT&& value) { m_elbInfoListHasBeenSet = true; m_elbInfoList = std::forward<ElbInfoListT>(value); }
61 template<typename ElbInfoListT = Aws::Vector<ELBInfo>>
62 LoadBalancerInfo& WithElbInfoList(ElbInfoListT&& value) { SetElbInfoList(std::forward<ElbInfoListT>(value)); return *this;}
63 template<typename ElbInfoListT = ELBInfo>
64 LoadBalancerInfo& AddElbInfoList(ElbInfoListT&& value) { m_elbInfoListHasBeenSet = true; m_elbInfoList.emplace_back(std::forward<ElbInfoListT>(value)); return *this; }
66
68
76 inline const Aws::Vector<TargetGroupInfo>& GetTargetGroupInfoList() const { return m_targetGroupInfoList; }
77 inline bool TargetGroupInfoListHasBeenSet() const { return m_targetGroupInfoListHasBeenSet; }
78 template<typename TargetGroupInfoListT = Aws::Vector<TargetGroupInfo>>
79 void SetTargetGroupInfoList(TargetGroupInfoListT&& value) { m_targetGroupInfoListHasBeenSet = true; m_targetGroupInfoList = std::forward<TargetGroupInfoListT>(value); }
80 template<typename TargetGroupInfoListT = Aws::Vector<TargetGroupInfo>>
81 LoadBalancerInfo& WithTargetGroupInfoList(TargetGroupInfoListT&& value) { SetTargetGroupInfoList(std::forward<TargetGroupInfoListT>(value)); return *this;}
82 template<typename TargetGroupInfoListT = TargetGroupInfo>
83 LoadBalancerInfo& AddTargetGroupInfoList(TargetGroupInfoListT&& value) { m_targetGroupInfoListHasBeenSet = true; m_targetGroupInfoList.emplace_back(std::forward<TargetGroupInfoListT>(value)); return *this; }
85
87
91 inline const Aws::Vector<TargetGroupPairInfo>& GetTargetGroupPairInfoList() const { return m_targetGroupPairInfoList; }
92 inline bool TargetGroupPairInfoListHasBeenSet() const { return m_targetGroupPairInfoListHasBeenSet; }
93 template<typename TargetGroupPairInfoListT = Aws::Vector<TargetGroupPairInfo>>
94 void SetTargetGroupPairInfoList(TargetGroupPairInfoListT&& value) { m_targetGroupPairInfoListHasBeenSet = true; m_targetGroupPairInfoList = std::forward<TargetGroupPairInfoListT>(value); }
95 template<typename TargetGroupPairInfoListT = Aws::Vector<TargetGroupPairInfo>>
96 LoadBalancerInfo& WithTargetGroupPairInfoList(TargetGroupPairInfoListT&& value) { SetTargetGroupPairInfoList(std::forward<TargetGroupPairInfoListT>(value)); return *this;}
97 template<typename TargetGroupPairInfoListT = TargetGroupPairInfo>
98 LoadBalancerInfo& AddTargetGroupPairInfoList(TargetGroupPairInfoListT&& value) { m_targetGroupPairInfoListHasBeenSet = true; m_targetGroupPairInfoList.emplace_back(std::forward<TargetGroupPairInfoListT>(value)); return *this; }
100 private:
101
102 Aws::Vector<ELBInfo> m_elbInfoList;
103 bool m_elbInfoListHasBeenSet = false;
104
105 Aws::Vector<TargetGroupInfo> m_targetGroupInfoList;
106 bool m_targetGroupInfoListHasBeenSet = false;
107
108 Aws::Vector<TargetGroupPairInfo> m_targetGroupPairInfoList;
109 bool m_targetGroupPairInfoListHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CodeDeploy
114} // namespace Aws
AWS_CODEDEPLOY_API LoadBalancerInfo()=default
LoadBalancerInfo & AddTargetGroupPairInfoList(TargetGroupPairInfoListT &&value)
void SetElbInfoList(ElbInfoListT &&value)
LoadBalancerInfo & AddTargetGroupInfoList(TargetGroupInfoListT &&value)
LoadBalancerInfo & WithTargetGroupInfoList(TargetGroupInfoListT &&value)
LoadBalancerInfo & WithTargetGroupPairInfoList(TargetGroupPairInfoListT &&value)
LoadBalancerInfo & WithElbInfoList(ElbInfoListT &&value)
LoadBalancerInfo & AddElbInfoList(ElbInfoListT &&value)
AWS_CODEDEPLOY_API LoadBalancerInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< TargetGroupPairInfo > & GetTargetGroupPairInfoList() const
const Aws::Vector< TargetGroupInfo > & GetTargetGroupInfoList() const
void SetTargetGroupPairInfoList(TargetGroupPairInfoListT &&value)
const Aws::Vector< ELBInfo > & GetElbInfoList() const
AWS_CODEDEPLOY_API LoadBalancerInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetGroupInfoList(TargetGroupInfoListT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue