AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
UpdateProxyVpcConfiguration.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
32 public:
33 AWS_ELBPROXY_API UpdateProxyVpcConfiguration() = default;
34 AWS_ELBPROXY_API UpdateProxyVpcConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_ELBPROXY_API UpdateProxyVpcConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::Vector<SubnetDetails>& GetSubnets() const { return m_subnets; }
43 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
44 template <typename SubnetsT = Aws::Vector<SubnetDetails>>
45 void SetSubnets(SubnetsT&& value) {
46 m_subnetsHasBeenSet = true;
47 m_subnets = std::forward<SubnetsT>(value);
48 }
49 template <typename SubnetsT = Aws::Vector<SubnetDetails>>
51 SetSubnets(std::forward<SubnetsT>(value));
52 return *this;
53 }
54 template <typename SubnetsT = SubnetDetails>
56 m_subnetsHasBeenSet = true;
57 m_subnets.emplace_back(std::forward<SubnetsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<SecurityGroupDetails>& GetSecurityGroups() const { return m_securityGroups; }
67 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
68 template <typename SecurityGroupsT = Aws::Vector<SecurityGroupDetails>>
69 void SetSecurityGroups(SecurityGroupsT&& value) {
70 m_securityGroupsHasBeenSet = true;
71 m_securityGroups = std::forward<SecurityGroupsT>(value);
72 }
73 template <typename SecurityGroupsT = Aws::Vector<SecurityGroupDetails>>
75 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
76 return *this;
77 }
78 template <typename SecurityGroupsT = SecurityGroupDetails>
80 m_securityGroupsHasBeenSet = true;
81 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
82 return *this;
83 }
85 private:
87
88 Aws::Vector<SecurityGroupDetails> m_securityGroups;
89 bool m_subnetsHasBeenSet = false;
90 bool m_securityGroupsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace ELBProxy
95} // namespace Aws
UpdateProxyVpcConfiguration & AddSecurityGroups(SecurityGroupsT &&value)
const Aws::Vector< SubnetDetails > & GetSubnets() const
UpdateProxyVpcConfiguration & AddSubnets(SubnetsT &&value)
UpdateProxyVpcConfiguration & WithSecurityGroups(SecurityGroupsT &&value)
const Aws::Vector< SecurityGroupDetails > & GetSecurityGroups() const
AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ELBPROXY_API UpdateProxyVpcConfiguration()=default
AWS_ELBPROXY_API UpdateProxyVpcConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
UpdateProxyVpcConfiguration & WithSubnets(SubnetsT &&value)
AWS_ELBPROXY_API UpdateProxyVpcConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::vector< T, Aws::Allocator< T > > Vector