AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
54 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
56 inline LambdaVpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
57 inline LambdaVpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
58 inline LambdaVpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
59 inline LambdaVpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
61
63
66 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
67 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
68 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
69 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
70 inline LambdaVpcConfig& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
71 inline LambdaVpcConfig& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
72 inline LambdaVpcConfig& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
73 inline LambdaVpcConfig& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
74 inline LambdaVpcConfig& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
76
78
81 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
82 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
83 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
84 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
85 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
86 inline LambdaVpcConfig& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
87 inline LambdaVpcConfig& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
88 inline LambdaVpcConfig& WithVpcId(const char* value) { SetVpcId(value); return *this;}
90 private:
91
92 Aws::Vector<Aws::String> m_securityGroupIds;
93 bool m_securityGroupIdsHasBeenSet = false;
94
95 Aws::Vector<Aws::String> m_subnetIds;
96 bool m_subnetIdsHasBeenSet = false;
97
98 Aws::String m_vpcId;
99 bool m_vpcIdHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Inspector2
104} // namespace Aws
LambdaVpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
LambdaVpcConfig & WithVpcId(const char *value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AWS_INSPECTOR2_API LambdaVpcConfig(Aws::Utils::Json::JsonView jsonValue)
LambdaVpcConfig & AddSecurityGroupIds(const Aws::String &value)
LambdaVpcConfig & WithVpcId(Aws::String &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaVpcConfig & AddSecurityGroupIds(const char *value)
LambdaVpcConfig & WithSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
LambdaVpcConfig & AddSubnetIds(const Aws::String &value)
LambdaVpcConfig & WithSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
LambdaVpcConfig & AddSecurityGroupIds(Aws::String &&value)
LambdaVpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
AWS_INSPECTOR2_API LambdaVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::String & GetVpcId() const
LambdaVpcConfig & WithVpcId(const Aws::String &value)
LambdaVpcConfig & AddSubnetIds(Aws::String &&value)
LambdaVpcConfig & AddSubnetIds(const char *value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetVpcId(const Aws::String &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