AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
ProxyVpcUserConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/elb-proxy/ELBProxy_EXPORTS.h>
10#include <aws/elb-proxy/model/SecurityGroupDetails.h>
11#include <aws/elb-proxy/model/SubnetDetails.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace ELBProxy {
22namespace Model {
23
31 public:
32 AWS_ELBPROXY_API ProxyVpcUserConfiguration() = default;
33 AWS_ELBPROXY_API ProxyVpcUserConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_ELBPROXY_API ProxyVpcUserConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::Vector<SubnetDetails>& GetSubnets() const { return m_subnets; }
42 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
43 template <typename SubnetsT = Aws::Vector<SubnetDetails>>
44 void SetSubnets(SubnetsT&& value) {
45 m_subnetsHasBeenSet = true;
46 m_subnets = std::forward<SubnetsT>(value);
47 }
48 template <typename SubnetsT = Aws::Vector<SubnetDetails>>
50 SetSubnets(std::forward<SubnetsT>(value));
51 return *this;
52 }
53 template <typename SubnetsT = SubnetDetails>
55 m_subnetsHasBeenSet = true;
56 m_subnets.emplace_back(std::forward<SubnetsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<SecurityGroupDetails>& GetSecurityGroups() const { return m_securityGroups; }
66 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
67 template <typename SecurityGroupsT = Aws::Vector<SecurityGroupDetails>>
68 void SetSecurityGroups(SecurityGroupsT&& value) {
69 m_securityGroupsHasBeenSet = true;
70 m_securityGroups = std::forward<SecurityGroupsT>(value);
71 }
72 template <typename SecurityGroupsT = Aws::Vector<SecurityGroupDetails>>
74 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
75 return *this;
76 }
77 template <typename SecurityGroupsT = SecurityGroupDetails>
78 ProxyVpcUserConfiguration& AddSecurityGroups(SecurityGroupsT&& value) {
79 m_securityGroupsHasBeenSet = true;
80 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
81 return *this;
82 }
84 private:
86
87 Aws::Vector<SecurityGroupDetails> m_securityGroups;
88 bool m_subnetsHasBeenSet = false;
89 bool m_securityGroupsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace ELBProxy
94} // namespace Aws
ProxyVpcUserConfiguration & AddSubnets(SubnetsT &&value)
ProxyVpcUserConfiguration & WithSubnets(SubnetsT &&value)
const Aws::Vector< SecurityGroupDetails > & GetSecurityGroups() const
AWS_ELBPROXY_API ProxyVpcUserConfiguration()=default
AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ProxyVpcUserConfiguration & AddSecurityGroups(SecurityGroupsT &&value)
ProxyVpcUserConfiguration & WithSecurityGroups(SecurityGroupsT &&value)
AWS_ELBPROXY_API ProxyVpcUserConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ELBPROXY_API ProxyVpcUserConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< SubnetDetails > & GetSubnets() const
std::vector< T, Aws::Allocator< T > > Vector