AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ElasticLoadBalancer.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 OpsWorks
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_OPSWORKS_API ElasticLoadBalancer();
38 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetElasticLoadBalancerName() const{ return m_elasticLoadBalancerName; }
46 inline bool ElasticLoadBalancerNameHasBeenSet() const { return m_elasticLoadBalancerNameHasBeenSet; }
47 inline void SetElasticLoadBalancerName(const Aws::String& value) { m_elasticLoadBalancerNameHasBeenSet = true; m_elasticLoadBalancerName = value; }
48 inline void SetElasticLoadBalancerName(Aws::String&& value) { m_elasticLoadBalancerNameHasBeenSet = true; m_elasticLoadBalancerName = std::move(value); }
49 inline void SetElasticLoadBalancerName(const char* value) { m_elasticLoadBalancerNameHasBeenSet = true; m_elasticLoadBalancerName.assign(value); }
52 inline ElasticLoadBalancer& WithElasticLoadBalancerName(const char* value) { SetElasticLoadBalancerName(value); return *this;}
54
56
59 inline const Aws::String& GetRegion() const{ return m_region; }
60 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
61 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
62 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
63 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
64 inline ElasticLoadBalancer& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
65 inline ElasticLoadBalancer& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
66 inline ElasticLoadBalancer& WithRegion(const char* value) { SetRegion(value); return *this;}
68
70
73 inline const Aws::String& GetDnsName() const{ return m_dnsName; }
74 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
75 inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
76 inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
77 inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
78 inline ElasticLoadBalancer& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
79 inline ElasticLoadBalancer& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
80 inline ElasticLoadBalancer& WithDnsName(const char* value) { SetDnsName(value); return *this;}
82
84
87 inline const Aws::String& GetStackId() const{ return m_stackId; }
88 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
89 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
90 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
91 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
92 inline ElasticLoadBalancer& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
93 inline ElasticLoadBalancer& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
94 inline ElasticLoadBalancer& WithStackId(const char* value) { SetStackId(value); return *this;}
96
98
101 inline const Aws::String& GetLayerId() const{ return m_layerId; }
102 inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; }
103 inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
104 inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = std::move(value); }
105 inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); }
106 inline ElasticLoadBalancer& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;}
107 inline ElasticLoadBalancer& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;}
108 inline ElasticLoadBalancer& WithLayerId(const char* value) { SetLayerId(value); return *this;}
110
112
115 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
116 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
117 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
118 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
119 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
120 inline ElasticLoadBalancer& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
121 inline ElasticLoadBalancer& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
122 inline ElasticLoadBalancer& WithVpcId(const char* value) { SetVpcId(value); return *this;}
124
126
129 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
130 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
131 inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
132 inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
135 inline ElasticLoadBalancer& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
136 inline ElasticLoadBalancer& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
137 inline ElasticLoadBalancer& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
139
141
144 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
145 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
146 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
147 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
148 inline ElasticLoadBalancer& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
149 inline ElasticLoadBalancer& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
150 inline ElasticLoadBalancer& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
151 inline ElasticLoadBalancer& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
152 inline ElasticLoadBalancer& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
154
156
160 inline const Aws::Vector<Aws::String>& GetEc2InstanceIds() const{ return m_ec2InstanceIds; }
161 inline bool Ec2InstanceIdsHasBeenSet() const { return m_ec2InstanceIdsHasBeenSet; }
162 inline void SetEc2InstanceIds(const Aws::Vector<Aws::String>& value) { m_ec2InstanceIdsHasBeenSet = true; m_ec2InstanceIds = value; }
163 inline void SetEc2InstanceIds(Aws::Vector<Aws::String>&& value) { m_ec2InstanceIdsHasBeenSet = true; m_ec2InstanceIds = std::move(value); }
165 inline ElasticLoadBalancer& WithEc2InstanceIds(Aws::Vector<Aws::String>&& value) { SetEc2InstanceIds(std::move(value)); return *this;}
166 inline ElasticLoadBalancer& AddEc2InstanceIds(const Aws::String& value) { m_ec2InstanceIdsHasBeenSet = true; m_ec2InstanceIds.push_back(value); return *this; }
167 inline ElasticLoadBalancer& AddEc2InstanceIds(Aws::String&& value) { m_ec2InstanceIdsHasBeenSet = true; m_ec2InstanceIds.push_back(std::move(value)); return *this; }
168 inline ElasticLoadBalancer& AddEc2InstanceIds(const char* value) { m_ec2InstanceIdsHasBeenSet = true; m_ec2InstanceIds.push_back(value); return *this; }
170 private:
171
172 Aws::String m_elasticLoadBalancerName;
173 bool m_elasticLoadBalancerNameHasBeenSet = false;
174
175 Aws::String m_region;
176 bool m_regionHasBeenSet = false;
177
178 Aws::String m_dnsName;
179 bool m_dnsNameHasBeenSet = false;
180
181 Aws::String m_stackId;
182 bool m_stackIdHasBeenSet = false;
183
184 Aws::String m_layerId;
185 bool m_layerIdHasBeenSet = false;
186
187 Aws::String m_vpcId;
188 bool m_vpcIdHasBeenSet = false;
189
190 Aws::Vector<Aws::String> m_availabilityZones;
191 bool m_availabilityZonesHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_subnetIds;
194 bool m_subnetIdsHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_ec2InstanceIds;
197 bool m_ec2InstanceIdsHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace OpsWorks
202} // namespace Aws
ElasticLoadBalancer & AddAvailabilityZones(const Aws::String &value)
AWS_OPSWORKS_API ElasticLoadBalancer(Aws::Utils::Json::JsonView jsonValue)
ElasticLoadBalancer & WithDnsName(Aws::String &&value)
ElasticLoadBalancer & WithLayerId(const char *value)
ElasticLoadBalancer & WithRegion(Aws::String &&value)
void SetRegion(const Aws::String &value)
void SetStackId(const Aws::String &value)
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
ElasticLoadBalancer & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
ElasticLoadBalancer & WithVpcId(const Aws::String &value)
ElasticLoadBalancer & WithRegion(const Aws::String &value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
ElasticLoadBalancer & WithDnsName(const char *value)
ElasticLoadBalancer & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
ElasticLoadBalancer & AddAvailabilityZones(Aws::String &&value)
ElasticLoadBalancer & WithSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetEc2InstanceIds() const
void SetElasticLoadBalancerName(const Aws::String &value)
ElasticLoadBalancer & WithStackId(Aws::String &&value)
void SetEc2InstanceIds(Aws::Vector< Aws::String > &&value)
ElasticLoadBalancer & WithRegion(const char *value)
ElasticLoadBalancer & AddSubnetIds(const Aws::String &value)
ElasticLoadBalancer & WithStackId(const char *value)
ElasticLoadBalancer & WithLayerId(Aws::String &&value)
ElasticLoadBalancer & WithSubnetIds(Aws::Vector< Aws::String > &&value)
ElasticLoadBalancer & WithStackId(const Aws::String &value)
ElasticLoadBalancer & AddSubnetIds(const char *value)
AWS_OPSWORKS_API ElasticLoadBalancer & operator=(Aws::Utils::Json::JsonView jsonValue)
ElasticLoadBalancer & AddEc2InstanceIds(const Aws::String &value)
ElasticLoadBalancer & AddAvailabilityZones(const char *value)
ElasticLoadBalancer & WithLayerId(const Aws::String &value)
ElasticLoadBalancer & WithVpcId(const char *value)
void SetDnsName(const Aws::String &value)
ElasticLoadBalancer & WithDnsName(const Aws::String &value)
void SetElasticLoadBalancerName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
ElasticLoadBalancer & WithElasticLoadBalancerName(const Aws::String &value)
const Aws::String & GetElasticLoadBalancerName() const
ElasticLoadBalancer & AddEc2InstanceIds(const char *value)
ElasticLoadBalancer & WithEc2InstanceIds(Aws::Vector< Aws::String > &&value)
ElasticLoadBalancer & WithElasticLoadBalancerName(const char *value)
ElasticLoadBalancer & AddSubnetIds(Aws::String &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
ElasticLoadBalancer & AddEc2InstanceIds(Aws::String &&value)
ElasticLoadBalancer & WithVpcId(Aws::String &&value)
ElasticLoadBalancer & WithEc2InstanceIds(const Aws::Vector< Aws::String > &value)
ElasticLoadBalancer & WithElasticLoadBalancerName(Aws::String &&value)
void SetLayerId(const Aws::String &value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
void SetEc2InstanceIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue