AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LambdaVpcConfig.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/inspector2/Inspector2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
32 public:
33 AWS_INSPECTOR2_API LambdaVpcConfig() = default;
34 AWS_INSPECTOR2_API LambdaVpcConfig(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
43 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
44 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
45 void SetSubnetIds(SubnetIdsT&& value) {
46 m_subnetIdsHasBeenSet = true;
47 m_subnetIds = std::forward<SubnetIdsT>(value);
48 }
49 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
50 LambdaVpcConfig& WithSubnetIds(SubnetIdsT&& value) {
51 SetSubnetIds(std::forward<SubnetIdsT>(value));
52 return *this;
53 }
54 template <typename SubnetIdsT = Aws::String>
55 LambdaVpcConfig& AddSubnetIds(SubnetIdsT&& value) {
56 m_subnetIdsHasBeenSet = true;
57 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
70 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
71 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
72 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
73 m_securityGroupIdsHasBeenSet = true;
74 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
75 }
76 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
77 LambdaVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
78 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
79 return *this;
80 }
81 template <typename SecurityGroupIdsT = Aws::String>
82 LambdaVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
83 m_securityGroupIdsHasBeenSet = true;
84 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetVpcId() const { return m_vpcId; }
94 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
95 template <typename VpcIdT = Aws::String>
96 void SetVpcId(VpcIdT&& value) {
97 m_vpcIdHasBeenSet = true;
98 m_vpcId = std::forward<VpcIdT>(value);
99 }
100 template <typename VpcIdT = Aws::String>
101 LambdaVpcConfig& WithVpcId(VpcIdT&& value) {
102 SetVpcId(std::forward<VpcIdT>(value));
103 return *this;
104 }
106 private:
107 Aws::Vector<Aws::String> m_subnetIds;
108
109 Aws::Vector<Aws::String> m_securityGroupIds;
110
111 Aws::String m_vpcId;
112 bool m_subnetIdsHasBeenSet = false;
113 bool m_securityGroupIdsHasBeenSet = false;
114 bool m_vpcIdHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Inspector2
119} // 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