AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcConfig.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lambda
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_LAMBDA_API VpcConfig();
39 AWS_LAMBDA_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
49 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
50 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
51 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
52 inline VpcConfig& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
53 inline VpcConfig& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
54 inline VpcConfig& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
55 inline VpcConfig& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
56 inline VpcConfig& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
58
60
63 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
64 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
65 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
66 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
67 inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
68 inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
69 inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
70 inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
71 inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
73
75
79 inline bool GetIpv6AllowedForDualStack() const{ return m_ipv6AllowedForDualStack; }
80 inline bool Ipv6AllowedForDualStackHasBeenSet() const { return m_ipv6AllowedForDualStackHasBeenSet; }
81 inline void SetIpv6AllowedForDualStack(bool value) { m_ipv6AllowedForDualStackHasBeenSet = true; m_ipv6AllowedForDualStack = value; }
82 inline VpcConfig& WithIpv6AllowedForDualStack(bool value) { SetIpv6AllowedForDualStack(value); return *this;}
84 private:
85
86 Aws::Vector<Aws::String> m_subnetIds;
87 bool m_subnetIdsHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_securityGroupIds;
90 bool m_securityGroupIdsHasBeenSet = false;
91
92 bool m_ipv6AllowedForDualStack;
93 bool m_ipv6AllowedForDualStackHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Lambda
98} // namespace Aws
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition VpcConfig.h:69
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition VpcConfig.h:70
AWS_LAMBDA_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:66
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:63
VpcConfig & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:53
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:50
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:68
VpcConfig & AddSubnetIds(Aws::String &&value)
Definition VpcConfig.h:55
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:65
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VpcConfig.h:51
VpcConfig & WithIpv6AllowedForDualStack(bool value)
Definition VpcConfig.h:82
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:48
bool GetIpv6AllowedForDualStack() const
Definition VpcConfig.h:79
VpcConfig & AddSubnetIds(const char *value)
Definition VpcConfig.h:56
VpcConfig & AddSecurityGroupIds(const char *value)
Definition VpcConfig.h:71
VpcConfig & AddSubnetIds(const Aws::String &value)
Definition VpcConfig.h:54
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:67
AWS_LAMBDA_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
bool SubnetIdsHasBeenSet() const
Definition VpcConfig.h:49
void SetIpv6AllowedForDualStack(bool value)
Definition VpcConfig.h:81
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:64
VpcConfig & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VpcConfig.h:52
bool Ipv6AllowedForDualStackHasBeenSet() const
Definition VpcConfig.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue