AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsLambdaFunctionVpcConfig.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/securityhub/SecurityHub_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
30 public:
31 AWS_SECURITYHUB_API AwsLambdaFunctionVpcConfig() = default;
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
41 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
42 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
43 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
44 m_securityGroupIdsHasBeenSet = true;
45 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
46 }
47 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
49 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
50 return *this;
51 }
52 template <typename SecurityGroupIdsT = Aws::String>
53 AwsLambdaFunctionVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
54 m_securityGroupIdsHasBeenSet = true;
55 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
65 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
66 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
67 void SetSubnetIds(SubnetIdsT&& value) {
68 m_subnetIdsHasBeenSet = true;
69 m_subnetIds = std::forward<SubnetIdsT>(value);
70 }
71 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
73 SetSubnetIds(std::forward<SubnetIdsT>(value));
74 return *this;
75 }
76 template <typename SubnetIdsT = Aws::String>
78 m_subnetIdsHasBeenSet = true;
79 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(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>
97 SetVpcId(std::forward<VpcIdT>(value));
98 return *this;
99 }
101 private:
102 Aws::Vector<Aws::String> m_securityGroupIds;
103
104 Aws::Vector<Aws::String> m_subnetIds;
105
106 Aws::String m_vpcId;
107 bool m_securityGroupIdsHasBeenSet = false;
108 bool m_subnetIdsHasBeenSet = false;
109 bool m_vpcIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace SecurityHub
114} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsLambdaFunctionVpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_SECURITYHUB_API AwsLambdaFunctionVpcConfig()=default
AWS_SECURITYHUB_API AwsLambdaFunctionVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsLambdaFunctionVpcConfig & WithSubnetIds(SubnetIdsT &&value)
AWS_SECURITYHUB_API AwsLambdaFunctionVpcConfig(Aws::Utils::Json::JsonView jsonValue)
AwsLambdaFunctionVpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AwsLambdaFunctionVpcConfig & AddSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AwsLambdaFunctionVpcConfig & WithVpcId(VpcIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue