AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetElbInfoList(const Aws::Vector<ELBInfo>& value) { m_elbInfoListHasBeenSet = true; m_elbInfoList = value; }
60 inline void SetElbInfoList(Aws::Vector<ELBInfo>&& value) { m_elbInfoListHasBeenSet = true; m_elbInfoList = std::move(value); }
61 inline LoadBalancerInfo& WithElbInfoList(const Aws::Vector<ELBInfo>& value) { SetElbInfoList(value); return *this;}
62 inline LoadBalancerInfo& WithElbInfoList(Aws::Vector<ELBInfo>&& value) { SetElbInfoList(std::move(value)); return *this;}
63 inline LoadBalancerInfo& AddElbInfoList(const ELBInfo& value) { m_elbInfoListHasBeenSet = true; m_elbInfoList.push_back(value); return *this; }
64 inline LoadBalancerInfo& AddElbInfoList(ELBInfo&& value) { m_elbInfoListHasBeenSet = true; m_elbInfoList.push_back(std::move(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 inline void SetTargetGroupInfoList(const Aws::Vector<TargetGroupInfo>& value) { m_targetGroupInfoListHasBeenSet = true; m_targetGroupInfoList = value; }
79 inline void SetTargetGroupInfoList(Aws::Vector<TargetGroupInfo>&& value) { m_targetGroupInfoListHasBeenSet = true; m_targetGroupInfoList = std::move(value); }
82 inline LoadBalancerInfo& AddTargetGroupInfoList(const TargetGroupInfo& value) { m_targetGroupInfoListHasBeenSet = true; m_targetGroupInfoList.push_back(value); return *this; }
83 inline LoadBalancerInfo& AddTargetGroupInfoList(TargetGroupInfo&& value) { m_targetGroupInfoListHasBeenSet = true; m_targetGroupInfoList.push_back(std::move(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 inline void SetTargetGroupPairInfoList(const Aws::Vector<TargetGroupPairInfo>& value) { m_targetGroupPairInfoListHasBeenSet = true; m_targetGroupPairInfoList = value; }
94 inline void SetTargetGroupPairInfoList(Aws::Vector<TargetGroupPairInfo>&& value) { m_targetGroupPairInfoListHasBeenSet = true; m_targetGroupPairInfoList = std::move(value); }
97 inline LoadBalancerInfo& AddTargetGroupPairInfoList(const TargetGroupPairInfo& value) { m_targetGroupPairInfoListHasBeenSet = true; m_targetGroupPairInfoList.push_back(value); return *this; }
98 inline LoadBalancerInfo& AddTargetGroupPairInfoList(TargetGroupPairInfo&& value) { m_targetGroupPairInfoListHasBeenSet = true; m_targetGroupPairInfoList.push_back(std::move(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
LoadBalancerInfo & WithTargetGroupInfoList(const Aws::Vector< TargetGroupInfo > &value)
LoadBalancerInfo & AddTargetGroupPairInfoList(const TargetGroupPairInfo &value)
void SetTargetGroupPairInfoList(const Aws::Vector< TargetGroupPairInfo > &value)
LoadBalancerInfo & WithTargetGroupPairInfoList(const Aws::Vector< TargetGroupPairInfo > &value)
void SetTargetGroupInfoList(const Aws::Vector< TargetGroupInfo > &value)
LoadBalancerInfo & AddTargetGroupPairInfoList(TargetGroupPairInfo &&value)
LoadBalancerInfo & AddElbInfoList(ELBInfo &&value)
LoadBalancerInfo & AddTargetGroupInfoList(const TargetGroupInfo &value)
AWS_CODEDEPLOY_API LoadBalancerInfo(Aws::Utils::Json::JsonView jsonValue)
void SetElbInfoList(Aws::Vector< ELBInfo > &&value)
void SetTargetGroupInfoList(Aws::Vector< TargetGroupInfo > &&value)
LoadBalancerInfo & WithElbInfoList(const Aws::Vector< ELBInfo > &value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
LoadBalancerInfo & WithElbInfoList(Aws::Vector< ELBInfo > &&value)
LoadBalancerInfo & AddTargetGroupInfoList(TargetGroupInfo &&value)
const Aws::Vector< TargetGroupPairInfo > & GetTargetGroupPairInfoList() const
LoadBalancerInfo & WithTargetGroupPairInfoList(Aws::Vector< TargetGroupPairInfo > &&value)
LoadBalancerInfo & WithTargetGroupInfoList(Aws::Vector< TargetGroupInfo > &&value)
const Aws::Vector< TargetGroupInfo > & GetTargetGroupInfoList() const
const Aws::Vector< ELBInfo > & GetElbInfoList() const
void SetTargetGroupPairInfoList(Aws::Vector< TargetGroupPairInfo > &&value)
LoadBalancerInfo & AddElbInfoList(const ELBInfo &value)
AWS_CODEDEPLOY_API LoadBalancerInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetElbInfoList(const Aws::Vector< ELBInfo > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue