AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AvailabilityZonesT = Aws::Vector<AvailabilityZone>>
51 void SetAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::forward<AvailabilityZonesT>(value); }
52 template<typename AvailabilityZonesT = Aws::Vector<AvailabilityZone>>
53 AwsElbv2LoadBalancerDetails& WithAvailabilityZones(AvailabilityZonesT&& value) { SetAvailabilityZones(std::forward<AvailabilityZonesT>(value)); return *this;}
54 template<typename AvailabilityZonesT = AvailabilityZone>
55 AwsElbv2LoadBalancerDetails& AddAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value)); return *this; }
57
59
63 inline const Aws::String& GetCanonicalHostedZoneId() const { return m_canonicalHostedZoneId; }
64 inline bool CanonicalHostedZoneIdHasBeenSet() const { return m_canonicalHostedZoneIdHasBeenSet; }
65 template<typename CanonicalHostedZoneIdT = Aws::String>
66 void SetCanonicalHostedZoneId(CanonicalHostedZoneIdT&& value) { m_canonicalHostedZoneIdHasBeenSet = true; m_canonicalHostedZoneId = std::forward<CanonicalHostedZoneIdT>(value); }
67 template<typename CanonicalHostedZoneIdT = Aws::String>
68 AwsElbv2LoadBalancerDetails& WithCanonicalHostedZoneId(CanonicalHostedZoneIdT&& value) { SetCanonicalHostedZoneId(std::forward<CanonicalHostedZoneIdT>(value)); return *this;}
70
72
77 inline const Aws::String& GetCreatedTime() const { return m_createdTime; }
78 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
79 template<typename CreatedTimeT = Aws::String>
80 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
81 template<typename CreatedTimeT = Aws::String>
82 AwsElbv2LoadBalancerDetails& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
84
86
89 inline const Aws::String& GetDNSName() const { return m_dNSName; }
90 inline bool DNSNameHasBeenSet() const { return m_dNSNameHasBeenSet; }
91 template<typename DNSNameT = Aws::String>
92 void SetDNSName(DNSNameT&& value) { m_dNSNameHasBeenSet = true; m_dNSName = std::forward<DNSNameT>(value); }
93 template<typename DNSNameT = Aws::String>
94 AwsElbv2LoadBalancerDetails& WithDNSName(DNSNameT&& value) { SetDNSName(std::forward<DNSNameT>(value)); return *this;}
96
98
103 inline const Aws::String& GetIpAddressType() const { return m_ipAddressType; }
104 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
105 template<typename IpAddressTypeT = Aws::String>
106 void SetIpAddressType(IpAddressTypeT&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::forward<IpAddressTypeT>(value); }
107 template<typename IpAddressTypeT = Aws::String>
108 AwsElbv2LoadBalancerDetails& WithIpAddressType(IpAddressTypeT&& value) { SetIpAddressType(std::forward<IpAddressTypeT>(value)); return *this;}
110
112
115 inline const Aws::String& GetScheme() const { return m_scheme; }
116 inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; }
117 template<typename SchemeT = Aws::String>
118 void SetScheme(SchemeT&& value) { m_schemeHasBeenSet = true; m_scheme = std::forward<SchemeT>(value); }
119 template<typename SchemeT = Aws::String>
120 AwsElbv2LoadBalancerDetails& WithScheme(SchemeT&& value) { SetScheme(std::forward<SchemeT>(value)); return *this;}
122
124
127 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
128 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
129 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
130 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
131 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
132 AwsElbv2LoadBalancerDetails& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
133 template<typename SecurityGroupsT = Aws::String>
134 AwsElbv2LoadBalancerDetails& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
136
138
141 inline const LoadBalancerState& GetState() const { return m_state; }
142 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
143 template<typename StateT = LoadBalancerState>
144 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
145 template<typename StateT = LoadBalancerState>
146 AwsElbv2LoadBalancerDetails& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
148
150
153 inline const Aws::String& GetType() const { return m_type; }
154 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
155 template<typename TypeT = Aws::String>
156 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
157 template<typename TypeT = Aws::String>
158 AwsElbv2LoadBalancerDetails& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
160
162
165 inline const Aws::String& GetVpcId() const { return m_vpcId; }
166 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
167 template<typename VpcIdT = Aws::String>
168 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
169 template<typename VpcIdT = Aws::String>
170 AwsElbv2LoadBalancerDetails& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
172
174
177 inline const Aws::Vector<AwsElbv2LoadBalancerAttribute>& GetLoadBalancerAttributes() const { return m_loadBalancerAttributes; }
178 inline bool LoadBalancerAttributesHasBeenSet() const { return m_loadBalancerAttributesHasBeenSet; }
179 template<typename LoadBalancerAttributesT = Aws::Vector<AwsElbv2LoadBalancerAttribute>>
180 void SetLoadBalancerAttributes(LoadBalancerAttributesT&& value) { m_loadBalancerAttributesHasBeenSet = true; m_loadBalancerAttributes = std::forward<LoadBalancerAttributesT>(value); }
181 template<typename LoadBalancerAttributesT = Aws::Vector<AwsElbv2LoadBalancerAttribute>>
182 AwsElbv2LoadBalancerDetails& WithLoadBalancerAttributes(LoadBalancerAttributesT&& value) { SetLoadBalancerAttributes(std::forward<LoadBalancerAttributesT>(value)); return *this;}
183 template<typename LoadBalancerAttributesT = AwsElbv2LoadBalancerAttribute>
184 AwsElbv2LoadBalancerDetails& AddLoadBalancerAttributes(LoadBalancerAttributesT&& value) { m_loadBalancerAttributesHasBeenSet = true; m_loadBalancerAttributes.emplace_back(std::forward<LoadBalancerAttributesT>(value)); return *this; }
186 private:
187
188 Aws::Vector<AvailabilityZone> m_availabilityZones;
189 bool m_availabilityZonesHasBeenSet = false;
190
191 Aws::String m_canonicalHostedZoneId;
192 bool m_canonicalHostedZoneIdHasBeenSet = false;
193
194 Aws::String m_createdTime;
195 bool m_createdTimeHasBeenSet = false;
196
197 Aws::String m_dNSName;
198 bool m_dNSNameHasBeenSet = false;
199
200 Aws::String m_ipAddressType;
201 bool m_ipAddressTypeHasBeenSet = false;
202
203 Aws::String m_scheme;
204 bool m_schemeHasBeenSet = false;
205
206 Aws::Vector<Aws::String> m_securityGroups;
207 bool m_securityGroupsHasBeenSet = false;
208
209 LoadBalancerState m_state;
210 bool m_stateHasBeenSet = false;
211
212 Aws::String m_type;
213 bool m_typeHasBeenSet = false;
214
215 Aws::String m_vpcId;
216 bool m_vpcIdHasBeenSet = false;
217
218 Aws::Vector<AwsElbv2LoadBalancerAttribute> m_loadBalancerAttributes;
219 bool m_loadBalancerAttributesHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace SecurityHub
224} // namespace Aws
AwsElbv2LoadBalancerDetails & WithState(StateT &&value)
AwsElbv2LoadBalancerDetails & AddLoadBalancerAttributes(LoadBalancerAttributesT &&value)
const Aws::Vector< AvailabilityZone > & GetAvailabilityZones() const
AwsElbv2LoadBalancerDetails & WithSecurityGroups(SecurityGroupsT &&value)
AwsElbv2LoadBalancerDetails & WithCreatedTime(CreatedTimeT &&value)
AwsElbv2LoadBalancerDetails & WithAvailabilityZones(AvailabilityZonesT &&value)
AwsElbv2LoadBalancerDetails & WithIpAddressType(IpAddressTypeT &&value)
AWS_SECURITYHUB_API AwsElbv2LoadBalancerDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsElbv2LoadBalancerDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsElbv2LoadBalancerDetails & WithType(TypeT &&value)
AwsElbv2LoadBalancerDetails & AddSecurityGroups(SecurityGroupsT &&value)
AwsElbv2LoadBalancerDetails & WithLoadBalancerAttributes(LoadBalancerAttributesT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
AwsElbv2LoadBalancerDetails & WithVpcId(VpcIdT &&value)
AwsElbv2LoadBalancerDetails & WithScheme(SchemeT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsElbv2LoadBalancerDetails & WithCanonicalHostedZoneId(CanonicalHostedZoneIdT &&value)
AWS_SECURITYHUB_API AwsElbv2LoadBalancerDetails()=default
AwsElbv2LoadBalancerDetails & WithDNSName(DNSNameT &&value)
const Aws::Vector< AwsElbv2LoadBalancerAttribute > & GetLoadBalancerAttributes() const
AwsElbv2LoadBalancerDetails & AddAvailabilityZones(AvailabilityZonesT &&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