AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VpcConfigResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lambda {
21namespace Model {
22
30 public:
31 AWS_LAMBDA_API VpcConfigResponse() = default;
34 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
41 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
42 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
43 void SetSubnetIds(SubnetIdsT&& value) {
44 m_subnetIdsHasBeenSet = true;
45 m_subnetIds = std::forward<SubnetIdsT>(value);
46 }
47 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
48 VpcConfigResponse& WithSubnetIds(SubnetIdsT&& value) {
49 SetSubnetIds(std::forward<SubnetIdsT>(value));
50 return *this;
51 }
52 template <typename SubnetIdsT = Aws::String>
53 VpcConfigResponse& AddSubnetIds(SubnetIdsT&& value) {
54 m_subnetIdsHasBeenSet = true;
55 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
65 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
66 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
67 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
68 m_securityGroupIdsHasBeenSet = true;
69 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
70 }
71 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
72 VpcConfigResponse& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
73 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
74 return *this;
75 }
76 template <typename SecurityGroupIdsT = Aws::String>
77 VpcConfigResponse& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
78 m_securityGroupIdsHasBeenSet = true;
79 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetVpcId() const { return m_vpcId; }
89 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
90 template <typename VpcIdT = Aws::String>
91 void SetVpcId(VpcIdT&& value) {
92 m_vpcIdHasBeenSet = true;
93 m_vpcId = std::forward<VpcIdT>(value);
94 }
95 template <typename VpcIdT = Aws::String>
96 VpcConfigResponse& WithVpcId(VpcIdT&& value) {
97 SetVpcId(std::forward<VpcIdT>(value));
98 return *this;
99 }
101
103
107 inline bool GetIpv6AllowedForDualStack() const { return m_ipv6AllowedForDualStack; }
108 inline bool Ipv6AllowedForDualStackHasBeenSet() const { return m_ipv6AllowedForDualStackHasBeenSet; }
109 inline void SetIpv6AllowedForDualStack(bool value) {
110 m_ipv6AllowedForDualStackHasBeenSet = true;
111 m_ipv6AllowedForDualStack = value;
112 }
115 return *this;
116 }
118 private:
119 Aws::Vector<Aws::String> m_subnetIds;
120
121 Aws::Vector<Aws::String> m_securityGroupIds;
122
123 Aws::String m_vpcId;
124
125 bool m_ipv6AllowedForDualStack{false};
126 bool m_subnetIdsHasBeenSet = false;
127 bool m_securityGroupIdsHasBeenSet = false;
128 bool m_vpcIdHasBeenSet = false;
129 bool m_ipv6AllowedForDualStackHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace Lambda
134} // namespace Aws
VpcConfigResponse & WithSubnetIds(SubnetIdsT &&value)
VpcConfigResponse & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_LAMBDA_API VpcConfigResponse()=default
VpcConfigResponse & WithSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetVpcId() const
AWS_LAMBDA_API VpcConfigResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API VpcConfigResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfigResponse & WithVpcId(VpcIdT &&value)
VpcConfigResponse & AddSubnetIds(SubnetIdsT &&value)
VpcConfigResponse & WithIpv6AllowedForDualStack(bool value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue