AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsElbv2LoadBalancerDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/LoadBalancerState.h>
11#include <aws/securityhub/model/AvailabilityZone.h>
12#include <aws/securityhub/model/AwsElbv2LoadBalancerAttribute.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SECURITYHUB_API AwsElbv2LoadBalancerDetails();
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<AvailabilityZone>& GetAvailabilityZones() const{ return m_availabilityZones; }
49 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
50 inline void SetAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
51 inline void SetAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
54 inline AwsElbv2LoadBalancerDetails& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
55 inline AwsElbv2LoadBalancerDetails& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
57
59
63 inline const Aws::String& GetCanonicalHostedZoneId() const{ return m_canonicalHostedZoneId; }
64 inline bool CanonicalHostedZoneIdHasBeenSet() const { return m_canonicalHostedZoneIdHasBeenSet; }
65 inline void SetCanonicalHostedZoneId(const Aws::String& value) { m_canonicalHostedZoneIdHasBeenSet = true; m_canonicalHostedZoneId = value; }
66 inline void SetCanonicalHostedZoneId(Aws::String&& value) { m_canonicalHostedZoneIdHasBeenSet = true; m_canonicalHostedZoneId = std::move(value); }
67 inline void SetCanonicalHostedZoneId(const char* value) { m_canonicalHostedZoneIdHasBeenSet = true; m_canonicalHostedZoneId.assign(value); }
70 inline AwsElbv2LoadBalancerDetails& WithCanonicalHostedZoneId(const char* value) { SetCanonicalHostedZoneId(value); return *this;}
72
74
91 inline const Aws::String& GetCreatedTime() const{ return m_createdTime; }
92 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
93 inline void SetCreatedTime(const Aws::String& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
94 inline void SetCreatedTime(Aws::String&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
95 inline void SetCreatedTime(const char* value) { m_createdTimeHasBeenSet = true; m_createdTime.assign(value); }
96 inline AwsElbv2LoadBalancerDetails& WithCreatedTime(const Aws::String& value) { SetCreatedTime(value); return *this;}
97 inline AwsElbv2LoadBalancerDetails& WithCreatedTime(Aws::String&& value) { SetCreatedTime(std::move(value)); return *this;}
98 inline AwsElbv2LoadBalancerDetails& WithCreatedTime(const char* value) { SetCreatedTime(value); return *this;}
100
102
105 inline const Aws::String& GetDNSName() const{ return m_dNSName; }
106 inline bool DNSNameHasBeenSet() const { return m_dNSNameHasBeenSet; }
107 inline void SetDNSName(const Aws::String& value) { m_dNSNameHasBeenSet = true; m_dNSName = value; }
108 inline void SetDNSName(Aws::String&& value) { m_dNSNameHasBeenSet = true; m_dNSName = std::move(value); }
109 inline void SetDNSName(const char* value) { m_dNSNameHasBeenSet = true; m_dNSName.assign(value); }
110 inline AwsElbv2LoadBalancerDetails& WithDNSName(const Aws::String& value) { SetDNSName(value); return *this;}
111 inline AwsElbv2LoadBalancerDetails& WithDNSName(Aws::String&& value) { SetDNSName(std::move(value)); return *this;}
112 inline AwsElbv2LoadBalancerDetails& WithDNSName(const char* value) { SetDNSName(value); return *this;}
114
116
121 inline const Aws::String& GetIpAddressType() const{ return m_ipAddressType; }
122 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
123 inline void SetIpAddressType(const Aws::String& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
124 inline void SetIpAddressType(Aws::String&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
125 inline void SetIpAddressType(const char* value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType.assign(value); }
126 inline AwsElbv2LoadBalancerDetails& WithIpAddressType(const Aws::String& value) { SetIpAddressType(value); return *this;}
127 inline AwsElbv2LoadBalancerDetails& WithIpAddressType(Aws::String&& value) { SetIpAddressType(std::move(value)); return *this;}
128 inline AwsElbv2LoadBalancerDetails& WithIpAddressType(const char* value) { SetIpAddressType(value); return *this;}
130
132
135 inline const Aws::String& GetScheme() const{ return m_scheme; }
136 inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; }
137 inline void SetScheme(const Aws::String& value) { m_schemeHasBeenSet = true; m_scheme = value; }
138 inline void SetScheme(Aws::String&& value) { m_schemeHasBeenSet = true; m_scheme = std::move(value); }
139 inline void SetScheme(const char* value) { m_schemeHasBeenSet = true; m_scheme.assign(value); }
140 inline AwsElbv2LoadBalancerDetails& WithScheme(const Aws::String& value) { SetScheme(value); return *this;}
141 inline AwsElbv2LoadBalancerDetails& WithScheme(Aws::String&& value) { SetScheme(std::move(value)); return *this;}
142 inline AwsElbv2LoadBalancerDetails& WithScheme(const char* value) { SetScheme(value); return *this;}
144
146
149 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
150 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
151 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
152 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
155 inline AwsElbv2LoadBalancerDetails& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
156 inline AwsElbv2LoadBalancerDetails& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
157 inline AwsElbv2LoadBalancerDetails& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
159
161
164 inline const LoadBalancerState& GetState() const{ return m_state; }
165 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
166 inline void SetState(const LoadBalancerState& value) { m_stateHasBeenSet = true; m_state = value; }
167 inline void SetState(LoadBalancerState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
168 inline AwsElbv2LoadBalancerDetails& WithState(const LoadBalancerState& value) { SetState(value); return *this;}
169 inline AwsElbv2LoadBalancerDetails& WithState(LoadBalancerState&& value) { SetState(std::move(value)); return *this;}
171
173
176 inline const Aws::String& GetType() const{ return m_type; }
177 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
178 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
179 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
180 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
181 inline AwsElbv2LoadBalancerDetails& WithType(const Aws::String& value) { SetType(value); return *this;}
182 inline AwsElbv2LoadBalancerDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
183 inline AwsElbv2LoadBalancerDetails& WithType(const char* value) { SetType(value); return *this;}
185
187
190 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
191 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
192 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
193 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
194 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
195 inline AwsElbv2LoadBalancerDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
196 inline AwsElbv2LoadBalancerDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
197 inline AwsElbv2LoadBalancerDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;}
199
201
204 inline const Aws::Vector<AwsElbv2LoadBalancerAttribute>& GetLoadBalancerAttributes() const{ return m_loadBalancerAttributes; }
205 inline bool LoadBalancerAttributesHasBeenSet() const { return m_loadBalancerAttributesHasBeenSet; }
206 inline void SetLoadBalancerAttributes(const Aws::Vector<AwsElbv2LoadBalancerAttribute>& value) { m_loadBalancerAttributesHasBeenSet = true; m_loadBalancerAttributes = value; }
207 inline void SetLoadBalancerAttributes(Aws::Vector<AwsElbv2LoadBalancerAttribute>&& value) { m_loadBalancerAttributesHasBeenSet = true; m_loadBalancerAttributes = std::move(value); }
210 inline AwsElbv2LoadBalancerDetails& AddLoadBalancerAttributes(const AwsElbv2LoadBalancerAttribute& value) { m_loadBalancerAttributesHasBeenSet = true; m_loadBalancerAttributes.push_back(value); return *this; }
211 inline AwsElbv2LoadBalancerDetails& AddLoadBalancerAttributes(AwsElbv2LoadBalancerAttribute&& value) { m_loadBalancerAttributesHasBeenSet = true; m_loadBalancerAttributes.push_back(std::move(value)); return *this; }
213 private:
214
215 Aws::Vector<AvailabilityZone> m_availabilityZones;
216 bool m_availabilityZonesHasBeenSet = false;
217
218 Aws::String m_canonicalHostedZoneId;
219 bool m_canonicalHostedZoneIdHasBeenSet = false;
220
221 Aws::String m_createdTime;
222 bool m_createdTimeHasBeenSet = false;
223
224 Aws::String m_dNSName;
225 bool m_dNSNameHasBeenSet = false;
226
227 Aws::String m_ipAddressType;
228 bool m_ipAddressTypeHasBeenSet = false;
229
230 Aws::String m_scheme;
231 bool m_schemeHasBeenSet = false;
232
233 Aws::Vector<Aws::String> m_securityGroups;
234 bool m_securityGroupsHasBeenSet = false;
235
236 LoadBalancerState m_state;
237 bool m_stateHasBeenSet = false;
238
239 Aws::String m_type;
240 bool m_typeHasBeenSet = false;
241
242 Aws::String m_vpcId;
243 bool m_vpcIdHasBeenSet = false;
244
245 Aws::Vector<AwsElbv2LoadBalancerAttribute> m_loadBalancerAttributes;
246 bool m_loadBalancerAttributesHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace SecurityHub
251} // namespace Aws
AwsElbv2LoadBalancerDetails & WithAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
AwsElbv2LoadBalancerDetails & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
const Aws::Vector< AvailabilityZone > & GetAvailabilityZones() const
AwsElbv2LoadBalancerDetails & WithCanonicalHostedZoneId(const char *value)
AwsElbv2LoadBalancerDetails & AddAvailabilityZones(const AvailabilityZone &value)
AwsElbv2LoadBalancerDetails & AddSecurityGroups(const Aws::String &value)
AwsElbv2LoadBalancerDetails & AddAvailabilityZones(AvailabilityZone &&value)
AwsElbv2LoadBalancerDetails & WithDNSName(const Aws::String &value)
AwsElbv2LoadBalancerDetails & WithCreatedTime(const char *value)
AwsElbv2LoadBalancerDetails & WithType(Aws::String &&value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
AwsElbv2LoadBalancerDetails & WithVpcId(const char *value)
AwsElbv2LoadBalancerDetails & WithLoadBalancerAttributes(Aws::Vector< AwsElbv2LoadBalancerAttribute > &&value)
AwsElbv2LoadBalancerDetails & WithCreatedTime(const Aws::String &value)
AwsElbv2LoadBalancerDetails & AddLoadBalancerAttributes(AwsElbv2LoadBalancerAttribute &&value)
void SetLoadBalancerAttributes(Aws::Vector< AwsElbv2LoadBalancerAttribute > &&value)
void SetLoadBalancerAttributes(const Aws::Vector< AwsElbv2LoadBalancerAttribute > &value)
AwsElbv2LoadBalancerDetails & WithCanonicalHostedZoneId(const Aws::String &value)
AwsElbv2LoadBalancerDetails & AddLoadBalancerAttributes(const AwsElbv2LoadBalancerAttribute &value)
AwsElbv2LoadBalancerDetails & WithType(const Aws::String &value)
AwsElbv2LoadBalancerDetails & WithScheme(Aws::String &&value)
AWS_SECURITYHUB_API AwsElbv2LoadBalancerDetails(Aws::Utils::Json::JsonView jsonValue)
AwsElbv2LoadBalancerDetails & WithIpAddressType(const Aws::String &value)
AwsElbv2LoadBalancerDetails & AddSecurityGroups(Aws::String &&value)
AwsElbv2LoadBalancerDetails & WithType(const char *value)
AwsElbv2LoadBalancerDetails & WithState(LoadBalancerState &&value)
AWS_SECURITYHUB_API AwsElbv2LoadBalancerDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsElbv2LoadBalancerDetails & WithCreatedTime(Aws::String &&value)
AwsElbv2LoadBalancerDetails & AddSecurityGroups(const char *value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
AwsElbv2LoadBalancerDetails & WithVpcId(const Aws::String &value)
AwsElbv2LoadBalancerDetails & WithVpcId(Aws::String &&value)
AwsElbv2LoadBalancerDetails & WithState(const LoadBalancerState &value)
AwsElbv2LoadBalancerDetails & WithAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
void SetAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
AwsElbv2LoadBalancerDetails & WithIpAddressType(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsElbv2LoadBalancerDetails & WithLoadBalancerAttributes(const Aws::Vector< AwsElbv2LoadBalancerAttribute > &value)
AwsElbv2LoadBalancerDetails & WithDNSName(const char *value)
AwsElbv2LoadBalancerDetails & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
AwsElbv2LoadBalancerDetails & WithScheme(const Aws::String &value)
AwsElbv2LoadBalancerDetails & WithDNSName(Aws::String &&value)
AwsElbv2LoadBalancerDetails & WithScheme(const char *value)
void SetAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
const Aws::Vector< AwsElbv2LoadBalancerAttribute > & GetLoadBalancerAttributes() const
AwsElbv2LoadBalancerDetails & WithIpAddressType(const char *value)
AwsElbv2LoadBalancerDetails & WithCanonicalHostedZoneId(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