AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
ProxyNetworkConfiguration.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/elb-proxy/ELBProxy_EXPORTS.h>
9#include <aws/elb-proxy/model/ProxyIpConfiguration.h>
10#include <aws/elb-proxy/model/ProxyVpcConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ELBProxy {
21namespace Model {
22
29 public:
30 AWS_ELBPROXY_API ProxyNetworkConfiguration() = default;
31 AWS_ELBPROXY_API ProxyNetworkConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ELBPROXY_API ProxyNetworkConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const ProxyIpConfiguration& GetIpConfiguration() const { return m_ipConfiguration; }
40 inline bool IpConfigurationHasBeenSet() const { return m_ipConfigurationHasBeenSet; }
41 template <typename IpConfigurationT = ProxyIpConfiguration>
42 void SetIpConfiguration(IpConfigurationT&& value) {
43 m_ipConfigurationHasBeenSet = true;
44 m_ipConfiguration = std::forward<IpConfigurationT>(value);
45 }
46 template <typename IpConfigurationT = ProxyIpConfiguration>
48 SetIpConfiguration(std::forward<IpConfigurationT>(value));
49 return *this;
50 }
52
54
57 inline const ProxyVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
58 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
59 template <typename VpcConfigurationT = ProxyVpcConfiguration>
60 void SetVpcConfiguration(VpcConfigurationT&& value) {
61 m_vpcConfigurationHasBeenSet = true;
62 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
63 }
64 template <typename VpcConfigurationT = ProxyVpcConfiguration>
65 ProxyNetworkConfiguration& WithVpcConfiguration(VpcConfigurationT&& value) {
66 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
67 return *this;
68 }
70 private:
71 ProxyIpConfiguration m_ipConfiguration;
72
73 ProxyVpcConfiguration m_vpcConfiguration;
74 bool m_ipConfigurationHasBeenSet = false;
75 bool m_vpcConfigurationHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ELBProxy
80} // namespace Aws
AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ELBPROXY_API ProxyNetworkConfiguration()=default
const ProxyVpcConfiguration & GetVpcConfiguration() const
ProxyNetworkConfiguration & WithVpcConfiguration(VpcConfigurationT &&value)
AWS_ELBPROXY_API ProxyNetworkConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const ProxyIpConfiguration & GetIpConfiguration() const
AWS_ELBPROXY_API ProxyNetworkConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ProxyNetworkConfiguration & WithIpConfiguration(IpConfigurationT &&value)