AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsLambdaFunctionVpcConfig.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API AwsLambdaFunctionVpcConfig();
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
47 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
48 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
49 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
52 inline AwsLambdaFunctionVpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
53 inline AwsLambdaFunctionVpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
54 inline AwsLambdaFunctionVpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
56
58
61 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
62 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
63 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
64 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
66 inline AwsLambdaFunctionVpcConfig& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
67 inline AwsLambdaFunctionVpcConfig& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
68 inline AwsLambdaFunctionVpcConfig& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
69 inline AwsLambdaFunctionVpcConfig& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
71
73
76 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
77 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
78 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
79 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
80 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
81 inline AwsLambdaFunctionVpcConfig& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
82 inline AwsLambdaFunctionVpcConfig& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
83 inline AwsLambdaFunctionVpcConfig& WithVpcId(const char* value) { SetVpcId(value); return *this;}
85 private:
86
87 Aws::Vector<Aws::String> m_securityGroupIds;
88 bool m_securityGroupIdsHasBeenSet = false;
89
90 Aws::Vector<Aws::String> m_subnetIds;
91 bool m_subnetIdsHasBeenSet = false;
92
93 Aws::String m_vpcId;
94 bool m_vpcIdHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace SecurityHub
99} // namespace Aws
AwsLambdaFunctionVpcConfig & AddSecurityGroupIds(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsLambdaFunctionVpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AwsLambdaFunctionVpcConfig & WithVpcId(Aws::String &&value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
AwsLambdaFunctionVpcConfig & WithVpcId(const char *value)
AwsLambdaFunctionVpcConfig & WithSubnetIds(const Aws::Vector< Aws::String > &value)
AwsLambdaFunctionVpcConfig & WithSubnetIds(Aws::Vector< Aws::String > &&value)
AwsLambdaFunctionVpcConfig & AddSecurityGroupIds(const Aws::String &value)
AwsLambdaFunctionVpcConfig & AddSecurityGroupIds(const char *value)
AWS_SECURITYHUB_API AwsLambdaFunctionVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AwsLambdaFunctionVpcConfig & WithVpcId(const Aws::String &value)
AWS_SECURITYHUB_API AwsLambdaFunctionVpcConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
AwsLambdaFunctionVpcConfig & AddSubnetIds(const Aws::String &value)
AwsLambdaFunctionVpcConfig & AddSubnetIds(const char *value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AwsLambdaFunctionVpcConfig & AddSubnetIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
AwsLambdaFunctionVpcConfig & WithSecurityGroupIds(const Aws::Vector< 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