AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VerifiedAccessEndpointLoadBalancerOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/VerifiedAccessEndpointProtocol.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/VerifiedAccessEndpointPortRange.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
37 {
38 public:
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline VerifiedAccessEndpointProtocol GetProtocol() const { return m_protocol; }
52 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
53 inline void SetProtocol(VerifiedAccessEndpointProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
56
58
61 inline int GetPort() const { return m_port; }
62 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
63 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
64 inline VerifiedAccessEndpointLoadBalancerOptions& WithPort(int value) { SetPort(value); return *this;}
66
68
71 inline const Aws::String& GetLoadBalancerArn() const { return m_loadBalancerArn; }
72 inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; }
73 template<typename LoadBalancerArnT = Aws::String>
74 void SetLoadBalancerArn(LoadBalancerArnT&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::forward<LoadBalancerArnT>(value); }
75 template<typename LoadBalancerArnT = Aws::String>
76 VerifiedAccessEndpointLoadBalancerOptions& WithLoadBalancerArn(LoadBalancerArnT&& value) { SetLoadBalancerArn(std::forward<LoadBalancerArnT>(value)); return *this;}
78
80
83 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
84 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
85 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
86 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
87 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
88 VerifiedAccessEndpointLoadBalancerOptions& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
89 template<typename SubnetIdsT = Aws::String>
90 VerifiedAccessEndpointLoadBalancerOptions& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
92
94
97 inline const Aws::Vector<VerifiedAccessEndpointPortRange>& GetPortRanges() const { return m_portRanges; }
98 inline bool PortRangesHasBeenSet() const { return m_portRangesHasBeenSet; }
99 template<typename PortRangesT = Aws::Vector<VerifiedAccessEndpointPortRange>>
100 void SetPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges = std::forward<PortRangesT>(value); }
101 template<typename PortRangesT = Aws::Vector<VerifiedAccessEndpointPortRange>>
102 VerifiedAccessEndpointLoadBalancerOptions& WithPortRanges(PortRangesT&& value) { SetPortRanges(std::forward<PortRangesT>(value)); return *this;}
103 template<typename PortRangesT = VerifiedAccessEndpointPortRange>
104 VerifiedAccessEndpointLoadBalancerOptions& AddPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges.emplace_back(std::forward<PortRangesT>(value)); return *this; }
106 private:
107
109 bool m_protocolHasBeenSet = false;
110
111 int m_port{0};
112 bool m_portHasBeenSet = false;
113
114 Aws::String m_loadBalancerArn;
115 bool m_loadBalancerArnHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_subnetIds;
118 bool m_subnetIdsHasBeenSet = false;
119
121 bool m_portRangesHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace EC2
126} // namespace Aws
VerifiedAccessEndpointLoadBalancerOptions & WithProtocol(VerifiedAccessEndpointProtocol value)
AWS_EC2_API VerifiedAccessEndpointLoadBalancerOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VerifiedAccessEndpointLoadBalancerOptions & WithPortRanges(PortRangesT &&value)
VerifiedAccessEndpointLoadBalancerOptions & AddPortRanges(PortRangesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API VerifiedAccessEndpointLoadBalancerOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
VerifiedAccessEndpointLoadBalancerOptions & WithSubnetIds(SubnetIdsT &&value)
VerifiedAccessEndpointLoadBalancerOptions & WithLoadBalancerArn(LoadBalancerArnT &&value)
const Aws::Vector< VerifiedAccessEndpointPortRange > & GetPortRanges() const
VerifiedAccessEndpointLoadBalancerOptions & AddSubnetIds(SubnetIdsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream