AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaVpcConfig.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_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 Inspector2
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_INSPECTOR2_API LambdaVpcConfig() = default;
39 AWS_INSPECTOR2_API LambdaVpcConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
52 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
53 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
54 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
55 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
56 LambdaVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
57 template<typename SecurityGroupIdsT = Aws::String>
58 LambdaVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
60
62
65 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
66 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
67 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
68 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
69 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
70 LambdaVpcConfig& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
71 template<typename SubnetIdsT = Aws::String>
72 LambdaVpcConfig& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
74
76
79 inline const Aws::String& GetVpcId() const { return m_vpcId; }
80 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
81 template<typename VpcIdT = Aws::String>
82 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
83 template<typename VpcIdT = Aws::String>
84 LambdaVpcConfig& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
86 private:
87
88 Aws::Vector<Aws::String> m_securityGroupIds;
89 bool m_securityGroupIdsHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_subnetIds;
92 bool m_subnetIdsHasBeenSet = false;
93
94 Aws::String m_vpcId;
95 bool m_vpcIdHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Inspector2
100} // namespace Aws
AWS_INSPECTOR2_API LambdaVpcConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API LambdaVpcConfig()=default
LambdaVpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
LambdaVpcConfig & WithSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
LambdaVpcConfig & WithVpcId(VpcIdT &&value)
LambdaVpcConfig & AddSubnetIds(SubnetIdsT &&value)
LambdaVpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_INSPECTOR2_API LambdaVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVpcId() const
const Aws::Vector< Aws::String > & GetSubnetIds() 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