AWS SDK for C++  1.9.129
AWS SDK for C++
VpcConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lambda
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
47  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
48 
52  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
53 
57  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
58 
62  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
63 
67  inline VpcConfig& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
68 
72  inline VpcConfig& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
73 
77  inline VpcConfig& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
78 
82  inline VpcConfig& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
83 
87  inline VpcConfig& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
88 
89 
93  inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
94 
98  inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
99 
103  inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
104 
108  inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
109 
113  inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
114 
118  inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
119 
123  inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
124 
128  inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
129 
133  inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
134 
135  private:
136 
137  Aws::Vector<Aws::String> m_subnetIds;
138  bool m_subnetIdsHasBeenSet;
139 
140  Aws::Vector<Aws::String> m_securityGroupIds;
141  bool m_securityGroupIdsHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace Lambda
146 } // namespace Aws
Aws::Lambda::Model::VpcConfig::AddSecurityGroupIds
VpcConfig & AddSecurityGroupIds(const char *value)
Definition: VpcConfig.h:133
Aws::Lambda::Model::VpcConfig::SecurityGroupIdsHasBeenSet
bool SecurityGroupIdsHasBeenSet() const
Definition: VpcConfig.h:98
Aws::Lambda::Model::VpcConfig::AddSubnetIds
VpcConfig & AddSubnetIds(Aws::String &&value)
Definition: VpcConfig.h:82
Aws::Lambda::Model::VpcConfig::AddSecurityGroupIds
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition: VpcConfig.h:123
Aws::Lambda::Model::VpcConfig::SetSubnetIds
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:57
Aws::Lambda::Model::VpcConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lambda::Model::VpcConfig::WithSubnetIds
VpcConfig & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:72
Aws::Lambda::Model::VpcConfig::GetSecurityGroupIds
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition: VpcConfig.h:93
Aws::Lambda::Model::VpcConfig::WithSecurityGroupIds
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:118
AWSVector.h
Aws::Lambda::Model::VpcConfig::WithSecurityGroupIds
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:113
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::VpcConfig::AddSubnetIds
VpcConfig & AddSubnetIds(const Aws::String &value)
Definition: VpcConfig.h:77
Aws::Lambda::Model::VpcConfig::operator=
VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::VpcConfig::AddSubnetIds
VpcConfig & AddSubnetIds(const char *value)
Definition: VpcConfig.h:87
Aws::Lambda::Model::VpcConfig
Definition: VpcConfig.h:36
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lambda::Model::VpcConfig::SetSecurityGroupIds
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:103
Aws::Lambda::Model::VpcConfig::VpcConfig
VpcConfig()
Aws::Lambda::Model::VpcConfig::SubnetIdsHasBeenSet
bool SubnetIdsHasBeenSet() const
Definition: VpcConfig.h:52
Aws::Lambda::Model::VpcConfig::VpcConfig
VpcConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::VpcConfig::SetSecurityGroupIds
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:108
Aws::Lambda::Model::VpcConfig::GetSubnetIds
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: VpcConfig.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Lambda_EXPORTS.h
Aws::Lambda::Model::VpcConfig::WithSubnetIds
VpcConfig & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:67
Aws::Lambda::Model::VpcConfig::SetSubnetIds
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:62
Aws::Lambda::Model::VpcConfig::AddSecurityGroupIds
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition: VpcConfig.h:128